diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-09-25 00:17:46 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-09-27 21:13:13 +0200 |
| commit | 949ec04726f3c0c12d3314237e2ff37a3adb9021 (patch) | |
| tree | ad30374aca824e19f3a38477a400314b153a85cc /queries/vim | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-949ec04726f3c0c12d3314237e2ff37a3adb9021.tar nvim-treesitter-949ec04726f3c0c12d3314237e2ff37a3adb9021.tar.gz nvim-treesitter-949ec04726f3c0c12d3314237e2ff37a3adb9021.tar.bz2 nvim-treesitter-949ec04726f3c0c12d3314237e2ff37a3adb9021.tar.lz nvim-treesitter-949ec04726f3c0c12d3314237e2ff37a3adb9021.tar.xz nvim-treesitter-949ec04726f3c0c12d3314237e2ff37a3adb9021.tar.zst nvim-treesitter-949ec04726f3c0c12d3314237e2ff37a3adb9021.zip | |
Vim: update highlights and injections
Diffstat (limited to 'queries/vim')
| -rw-r--r-- | queries/vim/highlights.scm | 9 | ||||
| -rw-r--r-- | queries/vim/injections.scm | 14 |
2 files changed, 23 insertions, 0 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm index 7c723da2f..17830bdcd 100644 --- a/queries/vim/highlights.scm +++ b/queries/vim/highlights.scm @@ -158,3 +158,12 @@ ; Options ((set_value) @number (#match? @number "^[0-9]+(\.[0-9]+)?$")) + +((set_item + option: (option_name) @_option + value: (set_value) @function) + (#any-of? @_option + "tagfunc" "tfu" + "completefunc" "cfu" + "omnifunc" "ofu" + "operatorfunc" "opfunc")) diff --git a/queries/vim/injections.scm b/queries/vim/injections.scm index de70ef169..08e74e405 100644 --- a/queries/vim/injections.scm +++ b/queries/vim/injections.scm @@ -6,4 +6,18 @@ (autocmd_statement (pattern) @regex) +((set_item + option: (option_name) @_option + value: (set_value) @vim) + (#any-of? @_option + "includeexpr" "inex" + "printexpr" "pexpr" + "formatexpr" "fex" + "indentexpr" "inde" + "foldtext" "fdt" + "foldexpr" "fde" + "diffexpr" "dex" + "patchexpr" "pex" + "charconvert" "ccv")) + (comment) @comment |
