tm-grammars 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/LICENSE +22 -0
  2. package/NOTICE +6565 -0
  3. package/README.md +211 -0
  4. package/grammars/abap.json +380 -0
  5. package/grammars/actionscript-3.json +951 -0
  6. package/grammars/ada.json +3874 -0
  7. package/grammars/apache.json +562 -0
  8. package/grammars/apex.json +3203 -0
  9. package/grammars/apl.json +1479 -0
  10. package/grammars/applescript.json +1406 -0
  11. package/grammars/ara.json +428 -0
  12. package/grammars/asm.json +1741 -0
  13. package/grammars/astro.json +776 -0
  14. package/grammars/awk.json +388 -0
  15. package/grammars/ballerina.json +3768 -0
  16. package/grammars/bat.json +783 -0
  17. package/grammars/beancount.json +831 -0
  18. package/grammars/berry.json +172 -0
  19. package/grammars/bibtex.json +315 -0
  20. package/grammars/bicep.json +239 -0
  21. package/grammars/blade.json +3870 -0
  22. package/grammars/c.json +3552 -0
  23. package/grammars/cadence.json +738 -0
  24. package/grammars/clarity.json +877 -0
  25. package/grammars/clojure.json +426 -0
  26. package/grammars/cmake.json +143 -0
  27. package/grammars/cobol.json +1124 -0
  28. package/grammars/codeql.json +1540 -0
  29. package/grammars/coffee.json +1311 -0
  30. package/grammars/cpp-macro.json +9498 -0
  31. package/grammars/cpp.json +16635 -0
  32. package/grammars/crystal.json +1866 -0
  33. package/grammars/csharp.json +5722 -0
  34. package/grammars/css.json +1860 -0
  35. package/grammars/csv.json +46 -0
  36. package/grammars/cue.json +1128 -0
  37. package/grammars/cypher.json +353 -0
  38. package/grammars/d.json +3185 -0
  39. package/grammars/dart.json +522 -0
  40. package/grammars/dax.json +185 -0
  41. package/grammars/diff.json +155 -0
  42. package/grammars/docker.json +97 -0
  43. package/grammars/dream-maker.json +640 -0
  44. package/grammars/elixir.json +1014 -0
  45. package/grammars/elm.json +751 -0
  46. package/grammars/erb.json +156 -0
  47. package/grammars/erlang.json +1757 -0
  48. package/grammars/fish.json +189 -0
  49. package/grammars/fsharp.json +1831 -0
  50. package/grammars/gdresource.json +290 -0
  51. package/grammars/gdscript.json +969 -0
  52. package/grammars/gdshader.json +405 -0
  53. package/grammars/gherkin.json +133 -0
  54. package/grammars/git-commit.json +85 -0
  55. package/grammars/git-rebase.json +56 -0
  56. package/grammars/glimmer-js.json +98 -0
  57. package/grammars/glimmer-ts.json +98 -0
  58. package/grammars/glsl.json +57 -0
  59. package/grammars/gnuplot.json +892 -0
  60. package/grammars/go.json +1012 -0
  61. package/grammars/graphql.json +1295 -0
  62. package/grammars/groovy.json +1378 -0
  63. package/grammars/hack.json +2650 -0
  64. package/grammars/haml.json +598 -0
  65. package/grammars/handlebars.json +848 -0
  66. package/grammars/haskell.json +2431 -0
  67. package/grammars/hcl.json +787 -0
  68. package/grammars/hjson.json +821 -0
  69. package/grammars/hlsl.json +212 -0
  70. package/grammars/html.json +93 -0
  71. package/grammars/imba.json +2696 -0
  72. package/grammars/ini.json +108 -0
  73. package/grammars/java.json +1885 -0
  74. package/grammars/javascript.json +5984 -0
  75. package/grammars/jinja-html.json +16 -0
  76. package/grammars/jinja.json +345 -0
  77. package/grammars/jison.json +715 -0
  78. package/grammars/jsdoc.json +21 -0
  79. package/grammars/json.json +208 -0
  80. package/grammars/json5.json +244 -0
  81. package/grammars/jsonc.json +208 -0
  82. package/grammars/jsonl.json +208 -0
  83. package/grammars/jsonnet.json +211 -0
  84. package/grammars/jssm.json +159 -0
  85. package/grammars/jsx.json +5984 -0
  86. package/grammars/julia.json +1061 -0
  87. package/grammars/kotlin.json +580 -0
  88. package/grammars/kusto.json +687 -0
  89. package/grammars/latex.json +2395 -0
  90. package/grammars/less.json +5012 -0
  91. package/grammars/liquid.json +990 -0
  92. package/grammars/lisp.json +121 -0
  93. package/grammars/logo.json +55 -0
  94. package/grammars/lua.json +956 -0
  95. package/grammars/make.json +629 -0
  96. package/grammars/markdown.json +3066 -0
  97. package/grammars/marko.json +1344 -0
  98. package/grammars/matlab.json +1131 -0
  99. package/grammars/mdc.json +571 -0
  100. package/grammars/mdx.json +5629 -0
  101. package/grammars/mermaid.json +1382 -0
  102. package/grammars/mojo.json +4153 -0
  103. package/grammars/narrat.json +227 -0
  104. package/grammars/nextflow.json +298 -0
  105. package/grammars/nginx.json +2121 -0
  106. package/grammars/nim.json +1522 -0
  107. package/grammars/nix.json +1200 -0
  108. package/grammars/nushell.json +1047 -0
  109. package/grammars/objective-c.json +3750 -0
  110. package/grammars/objective-cpp.json +7242 -0
  111. package/grammars/ocaml.json +2967 -0
  112. package/grammars/pascal.json +154 -0
  113. package/grammars/perl.json +2971 -0
  114. package/grammars/php.json +4024 -0
  115. package/grammars/plsql.json +241 -0
  116. package/grammars/postcss.json +377 -0
  117. package/grammars/powerquery.json +349 -0
  118. package/grammars/powershell.json +1024 -0
  119. package/grammars/prisma.json +443 -0
  120. package/grammars/prolog.json +298 -0
  121. package/grammars/proto.json +507 -0
  122. package/grammars/pug.json +1033 -0
  123. package/grammars/puppet.json +777 -0
  124. package/grammars/purescript.json +871 -0
  125. package/grammars/python.json +4208 -0
  126. package/grammars/r.json +637 -0
  127. package/grammars/raku.json +310 -0
  128. package/grammars/razor.json +1813 -0
  129. package/grammars/reg.json +136 -0
  130. package/grammars/rel.json +200 -0
  131. package/grammars/riscv.json +298 -0
  132. package/grammars/rst.json +734 -0
  133. package/grammars/ruby.json +2769 -0
  134. package/grammars/rust.json +1171 -0
  135. package/grammars/sas.json +302 -0
  136. package/grammars/sass.json +618 -0
  137. package/grammars/scala.json +1313 -0
  138. package/grammars/scheme.json +384 -0
  139. package/grammars/scss.json +1874 -0
  140. package/grammars/shaderlab.json +199 -0
  141. package/grammars/shellscript.json +2025 -0
  142. package/grammars/shellsession.json +33 -0
  143. package/grammars/smalltalk.json +235 -0
  144. package/grammars/solidity.json +1210 -0
  145. package/grammars/sparql.json +45 -0
  146. package/grammars/splunk.json +91 -0
  147. package/grammars/sql.json +631 -0
  148. package/grammars/ssh-config.json +88 -0
  149. package/grammars/stata.json +3050 -0
  150. package/grammars/stylus.json +1208 -0
  151. package/grammars/svelte.json +1171 -0
  152. package/grammars/swift.json +4203 -0
  153. package/grammars/system-verilog.json +1063 -0
  154. package/grammars/tasl.json +292 -0
  155. package/grammars/tcl.json +291 -0
  156. package/grammars/tex.json +281 -0
  157. package/grammars/toml.json +431 -0
  158. package/grammars/tsx.json +5984 -0
  159. package/grammars/turtle.json +261 -0
  160. package/grammars/twig.json +1394 -0
  161. package/grammars/typescript.json +5735 -0
  162. package/grammars/v.json +1001 -0
  163. package/grammars/vb.json +232 -0
  164. package/grammars/verilog.json +305 -0
  165. package/grammars/vhdl.json +1484 -0
  166. package/grammars/viml.json +445 -0
  167. package/grammars/vue-html.json +559 -0
  168. package/grammars/vue.json +1237 -0
  169. package/grammars/vyper.json +5415 -0
  170. package/grammars/wasm.json +831 -0
  171. package/grammars/wenyan.json +129 -0
  172. package/grammars/wgsl.json +391 -0
  173. package/grammars/wolfram.json +2370 -0
  174. package/grammars/xml.json +382 -0
  175. package/grammars/xsl.json +89 -0
  176. package/grammars/yaml.json +616 -0
  177. package/grammars/zenscript.json +257 -0
  178. package/grammars/zig.json +312 -0
  179. package/index.d.ts +18 -0
  180. package/index.js +2165 -0
  181. package/package.json +46 -0
