aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-11-16 18:23:54 +0200
committerObserverOfTime <chronobserver@disroot.org>2022-11-26 13:17:51 +0200
commite3f376ed6796288d1161a1361a60388289771a4c (patch)
tree540df1cdf5e6cc69ffef0712925b446b9fb38234 /queries
parenthighlights(ocaml): use more specific groups (diff)
downloadnvim-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.scm13
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)