refactor(svelte): match certain keywords for conditional and exception

This commit is contained in:
Amaan Qureshi 2023-02-24 06:54:21 -05:00 committed by Stephan Seitz
parent d2a45aa531
commit 3c42fb9d70

View file

@ -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)$"))
[
"{"
"}"