Debian Codegraph @

runtime/queries/make/highlights.scm

raw symbols SCIP
1 [
2 "("
3 ")"
4 "{"
5 "}"
6 ] @punctuation.bracket
7
8 [
9 ":"
10 "&:"
11 "::"
12 "|"
13 ";"
14 "\""
15 "'"
16 ","
17 ] @punctuation.delimiter
18
19 [
20 "$"
21 "$$"
22 ] @punctuation.special
23
24 (automatic_variable
25 [ "@" "%" "<" "?" "^" "+" "/" "*" "D" "F"] @punctuation.special)
26
27 (automatic_variable
28 "/" @error . ["D" "F"])
29
30 [
31 "="
32 ":="
33 "::="
34 "?="
35 "+="
36 "!="
37 "@"
38 "-"
39 "+"
40 ] @operator
41
42 [
43 (text)
44 (string)
45 (raw_text)
46 ] @string
47
48 (variable_assignment (word) @variable)
49 (shell_text
50 [(variable_reference (word) @variable.parameter)])
51
52 [
53 "ifeq"
54 "ifneq"
55 "ifdef"
56 "ifndef"
57 "else"
58 "endif"
59 "if"
60 "or" ; boolean functions are conditional in make grammar
61 "and"
62 ] @keyword.control.conditional
63
64 "foreach" @keyword.control.repeat
65
66 [
67 "define"
68 "endef"
69 "vpath"
70 "undefine"
71 "export"
72 "unexport"
73 "override"
74 "private"
75 ; "load"
76 ] @keyword
77
78 [
79 "include"
80 "sinclude"
81 "-include"
82 ] @keyword.control.import
83
84 [
85 "subst"
86 "patsubst"
87 "strip"
88 "findstring"
89 "filter"
90 "filter-out"
91 "sort"
92 "word"
93 "words"
94 "wordlist"
95 "firstword"
96 "lastword"
97 "dir"
98 "notdir"
99 "suffix"
100 "basename"
101 "addsuffix"
102 "addprefix"
103 "join"
104 "wildcard"
105 "realpath"
106 "abspath"
107 "call"
108 "eval"
109 "file"
110 "value"
111 "shell"
112 ] @keyword.function
113
114 [
115 "error"
116 "warning"
117 "info"
118 ] @keyword.control.exception
119
120 ;; Variable
121 (variable_assignment
122 name: (word) @variable)
123
124 (variable_reference
125 (word) @variable)
126
127 (comment) @comment
128
129 ((word) @clean @string.regexp
130 (#match? @clean "[%\*\?]"))
131
132 (function_call
133 function: "error"
134 (arguments (text) @error))
135
136 (function_call
137 function: "warning"
138 (arguments (text) @warning))
139
140 (function_call
141 function: "info"
142 (arguments (text) @info))
143
144
145 ;; Install Command Categories
146 ;; Others special variables
147 ;; Variables Used by Implicit Rules
148 [
149 "VPATH"
150 ".RECIPEPREFIX"
151 ] @constant.builtin
152
153 (variable_assignment
154 name: (word) @clean @constant.builtin
155 (#match? @clean "^(AR|AS|CC|CXX|CPP|FC|M2C|PC|CO|GET|LEX|YACC|LINT|MAKEINFO|TEX|TEXI2DVI|WEAVE|CWEAVE|TANGLE|CTANGLE|RM|ARFLAGS|ASFLAGS|CFLAGS|CXXFLAGS|COFLAGS|CPPFLAGS|FFLAGS|GFLAGS|LDFLAGS|LDLIBS|LFLAGS|YFLAGS|PFLAGS|RFLAGS|LINTFLAGS|PRE_INSTALL|POST_INSTALL|NORMAL_INSTALL|PRE_UNINSTALL|POST_UNINSTALL|NORMAL_UNINSTALL|MAKEFILE_LIST|MAKE_RESTARTS|MAKE_TERMOUT|MAKE_TERMERR|\.DEFAULT_GOAL|\.RECIPEPREFIX|\.EXTRA_PREREQS)$"))
156
157 (variable_reference
158 (word) @clean @constant.builtin
159 (#match? @clean "^(AR|AS|CC|CXX|CPP|FC|M2C|PC|CO|GET|LEX|YACC|LINT|MAKEINFO|TEX|TEXI2DVI|WEAVE|CWEAVE|TANGLE|CTANGLE|RM|ARFLAGS|ASFLAGS|CFLAGS|CXXFLAGS|COFLAGS|CPPFLAGS|FFLAGS|GFLAGS|LDFLAGS|LDLIBS|LFLAGS|YFLAGS|PFLAGS|RFLAGS|LINTFLAGS|PRE_INSTALL|POST_INSTALL|NORMAL_INSTALL|PRE_UNINSTALL|POST_UNINSTALL|NORMAL_UNINSTALL|MAKEFILE_LIST|MAKE_RESTARTS|MAKE_TERMOUT|MAKE_TERMERR|\.DEFAULT_GOAL|\.RECIPEPREFIX|\.EXTRA_PREREQS\.VARIABLES|\.FEATURES|\.INCLUDE_DIRS|\.LOADED)$"))
160
161 ;; Standard targets
162 (targets
163 (word) @constant.macro
164 (#match? @constant.macro "^(all|install|install-html|install-dvi|install-pdf|install-ps|uninstall|install-strip|clean|distclean|mostlyclean|maintainer-clean|TAGS|info|dvi|html|pdf|ps|dist|check|installcheck|installdirs)$"))
165
166 (targets
167 (word) @constant.macro
168 (#match? @constant.macro "^(all|install|install-html|install-dvi|install-pdf|install-ps|uninstall|install-strip|clean|distclean|mostlyclean|maintainer-clean|TAGS|info|dvi|html|pdf|ps|dist|check|installcheck|installdirs)$"))
169
170 ;; Builtin targets
171 (targets
172 (word) @constant.macro
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)