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,443 @@
1
+ {
2
+ "displayName": "Prisma",
3
+ "fileTypes": [
4
+ "prisma"
5
+ ],
6
+ "name": "prisma",
7
+ "patterns": [
8
+ {
9
+ "include": "#triple_comment"
10
+ },
11
+ {
12
+ "include": "#double_comment"
13
+ },
14
+ {
15
+ "include": "#model_block_definition"
16
+ },
17
+ {
18
+ "include": "#config_block_definition"
19
+ },
20
+ {
21
+ "include": "#enum_block_definition"
22
+ },
23
+ {
24
+ "include": "#type_definition"
25
+ }
26
+ ],
27
+ "repository": {
28
+ "array": {
29
+ "begin": "\\[",
30
+ "beginCaptures": {
31
+ "1": {
32
+ "name": "punctuation.definition.tag.prisma"
33
+ }
34
+ },
35
+ "end": "\\]",
36
+ "endCaptures": {
37
+ "1": {
38
+ "name": "punctuation.definition.tag.prisma"
39
+ }
40
+ },
41
+ "name": "source.prisma.array",
42
+ "patterns": [
43
+ {
44
+ "include": "#value"
45
+ }
46
+ ]
47
+ },
48
+ "assignment": {
49
+ "patterns": [
50
+ {
51
+ "begin": "^\\s*(\\w+)\\s*(=)\\s*",
52
+ "beginCaptures": {
53
+ "1": {
54
+ "name": "variable.other.assignment.prisma"
55
+ },
56
+ "2": {
57
+ "name": "keyword.operator.terraform"
58
+ }
59
+ },
60
+ "end": "\\n",
61
+ "patterns": [
62
+ {
63
+ "include": "#value"
64
+ },
65
+ {
66
+ "include": "#double_comment_inline"
67
+ }
68
+ ]
69
+ }
70
+ ]
71
+ },
72
+ "attribute": {
73
+ "captures": {
74
+ "1": {
75
+ "name": "entity.name.function.attribute.prisma"
76
+ }
77
+ },
78
+ "match": "(@@?[\\w\\.]+)",
79
+ "name": "source.prisma.attribute"
80
+ },
81
+ "attribute_with_arguments": {
82
+ "begin": "(@@?[\\w\\.]+)(\\()",
83
+ "beginCaptures": {
84
+ "1": {
85
+ "name": "entity.name.function.attribute.prisma"
86
+ },
87
+ "2": {
88
+ "name": "punctuation.definition.tag.prisma"
89
+ }
90
+ },
91
+ "end": "\\)",
92
+ "endCaptures": {
93
+ "0": {
94
+ "name": "punctuation.definition.tag.prisma"
95
+ }
96
+ },
97
+ "name": "source.prisma.attribute.with_arguments",
98
+ "patterns": [
99
+ {
100
+ "include": "#named_argument"
101
+ },
102
+ {
103
+ "include": "#value"
104
+ }
105
+ ]
106
+ },
107
+ "boolean": {
108
+ "match": "\\b(true|false)\\b",
109
+ "name": "constant.language.boolean.prisma"
110
+ },
111
+ "config_block_definition": {
112
+ "begin": "^\\s*(generator|datasource)\\s+([A-Za-z][\\w]*)\\s+({)",
113
+ "beginCaptures": {
114
+ "1": {
115
+ "name": "storage.type.config.prisma"
116
+ },
117
+ "2": {
118
+ "name": "entity.name.type.config.prisma"
119
+ },
120
+ "3": {
121
+ "name": "punctuation.definition.tag.prisma"
122
+ }
123
+ },
124
+ "end": "\\s*\\}",
125
+ "endCaptures": {
126
+ "1": {
127
+ "name": "punctuation.definition.tag.prisma"
128
+ }
129
+ },
130
+ "name": "source.prisma.embedded.source",
131
+ "patterns": [
132
+ {
133
+ "include": "#triple_comment"
134
+ },
135
+ {
136
+ "include": "#double_comment"
137
+ },
138
+ {
139
+ "include": "#assignment"
140
+ }
141
+ ]
142
+ },
143
+ "double_comment": {
144
+ "begin": "//",
145
+ "end": "$\\n?",
146
+ "name": "comment.prisma"
147
+ },
148
+ "double_comment_inline": {
149
+ "match": "//[^\\n]*",
150
+ "name": "comment.prisma"
151
+ },
152
+ "double_quoted_string": {
153
+ "begin": "\"",
154
+ "beginCaptures": {
155
+ "0": {
156
+ "name": "string.quoted.double.start.prisma"
157
+ }
158
+ },
159
+ "end": "\"",
160
+ "endCaptures": {
161
+ "0": {
162
+ "name": "string.quoted.double.end.prisma"
163
+ }
164
+ },
165
+ "name": "unnamed",
166
+ "patterns": [
167
+ {
168
+ "include": "#string_interpolation"
169
+ },
170
+ {
171
+ "match": "([\\w\\-\\/\\._\\\\%@:\\?=]+)",
172
+ "name": "string.quoted.double.prisma"
173
+ }
174
+ ]
175
+ },
176
+ "enum_block_definition": {
177
+ "begin": "^\\s*(enum)\\s+([A-Za-z][\\w]*)\\s+({)",
178
+ "beginCaptures": {
179
+ "1": {
180
+ "name": "storage.type.enum.prisma"
181
+ },
182
+ "2": {
183
+ "name": "entity.name.type.enum.prisma"
184
+ },
185
+ "3": {
186
+ "name": "punctuation.definition.tag.prisma"
187
+ }
188
+ },
189
+ "end": "\\s*\\}",
190
+ "endCaptures": {
191
+ "0": {
192
+ "name": "punctuation.definition.tag.prisma"
193
+ }
194
+ },
195
+ "name": "source.prisma.embedded.source",
196
+ "patterns": [
197
+ {
198
+ "include": "#triple_comment"
199
+ },
200
+ {
201
+ "include": "#double_comment"
202
+ },
203
+ {
204
+ "include": "#enum_value_definition"
205
+ }
206
+ ]
207
+ },
208
+ "enum_value_definition": {
209
+ "patterns": [
210
+ {
211
+ "captures": {
212
+ "1": {
213
+ "name": "variable.other.assignment.prisma"
214
+ }
215
+ },
216
+ "match": "^\\s*(\\w+)\\s*"
217
+ },
218
+ {
219
+ "include": "#attribute_with_arguments"
220
+ },
221
+ {
222
+ "include": "#attribute"
223
+ }
224
+ ]
225
+ },
226
+ "field_definition": {
227
+ "name": "scalar.field",
228
+ "patterns": [
229
+ {
230
+ "captures": {
231
+ "1": {
232
+ "name": "variable.other.assignment.prisma"
233
+ },
234
+ "2": {
235
+ "name": "invalid.illegal.colon.prisma"
236
+ },
237
+ "3": {
238
+ "name": "variable.language.relations.prisma"
239
+ },
240
+ "4": {
241
+ "name": "support.type.primitive.prisma"
242
+ },
243
+ "5": {
244
+ "name": "keyword.operator.list_type.prisma"
245
+ },
246
+ "6": {
247
+ "name": "keyword.operator.optional_type.prisma"
248
+ },
249
+ "7": {
250
+ "name": "invalid.illegal.required_type.prisma"
251
+ }
252
+ },
253
+ "match": "^\\s*(\\w+)(\\s*:)?\\s+((?!(?:Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)\\b)\\b\\w+)?(Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)?(\\[\\])?(\\?)?(\\!)?"
254
+ },
255
+ {
256
+ "include": "#attribute_with_arguments"
257
+ },
258
+ {
259
+ "include": "#attribute"
260
+ }
261
+ ]
262
+ },
263
+ "functional": {
264
+ "begin": "(\\w+)(\\()",
265
+ "beginCaptures": {
266
+ "1": {
267
+ "name": "support.function.functional.prisma"
268
+ },
269
+ "2": {
270
+ "name": "punctuation.definition.tag.prisma"
271
+ }
272
+ },
273
+ "end": "\\)",
274
+ "endCaptures": {
275
+ "0": {
276
+ "name": "punctuation.definition.tag.prisma"
277
+ }
278
+ },
279
+ "name": "source.prisma.functional",
280
+ "patterns": [
281
+ {
282
+ "include": "#value"
283
+ }
284
+ ]
285
+ },
286
+ "identifier": {
287
+ "patterns": [
288
+ {
289
+ "match": "\\b(\\w)+\\b",
290
+ "name": "support.constant.constant.prisma"
291
+ }
292
+ ]
293
+ },
294
+ "literal": {
295
+ "name": "source.prisma.literal",
296
+ "patterns": [
297
+ {
298
+ "include": "#boolean"
299
+ },
300
+ {
301
+ "include": "#number"
302
+ },
303
+ {
304
+ "include": "#double_quoted_string"
305
+ },
306
+ {
307
+ "include": "#identifier"
308
+ }
309
+ ]
310
+ },
311
+ "map_key": {
312
+ "name": "source.prisma.key",
313
+ "patterns": [
314
+ {
315
+ "captures": {
316
+ "1": {
317
+ "name": "variable.parameter.key.prisma"
318
+ },
319
+ "2": {
320
+ "name": "punctuation.definition.separator.key-value.prisma"
321
+ }
322
+ },
323
+ "match": "(\\w+)\\s*(:)\\s*"
324
+ }
325
+ ]
326
+ },
327
+ "model_block_definition": {
328
+ "begin": "^\\s*(model|type|view)\\s+([A-Za-z][\\w]*)\\s*({)",
329
+ "beginCaptures": {
330
+ "1": {
331
+ "name": "storage.type.model.prisma"
332
+ },
333
+ "2": {
334
+ "name": "entity.name.type.model.prisma"
335
+ },
336
+ "3": {
337
+ "name": "punctuation.definition.tag.prisma"
338
+ }
339
+ },
340
+ "end": "\\s*\\}",
341
+ "endCaptures": {
342
+ "0": {
343
+ "name": "punctuation.definition.tag.prisma"
344
+ }
345
+ },
346
+ "name": "source.prisma.embedded.source",
347
+ "patterns": [
348
+ {
349
+ "include": "#triple_comment"
350
+ },
351
+ {
352
+ "include": "#double_comment"
353
+ },
354
+ {
355
+ "include": "#field_definition"
356
+ }
357
+ ]
358
+ },
359
+ "named_argument": {
360
+ "name": "source.prisma.named_argument",
361
+ "patterns": [
362
+ {
363
+ "include": "#map_key"
364
+ },
365
+ {
366
+ "include": "#value"
367
+ }
368
+ ]
369
+ },
370
+ "number": {
371
+ "match": "((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b",
372
+ "name": "constant.numeric.prisma"
373
+ },
374
+ "string_interpolation": {
375
+ "patterns": [
376
+ {
377
+ "begin": "\\$\\{",
378
+ "beginCaptures": {
379
+ "0": {
380
+ "name": "keyword.control.interpolation.start.prisma"
381
+ }
382
+ },
383
+ "end": "\\s*\\}",
384
+ "endCaptures": {
385
+ "0": {
386
+ "name": "keyword.control.interpolation.end.prisma"
387
+ }
388
+ },
389
+ "name": "source.tag.embedded.source.prisma",
390
+ "patterns": [
391
+ {
392
+ "include": "#value"
393
+ }
394
+ ]
395
+ }
396
+ ]
397
+ },
398
+ "triple_comment": {
399
+ "begin": "///",
400
+ "end": "$\\n?",
401
+ "name": "comment.prisma"
402
+ },
403
+ "type_definition": {
404
+ "patterns": [
405
+ {
406
+ "captures": {
407
+ "1": {
408
+ "name": "storage.type.type.prisma"
409
+ },
410
+ "2": {
411
+ "name": "entity.name.type.type.prisma"
412
+ },
413
+ "3": {
414
+ "name": "support.type.primitive.prisma"
415
+ }
416
+ },
417
+ "match": "^\\s*(type)\\s+(\\w+)\\s*=\\s*(\\w+)"
418
+ },
419
+ {
420
+ "include": "#attribute_with_arguments"
421
+ },
422
+ {
423
+ "include": "#attribute"
424
+ }
425
+ ]
426
+ },
427
+ "value": {
428
+ "name": "source.prisma.value",
429
+ "patterns": [
430
+ {
431
+ "include": "#array"
432
+ },
433
+ {
434
+ "include": "#functional"
435
+ },
436
+ {
437
+ "include": "#literal"
438
+ }
439
+ ]
440
+ }
441
+ },
442
+ "scopeName": "source.prisma"
443
+ }