on master help sign in
Update queries for makefile (#6339)
b20cf15Erasin Wang
runtime/queries/make/highlights.scm+6−1
@@ -45,7 +45,9 @@
45 (raw_text)
45 (raw_text)
46] @string
46] @string
47
47
48−(variable_assignment (word) @string)
48+(variable_assignment (word) @variable)
49+(shell_text
50+ [(variable_reference (word) @variable.parameter)])
49
51
50[
52[
51 "ifeq"
53 "ifeq"
@@ -139,6 +141,7 @@
139 function: "info"
141 function: "info"
140 (arguments (text) @info))
142 (arguments (text) @info))
141
143
144+
142;; Install Command Categories
145;; Install Command Categories
143;; Others special variables
146;; Others special variables
144;; Variables Used by Implicit Rules
147;; Variables Used by Implicit Rules
@@ -168,3 +171,5 @@
168(targets
171(targets
169 (word) @constant.macro
172 (word) @constant.macro
170 (#match? @constant.macro "^\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX)$"))
173 (#match? @constant.macro "^\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX)$"))
174+
175+(targets (word) @constant)
runtime/queries/make/injections.scm+3
@@ -1,2 +1,5 @@
1((comment) @injection.content
1((comment) @injection.content
2 (#set! injection.language "comment"))
2 (#set! injection.language "comment"))
3+
4+((shell_text) @injection.content
5+ (#set! injection.language "bash"))