diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-24 06:54:21 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-03-03 07:07:52 -0800 |
| commit | 3c42fb9d702e1246313d2b5531b815595cb4d889 (patch) | |
| tree | 3096e965c91b6b3e57c7fe5c1544719da37abe73 /queries/svelte | |
| parent | refactor(zig): `@type.definition` items belong in `@keyword`, differentiate `... (diff) | |
| download | nvim-treesitter-3c42fb9d702e1246313d2b5531b815595cb4d889.tar nvim-treesitter-3c42fb9d702e1246313d2b5531b815595cb4d889.tar.gz nvim-treesitter-3c42fb9d702e1246313d2b5531b815595cb4d889.tar.bz2 nvim-treesitter-3c42fb9d702e1246313d2b5531b815595cb4d889.tar.lz nvim-treesitter-3c42fb9d702e1246313d2b5531b815595cb4d889.tar.xz nvim-treesitter-3c42fb9d702e1246313d2b5531b815595cb4d889.tar.zst nvim-treesitter-3c42fb9d702e1246313d2b5531b815595cb4d889.zip | |
refactor(svelte): match certain keywords for conditional and exception
Diffstat (limited to 'queries/svelte')
| -rw-r--r-- | queries/svelte/highlights.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/svelte/highlights.scm b/queries/svelte/highlights.scm index e1a67296e..9877fc7a5 100644 --- a/queries/svelte/highlights.scm +++ b/queries/svelte/highlights.scm @@ -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)$")) + [ "{" "}" |
