diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2021-08-25 17:02:02 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-08-26 09:55:32 +0200 |
| commit | 55490587798108d5723d922c76272a94c5c189d9 (patch) | |
| tree | ad71e91a8f166208c2137089ae2033560f772df6 /queries/vim | |
| parent | add keywords to scala highlights (#1662) (diff) | |
| download | nvim-treesitter-55490587798108d5723d922c76272a94c5c189d9.tar nvim-treesitter-55490587798108d5723d922c76272a94c5c189d9.tar.gz nvim-treesitter-55490587798108d5723d922c76272a94c5c189d9.tar.bz2 nvim-treesitter-55490587798108d5723d922c76272a94c5c189d9.tar.lz nvim-treesitter-55490587798108d5723d922c76272a94c5c189d9.tar.xz nvim-treesitter-55490587798108d5723d922c76272a94c5c189d9.tar.zst nvim-treesitter-55490587798108d5723d922c76272a94c5c189d9.zip | |
feat(vim): highlight highlight_statement correctly
Fixes #1747
Diffstat (limited to 'queries/vim')
| -rw-r--r-- | queries/vim/highlights.scm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm index eadede98b..7c723da2f 100644 --- a/queries/vim/highlights.scm +++ b/queries/vim/highlights.scm @@ -64,6 +64,7 @@ "ruby" "perl" "python" + "highlight" ] @keyword (map_statement cmd: _ @keyword) (command_name) @function.macro @@ -77,10 +78,14 @@ "<unique>" ] @constant.builtin -[ - (augroup_name) - (au_event) -] @constant +(hl_attribute + key: _ @property + val: _ @constant) + +(hl_group) @variable +(augroup_name) @namespace + +(au_event) @constant (normal_statement (commands) @constant) ;; Literals |
