nvim-treesitter/queries/svelte/highlights.scm

30 lines
410 B
Scheme

; inherits: html_tags
(raw_text_expr) @none
[
(special_block_keyword)
(then)
(as)
] @keyword
((special_block_keyword) @keyword.coroutine
(#eq? @keyword.coroutine "await"))
((special_block_keyword) @exception
(#eq? @exception "catch"))
((special_block_keyword) @conditional
(#match? @conditional "^(if|else)$"))
[
"{"
"}"
] @punctuation.bracket
[
"#"
":"
"/"
"@"
] @tag.delimiter