on master help sign in
Update queries for makefile (#6339)

- update variable and ref as paramter - add target as constant - add inject for shell_text

commitb20cf15eef6d31f81d853d86759a68e2b9e54da8 authorErasin Wang <erasinoo@gmail.com> dateFri 17 Mar 2023, 22:48 (4 years ago) parent21a3fb8
2 files changed+9−1
runtime/queries/make/highlights.scm+6−1 runtime/queries/make/injections.scm+3
runtime/queries/make/highlights.scm+6−1
@@ -45,7 +45,9 @@
4545 (raw_text)
4646] @string
4747
48−(variable_assignment (word) @string)
48+(variable_assignment (word) @variable)
49+(shell_text
50+ [(variable_reference (word) @variable.parameter)])
4951
5052[
5153 "ifeq"
@@ -139,6 +141,7 @@
139141 function: "info"
140142 (arguments (text) @info))
141143
144+
142145;; Install Command Categories
143146;; Others special variables
144147;; Variables Used by Implicit Rules
@@ -168,3 +171,5 @@
168171(targets
169172 (word) @constant.macro
170173 (#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 @@
11((comment) @injection.content
22 (#set! injection.language "comment"))
3+
4+((shell_text) @injection.content
5+ (#set! injection.language "bash"))