mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
feat(svelte)!: switch upstream parser
This commit is contained in:
parent
b3e53e9423
commit
3a7b5a9fb4
8 changed files with 52 additions and 34 deletions
|
|
@ -1,20 +1,32 @@
|
|||
; inherits: html_tags
|
||||
(raw_text_expr) @none
|
||||
; inherits: html
|
||||
(raw_text) @none
|
||||
|
||||
[
|
||||
(special_block_keyword)
|
||||
(then)
|
||||
(as)
|
||||
"as"
|
||||
"key"
|
||||
"html"
|
||||
"snippet"
|
||||
"render"
|
||||
] @keyword
|
||||
|
||||
((special_block_keyword) @keyword.coroutine
|
||||
(#eq? @keyword.coroutine "await"))
|
||||
"const" @type.qualifier
|
||||
|
||||
((special_block_keyword) @keyword.exception
|
||||
(#eq? @keyword.exception "catch"))
|
||||
[
|
||||
"if"
|
||||
"else"
|
||||
"then"
|
||||
] @keyword.conditional
|
||||
|
||||
((special_block_keyword) @keyword.conditional
|
||||
(#any-of? @keyword.conditional "if" "else"))
|
||||
"each" @keyword.repeat
|
||||
|
||||
[
|
||||
"await"
|
||||
"then"
|
||||
] @keyword.coroutine
|
||||
|
||||
"catch" @keyword.exception
|
||||
|
||||
"debug" @keyword.debug
|
||||
|
||||
[
|
||||
"{"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue