Update queries for makefile (#6339)

- update variable and ref as paramter
- add target as constant
- add inject for shell_text
pull/5/head
Erasin Wang 2 years ago committed by GitHub
parent 21a3fb8f29
commit b20cf15eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

@ -1,2 +1,5 @@
((comment) @injection.content
(#set! injection.language "comment"))
((shell_text) @injection.content
(#set! injection.language "bash"))

Loading…
Cancel
Save