diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-11-16 18:23:54 +0200 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2022-11-26 13:17:51 +0200 |
| commit | e3f376ed6796288d1161a1361a60388289771a4c (patch) | |
| tree | 540df1cdf5e6cc69ffef0712925b446b9fb38234 /queries | |
| parent | highlights(ocaml): use more specific groups (diff) | |
| download | nvim-treesitter-e3f376ed6796288d1161a1361a60388289771a4c.tar nvim-treesitter-e3f376ed6796288d1161a1361a60388289771a4c.tar.gz nvim-treesitter-e3f376ed6796288d1161a1361a60388289771a4c.tar.bz2 nvim-treesitter-e3f376ed6796288d1161a1361a60388289771a4c.tar.lz nvim-treesitter-e3f376ed6796288d1161a1361a60388289771a4c.tar.xz nvim-treesitter-e3f376ed6796288d1161a1361a60388289771a4c.tar.zst nvim-treesitter-e3f376ed6796288d1161a1361a60388289771a4c.zip | |
highlights(make): fix captures
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/make/highlights.scm | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/queries/make/highlights.scm b/queries/make/highlights.scm index e3f583d58..f94c567b2 100644 --- a/queries/make/highlights.scm +++ b/queries/make/highlights.scm @@ -15,7 +15,6 @@ (#any-of? @function.builtin ".DEFAULT" ".SUFFIXES" - ".DEFAULT" ".DELETE_ON_ERROR" ".EXPORT_ALL_VARIABLES" ".IGNORE" @@ -64,19 +63,16 @@ "MAKE_TERMERR" "MAKE_TERMOUT" "SHELL" - ) - ) - + )) ; Use string to match bash -(variable_reference (word) @string ) @operator +(variable_reference (word) @string) @operator (shell_function ["$" "(" ")"] @operator - "shell" @function.builtin - ) + "shell" @function.builtin) (function_call ["$" "(" ")"] @operator) (substitution_reference ["$" "(" ")"] @operator) @@ -117,5 +113,4 @@ "eval" "file" "value" - ] @function.builtin -) + ] @function.builtin) |