@@ -0,0 +1,629 @@
1
+ {
2
+ "displayName": "Makefile",
3
+ "name": "make",
4
+ "patterns": [
5
+ {
6
+ "include": "#comment"
7
+ },
8
+ {
9
+ "include": "#variables"
10
+ },
11
+ {
12
+ "include": "#variable-assignment"
13
+ },
14
+ {
15
+ "include": "#directives"
16
+ },
17
+ {
18
+ "include": "#recipe"
19
+ },
20
+ {
21
+ "include": "#target"
22
+ }
23
+ ],
24
+ "repository": {
25
+ "another-variable-braces": {
26
+ "patterns": [
27
+ {
28
+ "begin": "(?<={)(?!})",
29
+ "end": "(?=}|((?<!\\\\)\\n))",
30
+ "name": "variable.other.makefile",
31
+ "patterns": [
32
+ {
33
+ "include": "#variables"
34
+ },
35
+ {
36
+ "match": "\\\\\\n",
37
+ "name": "constant.character.escape.continuation.makefile"
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ },
43
+ "another-variable-parentheses": {
44
+ "patterns": [
45
+ {
46
+ "begin": "(?<=\\()(?!\\))",
47
+ "end": "(?=\\)|((?<!\\\\)\\n))",
48
+ "name": "variable.other.makefile",
49
+ "patterns": [
50
+ {
51
+ "include": "#variables"
52
+ },
53
+ {
54
+ "match": "\\\\\\n",
55
+ "name": "constant.character.escape.continuation.makefile"
56
+ }
57
+ ]
58
+ }
59
+ ]
60
+ },
61
+ "braces-interpolation": {
62
+ "begin": "{",
63
+ "end": "}",
64
+ "patterns": [
65
+ {
66
+ "include": "#variables"
67
+ },
68
+ {
69
+ "include": "#interpolation"
70
+ }
71
+ ]
72
+ },
73
+ "builtin-variable-braces": {
74
+ "patterns": [
75
+ {
76
+ "match": "(?<={)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*})",
77
+ "name": "variable.language.makefile"
78
+ }
79
+ ]
80
+ },
81
+ "builtin-variable-parentheses": {
82
+ "patterns": [
83
+ {
84
+ "match": "(?<=\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*\\))",
85
+ "name": "variable.language.makefile"
86
+ }
87
+ ]
88
+ },
89
+ "comma": {
90
+ "match": ",",
91
+ "name": "punctuation.separator.delimeter.comma.makefile"
92
+ },
93
+ "comment": {
94
+ "begin": "(^[ ]+)?((?<!\\\\)(\\\\\\\\)*)(?=#)",
95
+ "beginCaptures": {
96
+ "1": {
97
+ "name": "punctuation.whitespace.comment.leading.makefile"
98
+ }
99
+ },
100
+ "end": "(?!\\G)",
101
+ "patterns": [
102
+ {
103
+ "begin": "#",
104
+ "beginCaptures": {
105
+ "0": {
106
+ "name": "punctuation.definition.comment.makefile"
107
+ }
108
+ },
109
+ "end": "(?=[^\\\\])$",
110
+ "name": "comment.line.number-sign.makefile",
111
+ "patterns": [
112
+ {
113
+ "match": "\\\\\\n",
114
+ "name": "constant.character.escape.continuation.makefile"
115
+ }
116
+ ]
117
+ }
118
+ ]
119
+ },
120
+ "directives": {
121
+ "patterns": [
122
+ {
123
+ "begin": "^[ ]*([s\\-]?include)\\b",
124
+ "beginCaptures": {
125
+ "1": {
126
+ "name": "keyword.control.include.makefile"
127
+ }
128
+ },
129
+ "end": "^",
130
+ "patterns": [
131
+ {
132
+ "include": "#comment"
133
+ },
134
+ {
135
+ "include": "#variables"
136
+ },
137
+ {
138
+ "match": "%",
139
+ "name": "constant.other.placeholder.makefile"
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "begin": "^[ ]*(vpath)\\b",
145
+ "beginCaptures": {
146
+ "1": {
147
+ "name": "keyword.control.vpath.makefile"
148
+ }
149
+ },
150
+ "end": "^",
151
+ "patterns": [
152
+ {
153
+ "include": "#comment"
154
+ },
155
+ {
156
+ "include": "#variables"
157
+ },
158
+ {
159
+ "match": "%",
160
+ "name": "constant.other.placeholder.makefile"
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "begin": "^\\s*(?:(override)\\s*)?(define)\\s*([^\\s]+)\\s*(=|\\?=|:=|\\+=)?(?=\\s)",
166
+ "captures": {
167
+ "1": {
168
+ "name": "keyword.control.override.makefile"
169
+ },
170
+ "2": {
171
+ "name": "keyword.control.define.makefile"
172
+ },
173
+ "3": {
174
+ "name": "variable.other.makefile"
175
+ },
176
+ "4": {
177
+ "name": "punctuation.separator.key-value.makefile"
178
+ }
179
+ },
180
+ "end": "^\\s*(endef)\\b",
181
+ "name": "meta.scope.conditional.makefile",
182
+ "patterns": [
183
+ {
184
+ "begin": "\\G(?!\\n)",
185
+ "end": "^",
186
+ "patterns": [
187
+ {
188
+ "include": "#comment"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "include": "#variables"
194
+ },
195
+ {
196
+ "include": "#directives"
197
+ }
198
+ ]
199
+ },
200
+ {
201
+ "begin": "^[ ]*(export)\\b",
202
+ "beginCaptures": {
203
+ "1": {
204
+ "name": "keyword.control.$1.makefile"
205
+ }
206
+ },
207
+ "end": "^",
208
+ "patterns": [
209
+ {
210
+ "include": "#comment"
211
+ },
212
+ {
213
+ "include": "#variable-assignment"
214
+ },
215
+ {
216
+ "match": "[^\\s]+",
217
+ "name": "variable.other.makefile"
218
+ }
219
+ ]
220
+ },
221
+ {
222
+ "begin": "^[ ]*(override|private)\\b",
223
+ "beginCaptures": {
224
+ "1": {
225
+ "name": "keyword.control.$1.makefile"
226
+ }
227
+ },
228
+ "end": "^",
229
+ "patterns": [
230
+ {
231
+ "include": "#comment"
232
+ },
233
+ {
234
+ "include": "#variable-assignment"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "begin": "^[ ]*(unexport|undefine)\\b",
240
+ "beginCaptures": {
241
+ "1": {
242
+ "name": "keyword.control.$1.makefile"
243
+ }
244
+ },
245
+ "end": "^",
246
+ "patterns": [
247
+ {
248
+ "include": "#comment"
249
+ },
250
+ {
251
+ "match": "[^\\s]+",
252
+ "name": "variable.other.makefile"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "begin": "^\\s*(ifeq|ifneq|ifdef|ifndef)(?=\\s)",
258
+ "captures": {
259
+ "1": {
260
+ "name": "keyword.control.$1.makefile"
261
+ }
262
+ },
263
+ "end": "^\\s*(endif)\\b",
264
+ "name": "meta.scope.conditional.makefile",
265
+ "patterns": [
266
+ {
267
+ "begin": "\\G",
268
+ "end": "^",
269
+ "name": "meta.scope.condition.makefile",
270
+ "patterns": [
271
+ {
272
+ "include": "#comma"
273
+ },
274
+ {
275
+ "include": "#variables"
276
+ },
277
+ {
278
+ "include": "#comment"
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "begin": "^\\s*else(?=\\s)\\s*(ifeq|ifneq|ifdef|ifndef)*(?=\\s)",
284
+ "beginCaptures": {
285
+ "0": {
286
+ "name": "keyword.control.else.makefile"
287
+ }
288
+ },
289
+ "end": "^",
290
+ "patterns": [
291
+ {
292
+ "include": "#comma"
293
+ },
294
+ {
295
+ "include": "#variables"
296
+ },
297
+ {
298
+ "include": "#comment"
299
+ }
300
+ ]
301
+ },
302
+ {
303
+ "include": "$self"
304
+ }
305
+ ]
306
+ }
307
+ ]
308
+ },
309
+ "flavor-variable-braces": {
310
+ "patterns": [
311
+ {
312
+ "begin": "(?<={)(origin|flavor)\\s(?=[^\\s}]+\\s*})",
313
+ "beginCaptures": {
314
+ "1": {
315
+ "name": "support.function.$1.makefile"
316
+ }
317
+ },
318
+ "contentName": "variable.other.makefile",
319
+ "end": "(?=})",
320
+ "name": "meta.scope.function-call.makefile",
321
+ "patterns": [
322
+ {
323
+ "include": "#variables"
324
+ }
325
+ ]
326
+ }
327
+ ]
328
+ },
329
+ "flavor-variable-parentheses": {
330
+ "patterns": [
331
+ {
332
+ "begin": "(?<=\\()(origin|flavor)\\s(?=[^\\s)]+\\s*\\))",
333
+ "beginCaptures": {
334
+ "1": {
335
+ "name": "support.function.$1.makefile"
336
+ }
337
+ },
338
+ "contentName": "variable.other.makefile",
339
+ "end": "(?=\\))",
340
+ "name": "meta.scope.function-call.makefile",
341
+ "patterns": [
342
+ {
343
+ "include": "#variables"
344
+ }
345
+ ]
346
+ }
347
+ ]
348
+ },
349
+ "function-variable-braces": {
350
+ "patterns": [
351
+ {
352
+ "begin": "(?<={)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s",
353
+ "beginCaptures": {
354
+ "1": {
355
+ "name": "support.function.$1.makefile"
356
+ }
357
+ },
358
+ "end": "(?=}|((?<!\\\\)\\n))",
359
+ "name": "meta.scope.function-call.makefile",
360
+ "patterns": [
361
+ {
362
+ "include": "#comma"
363
+ },
364
+ {
365
+ "include": "#variables"
366
+ },
367
+ {
368
+ "include": "#interpolation"
369
+ },
370
+ {
371
+ "match": "%|\\*",
372
+ "name": "constant.other.placeholder.makefile"
373
+ },
374
+ {
375
+ "match": "\\\\\\n",
376
+ "name": "constant.character.escape.continuation.makefile"
377
+ }
378
+ ]
379
+ }
380
+ ]
381
+ },
382
+ "function-variable-parentheses": {
383
+ "patterns": [
384
+ {
385
+ "begin": "(?<=\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s",
386
+ "beginCaptures": {
387
+ "1": {
388
+ "name": "support.function.$1.makefile"
389
+ }
390
+ },
391
+ "end": "(?=\\)|((?<!\\\\)\\n))",
392
+ "name": "meta.scope.function-call.makefile",
393
+ "patterns": [
394
+ {
395
+ "include": "#comma"
396
+ },
397
+ {
398
+ "include": "#variables"
399
+ },
400
+ {
401
+ "include": "#interpolation"
402
+ },
403
+ {
404
+ "match": "%|\\*",
405
+ "name": "constant.other.placeholder.makefile"
406
+ },
407
+ {
408
+ "match": "\\\\\\n",
409
+ "name": "constant.character.escape.continuation.makefile"
410
+ }
411
+ ]
412
+ }
413
+ ]
414
+ },
415
+ "interpolation": {
416
+ "patterns": [
417
+ {
418
+ "include": "#parentheses-interpolation"
419
+ },
420
+ {
421
+ "include": "#braces-interpolation"
422
+ }
423
+ ]
424
+ },
425
+ "parentheses-interpolation": {
426
+ "begin": "\\(",
427
+ "end": "\\)",
428
+ "patterns": [
429
+ {
430
+ "include": "#variables"
431
+ },
432
+ {
433
+ "include": "#interpolation"
434
+ }
435
+ ]
436
+ },
437
+ "recipe": {
438
+ "begin": "^\\t([+\\-@]*)",
439
+ "beginCaptures": {
440
+ "1": {
441
+ "name": "keyword.control.$1.makefile"
442
+ }
443
+ },
444
+ "end": "[^\\\\]$",
445
+ "name": "meta.scope.recipe.makefile",
446
+ "patterns": [
447
+ {
448
+ "match": "\\\\\\n",
449
+ "name": "constant.character.escape.continuation.makefile"
450
+ },
451
+ {
452
+ "include": "#variables"
453
+ }
454
+ ]
455
+ },
456
+ "simple-variable": {
457
+ "patterns": [
458
+ {
459
+ "match": "\\$[^(){}]",
460
+ "name": "variable.language.makefile"
461
+ }
462
+ ]
463
+ },
464
+ "target": {
465
+ "begin": "^(?!\\t)([^:]*)(:)(?!\\=)",
466
+ "beginCaptures": {
467
+ "1": {
468
+ "patterns": [
469
+ {
470
+ "captures": {
471
+ "1": {
472
+ "name": "support.function.target.$1.makefile"
473
+ }
474
+ },
475
+ "match": "^\\s*(\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\s*$"
476
+ },
477
+ {
478
+ "begin": "(?=\\S)",
479
+ "end": "(?=\\s|$)",
480
+ "name": "entity.name.function.target.makefile",
481
+ "patterns": [
482
+ {
483
+ "include": "#variables"
484
+ },
485
+ {
486
+ "match": "%",
487
+ "name": "constant.other.placeholder.makefile"
488
+ }
489
+ ]
490
+ }
491
+ ]
492
+ },
493
+ "2": {
494
+ "name": "punctuation.separator.key-value.makefile"
495
+ }
496
+ },
497
+ "end": "[^\\\\]$",
498
+ "name": "meta.scope.target.makefile",
499
+ "patterns": [
500
+ {
501
+ "begin": "\\G",
502
+ "end": "(?=[^\\\\])$",
503
+ "name": "meta.scope.prerequisites.makefile",
504
+ "patterns": [
505
+ {
506
+ "match": "\\\\\\n",
507
+ "name": "constant.character.escape.continuation.makefile"
508
+ },
509
+ {
510
+ "match": "%|\\*",
511
+ "name": "constant.other.placeholder.makefile"
512
+ },
513
+ {
514
+ "include": "#comment"
515
+ },
516
+ {
517
+ "include": "#variables"
518
+ }
519
+ ]
520
+ }
521
+ ]
522
+ },
523
+ "variable-assignment": {
524
+ "begin": "(^[ ]*|\\G\\s*)([^\\s:#=]+)\\s*((?<![?:+!])=|\\?=|:=|\\+=|!=)",
525
+ "beginCaptures": {
526
+ "2": {
527
+ "name": "variable.other.makefile",
528
+ "patterns": [
529
+ {
530
+ "include": "#variables"
531
+ }
532
+ ]
533
+ },
534
+ "3": {
535
+ "name": "punctuation.separator.key-value.makefile"
536
+ }
537
+ },
538
+ "end": "\\n",
539
+ "patterns": [
540
+ {
541
+ "match": "\\\\\\n",
542
+ "name": "constant.character.escape.continuation.makefile"
543
+ },
544
+ {
545
+ "include": "#comment"
546
+ },
547
+ {
548
+ "include": "#variables"
549
+ }
550
+ ]
551
+ },
552
+ "variable-braces": {
553
+ "patterns": [
554
+ {
555
+ "begin": "\\${",
556
+ "captures": {
557
+ "0": {
558
+ "name": "punctuation.definition.variable.makefile"
559
+ }
560
+ },
561
+ "end": "}|((?<!\\\\)\\n)",
562
+ "name": "string.interpolated.makefile",
563
+ "patterns": [
564
+ {
565
+ "include": "#variables"
566
+ },
567
+ {
568
+ "include": "#builtin-variable-braces"
569
+ },
570
+ {
571
+ "include": "#function-variable-braces"
572
+ },
573
+ {
574
+ "include": "#flavor-variable-braces"
575
+ },
576
+ {
577
+ "include": "#another-variable-braces"
578
+ }
579
+ ]
580
+ }
581
+ ]
582
+ },
583
+ "variable-parentheses": {
584
+ "patterns": [
585
+ {
586
+ "begin": "\\$\\(",
587
+ "captures": {
588
+ "0": {
589
+ "name": "punctuation.definition.variable.makefile"
590
+ }
591
+ },
592
+ "end": "\\)|((?<!\\\\)\\n)",
593
+ "name": "string.interpolated.makefile",
594
+ "patterns": [
595
+ {
596
+ "include": "#variables"
597
+ },
598
+ {
599
+ "include": "#builtin-variable-parentheses"
600
+ },
601
+ {
602
+ "include": "#function-variable-parentheses"
603
+ },
604
+ {
605
+ "include": "#flavor-variable-parentheses"
606
+ },
607
+ {
608
+ "include": "#another-variable-parentheses"
609
+ }
610
+ ]
611
+ }
612
+ ]
613
+ },
614
+ "variables": {
615
+ "patterns": [
616
+ {
617
+ "include": "#simple-variable"
618
+ },
619
+ {
620
+ "include": "#variable-parentheses"
621
+ },
622
+ {
623
+ "include": "#variable-braces"
624
+ }
625
+ ]
626
+ }
627
+ },
628
+ "scopeName": "source.makefile"
629
+ }