mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
refactor(svelte): match certain keywords for conditional and exception
This commit is contained in:
parent
d2a45aa531
commit
3c42fb9d70
1 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,12 @@
|
|||
((special_block_keyword) @keyword.coroutine
|
||||
(#eq? @keyword.coroutine "await"))
|
||||
|
||||
((special_block_keyword) @exception
|
||||
(#eq? @exception "catch"))
|
||||
|
||||
((special_block_keyword) @conditional
|
||||
(#match? @conditional "^(if|else)$"))
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue