summaryrefslogtreecommitdiff
path: root/runtime/queries/make/highlights.scm
diff options
context:
space:
mode:
authorErasin Wang2023-03-17 14:48:57 +0000
committerGitHub2023-03-17 14:48:57 +0000
commitb20cf15eef6d31f81d853d86759a68e2b9e54da8 (patch)
treeaf61c6b4417094e81b91bc930d4d11055e625a8b /runtime/queries/make/highlights.scm
parent21a3fb8f29990a847adba369b0c3aaf3b592f456 (diff)
Update queries for makefile (#6339)
- update variable and ref as paramter - add target as constant - add inject for shell_text
Diffstat (limited to 'runtime/queries/make/highlights.scm')
-rw-r--r--runtime/queries/make/highlights.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/queries/make/highlights.scm b/runtime/queries/make/highlights.scm
index 5aef8e0f..68a61cf4 100644
--- a/runtime/queries/make/highlights.scm
+++ b/runtime/queries/make/highlights.scm
@@ -45,7 +45,9 @@
(raw_text)
] @string
-(variable_assignment (word) @string)
+(variable_assignment (word) @variable)
+(shell_text
+ [(variable_reference (word) @variable.parameter)])
[
"ifeq"
@@ -139,6 +141,7 @@
function: "info"
(arguments (text) @info))
+
;; Install Command Categories
;; Others special variables
;; Variables Used by Implicit Rules
@@ -168,3 +171,5 @@
(targets
(word) @constant.macro
(#match? @constant.macro "^\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX)$"))
+
+(targets (word) @constant)