tm-grammars 1.3.2 → 1.4.1

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.
package/NOTICE CHANGED
@@ -6393,6 +6393,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6393
6393
  SOFTWARE.
6394
6394
 
6395
6395
 
6396
+ =========================================================================================================
6397
+ Files: typst.json
6398
+ License: https://raw.githubusercontent.com/nvarner/typst-lsp/master/LICENSE-MIT.txt
6399
+ SPDX: MIT
6400
+ ---------------------------------------------------------------------------------------------------------
6401
+ MIT License
6402
+
6403
+ Copyright (c) 2023 Nathan Varner
6404
+
6405
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6406
+ of this software and associated documentation files (the "Software"), to deal
6407
+ in the Software without restriction, including without limitation the rights
6408
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6409
+ copies of the Software, and to permit persons to whom the Software is
6410
+ furnished to do so, subject to the following conditions:
6411
+
6412
+ The above copyright notice and this permission notice shall be included in all
6413
+ copies or substantial portions of the Software.
6414
+
6415
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6416
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6417
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6418
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6419
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6420
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6421
+ SOFTWARE.
6422
+
6396
6423
  =========================================================================================================
6397
6424
  Files: v.json
6398
6425
  License: https://raw.githubusercontent.com/vlang/vscode-vlang/master/LICENSE
package/README.md CHANGED
@@ -49,7 +49,7 @@ import { grammars } from 'tm-grammars'
49
49
  | `codeql` | `ql` | [github/vscode-codeql](https://github.com/github/vscode-codeql/blob/47fa163cb9fffce379458962eb391c9ef9082dcb/syntaxes/ql.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/github/vscode-codeql/main/LICENSE.md) | | 32.73 kB |
50
50
  | `coffee` | `coffeescript` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ff58f5083f57b50e6a100ab60454dfb72fe21e80/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `javascript` | 26.34 kB |
51
51
  | `cpp` | `c++` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp-macro` `glsl` `sql` | 411.01 kB |
52
- | `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/3fc307078e1cfb44247eae890253f09fbc0816e2/syntaxes/crystal.json) | [MIT](https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE) | `html` `sql` `css` `c` `javascript` `shellscript` | 31.40 kB |
52
+ | `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/592999d041bdc59b0127dee68bd225330eb9bc41/syntaxes/crystal.json) | [MIT](https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE) | `html` `sql` `css` `c` `javascript` `shellscript` | 31.59 kB |
53
53
  | `csharp` | `c#` `cs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/csharp/syntaxes/csharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 83.23 kB |
54
54
  | `css` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ae23e73ba0690ae82614d585e10a88d608ccdda0/extensions/css/syntaxes/css.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 48.60 kB |
55
55
  | `csv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/3bdafafa12940a75166089b64bdd80b1d3b071db/syntaxes/csv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | 1.07 kB |
@@ -157,7 +157,7 @@ import { grammars } from 'tm-grammars'
157
157
  | `rust` | `rs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/rust/syntaxes/rust.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 16.77 kB |
158
158
  | `sas` | | [rpardee/sas](https://github.com/rpardee/sas/blob/49f6e733c6c0b918a2a825ca2f63dba704f3e8c0/syntaxes/sas.tmLanguage) | [MIT](https://raw.githubusercontent.com/rpardee/sas/master/LICENSE) | `sql` | 9.31 kB |
159
159
  | `sass` | | [TheRealSyler/vscode-sass-indented](https://github.com/TheRealSyler/vscode-sass-indented/blob/7b0bd6bbbb768c0cf21b2aa0899cb872ee42fd50/syntaxes/sass.tmLanguage.json) | [NOASSERTION](https://raw.githubusercontent.com/TheRealSyler/vscode-sass-indented/master/LICENSE) | | 8.84 kB |
160
- | `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/0ee961a552679291fdf41f4070c2766da6b7e0fb/syntaxes/Scala.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md) | | 26.79 kB |
160
+ | `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/1addd66a1bcb65510348ee6dddb5acfcf51f4fba/syntaxes/Scala.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md) | | 26.85 kB |
161
161
  | `scheme` | | [sjhuangx/vscode-scheme](https://github.com/sjhuangx/vscode-scheme/blob/4e21683666e1e2edfa21d040ecd427f628e7b5ff/syntaxes/scheme.tmLanguage) | [MIT](https://raw.githubusercontent.com/sjhuangx/vscode-scheme/master/LICENSE.md) | | 8.35 kB |
162
162
  | `scss` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/cf8d61ebd2f022f4ce8280171f0360d1fe0a206d/extensions/scss/syntaxes/scss.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` | 26.21 kB |
163
163
  | `shaderlab` | `shader` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `hlsl` | 5.83 kB |
@@ -183,6 +183,7 @@ import { grammars } from 'tm-grammars'
183
183
  | `turtle` | | [stardog-union/stardog-vsc](https://github.com/stardog-union/stardog-vsc/blob/3f1364b08bdbf4b4d77f123682db7d2b708b2f6e/stardog-rdf-grammars/syntaxes/turtle.tmLanguage.json) | | | 3.50 kB |
184
184
  | `twig` | | [mblode/vscode-twig-language-2](https://github.com/mblode/vscode-twig-language-2/blob/82ae07ffe96656181ad8265c1fff008c8d1cdbba/src/syntaxes/twig.tmLanguage) | [MIT](https://raw.githubusercontent.com/mblode/vscode-twig-language-2/master/LICENSE.md) | `css` `javascript` `scss` `php` `python` `ruby` | 20.64 kB |
185
185
  | `typescript` | `ts` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 177.10 kB |
186
+ | `typst` | `typ` | [nvarner/typst-lsp](https://github.com/nvarner/typst-lsp/blob/6972d4b9c2cbcb0551e203067f09ec84ca8f9df3/editors/vscode/typst.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nvarner/typst-lsp/master/LICENSE-MIT.txt) | | 7.98 kB |
186
187
  | `v` | | [vlang/vscode-vlang](https://github.com/vlang/vscode-vlang/blob/b1f529602bc6536ad8967373302e151e77179598/syntaxes/v.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/vlang/vscode-vlang/master/LICENSE) | | 12.76 kB |
187
188
  | `vb` | `cmd` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/vb/syntaxes/asp-vb-net.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 5.84 kB |
188
189
  | `verilog` | | [mshr-h/vscode-verilog-hdl-support](https://github.com/mshr-h/vscode-verilog-hdl-support/blob/5963f70745bac638a96431176d39c688b35e8b59/syntaxes/verilog.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mshr-h/vscode-verilog-hdl-support/main/LICENSE) | | 5.55 kB |
@@ -124,15 +124,20 @@
124
124
  "name": "meta.lib.type.crystal"
125
125
  },
126
126
  {
127
- "comment": "everything being a reserved word, not a value and needing a 'end' is a..",
127
+ "comment": "everything being a reserved word, not a value, and needing a 'end' is a..",
128
128
  "match": "(?<!\\.)\\b(fun|begin|case|class|else|elsif|end|ensure|enum|for|if|macro|module|rescue|struct|then|union|unless|until|when|while)\\b(?![?!:])",
129
129
  "name": "keyword.control.crystal"
130
130
  },
131
131
  {
132
- "comment": "everything being a reserved word, not a value and not needing a 'end' is a..",
132
+ "comment": "everything being a reserved word, not a value, and not needing a 'end' is a..",
133
133
  "match": "(?<!\\.)\\b(abstract|alias|asm|break|extend|in|include|next|of|private|protected|struct|return|select|super|with|yield)\\b(?![?!:])",
134
134
  "name": "keyword.control.primary.crystal"
135
135
  },
136
+ {
137
+ "comment": "everything being a spec keyword, not a value, and needing a block is a..",
138
+ "match": "(?<!\\.)\\b(describe|context|it|expect_raises)\\b(?![?!:])",
139
+ "name": "keyword.control.crystal"
140
+ },
136
141
  {
137
142
  "comment": "contextual smart pair support for block parameters",
138
143
  "match": "(?<!\\.)\\bdo\\b\\s*",
@@ -1030,7 +1035,7 @@
1030
1035
  "name": "comment.line.number-sign.crystal"
1031
1036
  },
1032
1037
  {
1033
- "match": "\\b_([\\w]+[?!]?)",
1038
+ "match": "\\b_([\\w]+[?!]?)\\b(?!\\()",
1034
1039
  "name": "comment.unused.crystal"
1035
1040
  },
1036
1041
  {
@@ -572,6 +572,10 @@
572
572
  "match": "\\b(given)\\b",
573
573
  "name": "keyword.other.import.given.scala"
574
574
  },
575
+ {
576
+ "match": "\\s(as)\\s",
577
+ "name": "keyword.other.import.as.scala"
578
+ },
575
579
  {
576
580
  "match": "[A-Z\\p{Lt}\\p{Lu}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?",
577
581
  "name": "entity.name.class.import.scala"
@@ -0,0 +1,577 @@
1
+ {
2
+ "displayName": "Typst",
3
+ "name": "typst",
4
+ "patterns": [
5
+ {
6
+ "include": "#markup"
7
+ }
8
+ ],
9
+ "repository": {
10
+ "arguments": {
11
+ "patterns": [
12
+ {
13
+ "match": "\\b[[:alpha:]_][[:alnum:]_-]*(?=:)",
14
+ "name": "variable.parameter.typst"
15
+ },
16
+ {
17
+ "include": "#code"
18
+ }
19
+ ]
20
+ },
21
+ "code": {
22
+ "patterns": [
23
+ {
24
+ "include": "#common"
25
+ },
26
+ {
27
+ "begin": "{",
28
+ "captures": {
29
+ "0": {
30
+ "name": "punctuation.definition.block.code.typst"
31
+ }
32
+ },
33
+ "end": "}",
34
+ "name": "meta.block.code.typst",
35
+ "patterns": [
36
+ {
37
+ "include": "#code"
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "begin": "\\[",
43
+ "captures": {
44
+ "0": {
45
+ "name": "punctuation.definition.block.content.typst"
46
+ }
47
+ },
48
+ "end": "\\]",
49
+ "name": "meta.block.content.typst",
50
+ "patterns": [
51
+ {
52
+ "include": "#markup"
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ "begin": "//",
58
+ "beginCaptures": {
59
+ "0": {
60
+ "name": "punctuation.definition.comment.typst"
61
+ }
62
+ },
63
+ "end": "\n",
64
+ "name": "comment.line.double-slash.typst"
65
+ },
66
+ {
67
+ "match": ":",
68
+ "name": "punctuation.separator.colon.typst"
69
+ },
70
+ {
71
+ "match": ",",
72
+ "name": "punctuation.separator.comma.typst"
73
+ },
74
+ {
75
+ "match": "=>|\\.\\.",
76
+ "name": "keyword.operator.typst"
77
+ },
78
+ {
79
+ "match": "==|!=|<=|<|>=|>",
80
+ "name": "keyword.operator.relational.typst"
81
+ },
82
+ {
83
+ "match": "\\+=|-=|\\*=|/=|=",
84
+ "name": "keyword.operator.assignment.typst"
85
+ },
86
+ {
87
+ "match": "\\+|\\*|/|(?<![[:alpha:]_][[:alnum:]_-]*)-(?![:alnum:]_-]*[[:alpha:]_])",
88
+ "name": "keyword.operator.arithmetic.typst"
89
+ },
90
+ {
91
+ "match": "\\b(and|or|not)\\b",
92
+ "name": "keyword.operator.word.typst"
93
+ },
94
+ {
95
+ "match": "\\b(let|as|in|set|show)\\b",
96
+ "name": "keyword.other.typst"
97
+ },
98
+ {
99
+ "match": "\\b(if|else)\\b",
100
+ "name": "keyword.control.conditional.typst"
101
+ },
102
+ {
103
+ "match": "\\b(for|while|break|continue)\\b",
104
+ "name": "keyword.control.loop.typst"
105
+ },
106
+ {
107
+ "match": "\\b(import|include|export)\\b",
108
+ "name": "keyword.control.import.typst"
109
+ },
110
+ {
111
+ "match": "\\b(return)\\b",
112
+ "name": "keyword.control.flow.typst"
113
+ },
114
+ {
115
+ "include": "#constants"
116
+ },
117
+ {
118
+ "comment": "Function name",
119
+ "match": "\\b[[:alpha:]_][[:alnum:]_-]*!?(?=\\[|\\()",
120
+ "name": "entity.name.function.typst"
121
+ },
122
+ {
123
+ "comment": "Function name",
124
+ "match": "(?<=\\bshow\\s*)\\b[[:alpha:]_][[:alnum:]_-]*(?=\\s*[:.])",
125
+ "name": "entity.name.function.typst"
126
+ },
127
+ {
128
+ "begin": "(?<=\\b[[:alpha:]_][[:alnum:]_-]*!?)\\(",
129
+ "captures": {
130
+ "0": {
131
+ "name": "punctuation.definition.group.typst"
132
+ }
133
+ },
134
+ "comment": "Function arguments",
135
+ "end": "\\)",
136
+ "patterns": [
137
+ {
138
+ "include": "#arguments"
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "match": "\\b[[:alpha:]_][[:alnum:]_-]*\\b",
144
+ "name": "variable.other.typst"
145
+ },
146
+ {
147
+ "begin": "\\(",
148
+ "captures": {
149
+ "0": {
150
+ "name": "punctuation.definition.group.typst"
151
+ }
152
+ },
153
+ "end": "\\)|(?=;)",
154
+ "name": "meta.group.typst",
155
+ "patterns": [
156
+ {
157
+ "include": "#code"
158
+ }
159
+ ]
160
+ }
161
+ ]
162
+ },
163
+ "comments": {
164
+ "patterns": [
165
+ {
166
+ "begin": "/\\*",
167
+ "captures": {
168
+ "0": {
169
+ "name": "punctuation.definition.comment.typst"
170
+ }
171
+ },
172
+ "end": "\\*/",
173
+ "name": "comment.block.typst",
174
+ "patterns": [
175
+ {
176
+ "include": "#comments"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "begin": "(?<!:)//",
182
+ "beginCaptures": {
183
+ "0": {
184
+ "name": "punctuation.definition.comment.typst"
185
+ }
186
+ },
187
+ "end": "\n",
188
+ "name": "comment.line.double-slash.typst",
189
+ "patterns": [
190
+ {
191
+ "include": "#comments"
192
+ }
193
+ ]
194
+ }
195
+ ]
196
+ },
197
+ "common": {
198
+ "patterns": [
199
+ {
200
+ "include": "#comments"
201
+ }
202
+ ]
203
+ },
204
+ "constants": {
205
+ "patterns": [
206
+ {
207
+ "match": "\\bnone\\b",
208
+ "name": "constant.language.none.typst"
209
+ },
210
+ {
211
+ "match": "\\bauto\\b",
212
+ "name": "constant.language.auto.typst"
213
+ },
214
+ {
215
+ "match": "\\b(true|false)\\b",
216
+ "name": "constant.language.boolean.typst"
217
+ },
218
+ {
219
+ "match": "\\b(\\d*)?\\.?\\d+([eE][+-]?\\d+)?(mm|pt|cm|in|em)\\b",
220
+ "name": "constant.numeric.length.typst"
221
+ },
222
+ {
223
+ "match": "\\b(\\d*)?\\.?\\d+([eE][+-]?\\d+)?(rad|deg)\\b",
224
+ "name": "constant.numeric.angle.typst"
225
+ },
226
+ {
227
+ "match": "\\b(\\d*)?\\.?\\d+([eE][+-]?\\d+)?%",
228
+ "name": "constant.numeric.percentage.typst"
229
+ },
230
+ {
231
+ "match": "\\b(\\d*)?\\.?\\d+([eE][+-]?\\d+)?fr",
232
+ "name": "constant.numeric.fr.typst"
233
+ },
234
+ {
235
+ "match": "\\b\\d+\\b",
236
+ "name": "constant.numeric.integer.typst"
237
+ },
238
+ {
239
+ "match": "\\b(\\d*)?\\.?\\d+([eE][+-]?\\d+)?\\b",
240
+ "name": "constant.numeric.float.typst"
241
+ },
242
+ {
243
+ "begin": "\"",
244
+ "captures": {
245
+ "0": {
246
+ "name": "punctuation.definition.string.typst"
247
+ }
248
+ },
249
+ "end": "\"",
250
+ "name": "string.quoted.double.typst",
251
+ "patterns": [
252
+ {
253
+ "match": "\\\\([\\\\\"nrt]|u\\{?[0-9a-zA-Z]*\\}?)",
254
+ "name": "constant.character.escape.string.typst"
255
+ }
256
+ ]
257
+ },
258
+ {
259
+ "begin": "\\$",
260
+ "captures": {
261
+ "0": {
262
+ "name": "punctuation.definition.string.math.typst"
263
+ }
264
+ },
265
+ "end": "\\$",
266
+ "name": "string.other.math.typst"
267
+ }
268
+ ]
269
+ },
270
+ "markup": {
271
+ "patterns": [
272
+ {
273
+ "include": "#common"
274
+ },
275
+ {
276
+ "match": "\\\\([\\\\/\\[\\]{}#*_=~`$-.]|u\\{[0-9a-zA-Z]*\\}?)",
277
+ "name": "constant.character.escape.content.typst"
278
+ },
279
+ {
280
+ "match": "\\\\",
281
+ "name": "punctuation.definition.linebreak.typst"
282
+ },
283
+ {
284
+ "match": "~",
285
+ "name": "punctuation.definition.nonbreaking-space.typst"
286
+ },
287
+ {
288
+ "match": "-\\?",
289
+ "name": "punctuation.definition.shy.typst"
290
+ },
291
+ {
292
+ "match": "---",
293
+ "name": "punctuation.definition.em-dash.typst"
294
+ },
295
+ {
296
+ "match": "--",
297
+ "name": "punctuation.definition.en-dash.typst"
298
+ },
299
+ {
300
+ "match": "\\.\\.\\.",
301
+ "name": "punctuation.definition.ellipsis.typst"
302
+ },
303
+ {
304
+ "match": ":([a-zA-Z0-9]+:)+",
305
+ "name": "constant.symbol.typst"
306
+ },
307
+ {
308
+ "begin": "(^\\*|\\*$|((?<=\\W|_)\\*)|(\\*(?=\\W|_)))",
309
+ "captures": {
310
+ "0": {
311
+ "name": "punctuation.definition.bold.typst"
312
+ }
313
+ },
314
+ "end": "(^\\*|\\*$|((?<=\\W|_)\\*)|(\\*(?=\\W|_)))|\n|(?=\\])",
315
+ "name": "markup.bold.typst",
316
+ "patterns": [
317
+ {
318
+ "include": "#markup"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "begin": "(^_|_$|((?<=\\W|_)_)|(_(?=\\W|_)))",
324
+ "captures": {
325
+ "0": {
326
+ "name": "punctuation.definition.italic.typst"
327
+ }
328
+ },
329
+ "end": "(^_|_$|((?<=\\W|_)_)|(_(?=\\W|_)))|\n|(?=\\])",
330
+ "name": "markup.italic.typst",
331
+ "patterns": [
332
+ {
333
+ "include": "#markup"
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "match": "https?://[0-9a-zA-Z~/%#&=',;\\.\\+\\?]*",
339
+ "name": "markup.underline.link.typst"
340
+ },
341
+ {
342
+ "begin": "`{3,}",
343
+ "captures": {
344
+ "0": {
345
+ "name": "punctuation.definition.raw.typst"
346
+ }
347
+ },
348
+ "end": "\\0",
349
+ "name": "markup.raw.block.typst"
350
+ },
351
+ {
352
+ "begin": "`",
353
+ "captures": {
354
+ "0": {
355
+ "name": "punctuation.definition.raw.typst"
356
+ }
357
+ },
358
+ "end": "`",
359
+ "name": "markup.raw.inline.typst"
360
+ },
361
+ {
362
+ "begin": "\\$",
363
+ "captures": {
364
+ "0": {
365
+ "name": "punctuation.definition.string.math.typst"
366
+ }
367
+ },
368
+ "end": "\\$",
369
+ "name": "string.other.math.typst"
370
+ },
371
+ {
372
+ "begin": "^\\s*=+\\s+",
373
+ "beginCaptures": {
374
+ "0": {
375
+ "name": "punctuation.definition.heading.typst"
376
+ }
377
+ },
378
+ "contentName": "entity.name.section.typst",
379
+ "end": "\n|(?=<)",
380
+ "name": "markup.heading.typst",
381
+ "patterns": [
382
+ {
383
+ "include": "#markup"
384
+ }
385
+ ]
386
+ },
387
+ {
388
+ "match": "^\\s*-\\s+",
389
+ "name": "punctuation.definition.list.unnumbered.typst"
390
+ },
391
+ {
392
+ "match": "^\\s*([0-9]*\\.|\\+)\\s+",
393
+ "name": "punctuation.definition.list.numbered.typst"
394
+ },
395
+ {
396
+ "captures": {
397
+ "1": {
398
+ "name": "punctuation.definition.list.description.typst"
399
+ },
400
+ "2": {
401
+ "name": "markup.list.term.typst"
402
+ }
403
+ },
404
+ "match": "^\\s*(/)\\s+([^:]*:)"
405
+ },
406
+ {
407
+ "captures": {
408
+ "1": {
409
+ "name": "punctuation.definition.label.typst"
410
+ }
411
+ },
412
+ "match": "<[[:alpha:]_][[:alnum:]_-]*>",
413
+ "name": "entity.other.label.typst"
414
+ },
415
+ {
416
+ "captures": {
417
+ "1": {
418
+ "name": "punctuation.definition.reference.typst"
419
+ }
420
+ },
421
+ "match": "(@)[[:alpha:]_][[:alnum:]_-]*",
422
+ "name": "entity.other.reference.typst"
423
+ },
424
+ {
425
+ "begin": "(#)(let|set|show)\\b",
426
+ "beginCaptures": {
427
+ "0": {
428
+ "name": "keyword.other.typst"
429
+ },
430
+ "1": {
431
+ "name": "punctuation.definition.keyword.typst"
432
+ }
433
+ },
434
+ "end": "\n|(;)|(?=])",
435
+ "endCaptures": {
436
+ "1": {
437
+ "name": "punctuation.terminator.statement.typst"
438
+ }
439
+ },
440
+ "patterns": [
441
+ {
442
+ "include": "#code"
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "captures": {
448
+ "1": {
449
+ "name": "punctuation.definition.keyword.typst"
450
+ }
451
+ },
452
+ "match": "(#)(as|in)\\b",
453
+ "name": "keyword.other.typst"
454
+ },
455
+ {
456
+ "begin": "((#)if|(?<=(}|])\\s*)else)\\b",
457
+ "beginCaptures": {
458
+ "0": {
459
+ "name": "keyword.control.conditional.typst"
460
+ },
461
+ "2": {
462
+ "name": "punctuation.definition.keyword.typst"
463
+ }
464
+ },
465
+ "end": "\n|(?=])|(?<=}|])",
466
+ "patterns": [
467
+ {
468
+ "include": "#code"
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "begin": "(#)(for|while)\\b",
474
+ "beginCaptures": {
475
+ "0": {
476
+ "name": "keyword.control.loop.typst"
477
+ },
478
+ "1": {
479
+ "name": "punctuation.definition.keyword.typst"
480
+ }
481
+ },
482
+ "end": "\n|(?=])|(?<=}|])",
483
+ "patterns": [
484
+ {
485
+ "include": "#code"
486
+ }
487
+ ]
488
+ },
489
+ {
490
+ "captures": {
491
+ "1": {
492
+ "name": "punctuation.definition.keyword.typst"
493
+ }
494
+ },
495
+ "match": "(#)(break|continue)\\b",
496
+ "name": "keyword.control.loop.typst"
497
+ },
498
+ {
499
+ "begin": "(#)(import|include|export)\\b",
500
+ "beginCaptures": {
501
+ "0": {
502
+ "name": "keyword.control.import.typst"
503
+ },
504
+ "1": {
505
+ "name": "punctuation.definition.keyword.typst"
506
+ }
507
+ },
508
+ "end": "\n|(;)|(?=])",
509
+ "endCaptures": {
510
+ "1": {
511
+ "name": "punctuation.terminator.statement.typst"
512
+ }
513
+ },
514
+ "patterns": [
515
+ {
516
+ "include": "#code"
517
+ }
518
+ ]
519
+ },
520
+ {
521
+ "captures": {
522
+ "1": {
523
+ "name": "punctuation.definition.keyword.typst"
524
+ }
525
+ },
526
+ "match": "(#)(return)\\b",
527
+ "name": "keyword.control.flow.typst"
528
+ },
529
+ {
530
+ "captures": {
531
+ "2": {
532
+ "name": "punctuation.definition.function.typst"
533
+ }
534
+ },
535
+ "comment": "Function name",
536
+ "match": "((#)[[:alpha:]_][[:alnum:]_-]*!?)(?=\\[|\\()",
537
+ "name": "entity.name.function.typst"
538
+ },
539
+ {
540
+ "begin": "(?<=#[[:alpha:]_][[:alnum:]_-]*!?)\\(",
541
+ "captures": {
542
+ "0": {
543
+ "name": "punctuation.definition.group.typst"
544
+ }
545
+ },
546
+ "comment": "Function arguments",
547
+ "end": "\\)",
548
+ "patterns": [
549
+ {
550
+ "include": "#arguments"
551
+ }
552
+ ]
553
+ },
554
+ {
555
+ "captures": {
556
+ "1": {
557
+ "name": "punctuation.definition.variable.typst"
558
+ }
559
+ },
560
+ "match": "(#)[[:alpha:]_][.[:alnum:]_-]*",
561
+ "name": "entity.other.interpolated.typst"
562
+ },
563
+ {
564
+ "begin": "#",
565
+ "end": "\\s",
566
+ "name": "meta.block.content.typst",
567
+ "patterns": [
568
+ {
569
+ "include": "#code"
570
+ }
571
+ ]
572
+ }
573
+ ]
574
+ }
575
+ },
576
+ "scopeName": "source.typst"
577
+ }
package/index.js CHANGED
@@ -434,7 +434,7 @@ export const grammars = [
434
434
  source: 'https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.tmLanguage.json',
435
435
  },
436
436
  {
437
- byteSize: 32151,
437
+ byteSize: 32352,
438
438
  displayName: 'Crystal',
439
439
  embedded: [
440
440
  'html',
@@ -444,13 +444,13 @@ export const grammars = [
444
444
  'javascript',
445
445
  'shellscript',
446
446
  ],
447
- lastUpdate: '2023-12-02T04:16:10Z',
447
+ lastUpdate: '2024-02-20T17:46:33Z',
448
448
  license: 'MIT',
449
449
  licenseUrl: 'https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE',
450
450
  name: 'crystal',
451
451
  scopeName: 'source.crystal',
452
- sha: '3fc307078e1cfb44247eae890253f09fbc0816e2',
453
- source: 'https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/3fc307078e1cfb44247eae890253f09fbc0816e2/syntaxes/crystal.json',
452
+ sha: '592999d041bdc59b0127dee68bd225330eb9bc41',
453
+ source: 'https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/592999d041bdc59b0127dee68bd225330eb9bc41/syntaxes/crystal.json',
454
454
  },
455
455
  {
456
456
  aliases: [
@@ -2205,15 +2205,15 @@ export const grammars = [
2205
2205
  source: 'https://github.com/TheRealSyler/vscode-sass-indented/blob/7b0bd6bbbb768c0cf21b2aa0899cb872ee42fd50/syntaxes/sass.tmLanguage.json',
2206
2206
  },
2207
2207
  {
2208
- byteSize: 27437,
2208
+ byteSize: 27499,
2209
2209
  displayName: 'Scala',
2210
- lastUpdate: '2024-02-16T10:50:59Z',
2210
+ lastUpdate: '2024-02-16T11:15:29Z',
2211
2211
  license: 'MIT',
2212
2212
  licenseUrl: 'https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md',
2213
2213
  name: 'scala',
2214
2214
  scopeName: 'source.scala',
2215
- sha: '0ee961a552679291fdf41f4070c2766da6b7e0fb',
2216
- source: 'https://github.com/scala/vscode-scala-syntax/blob/0ee961a552679291fdf41f4070c2766da6b7e0fb/syntaxes/Scala.tmLanguage.json',
2215
+ sha: '1addd66a1bcb65510348ee6dddb5acfcf51f4fba',
2216
+ source: 'https://github.com/scala/vscode-scala-syntax/blob/1addd66a1bcb65510348ee6dddb5acfcf51f4fba/syntaxes/Scala.tmLanguage.json',
2217
2217
  },
2218
2218
  {
2219
2219
  byteSize: 8548,
@@ -2582,6 +2582,20 @@ export const grammars = [
2582
2582
  sha: '35d97bc7e439fce0f50f42074041ab2d8571b20a',
2583
2583
  source: 'https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json',
2584
2584
  },
2585
+ {
2586
+ aliases: [
2587
+ 'typ',
2588
+ ],
2589
+ byteSize: 8171,
2590
+ displayName: 'Typst',
2591
+ lastUpdate: '2023-08-11T05:56:51Z',
2592
+ license: 'MIT',
2593
+ licenseUrl: 'https://raw.githubusercontent.com/nvarner/typst-lsp/master/LICENSE-MIT.txt',
2594
+ name: 'typst',
2595
+ scopeName: 'source.typst',
2596
+ sha: '6972d4b9c2cbcb0551e203067f09ec84ca8f9df3',
2597
+ source: 'https://github.com/nvarner/typst-lsp/blob/6972d4b9c2cbcb0551e203067f09ec84ca8f9df3/editors/vscode/typst.tmLanguage.json',
2598
+ },
2585
2599
  {
2586
2600
  byteSize: 13070,
2587
2601
  displayName: 'V',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.3.2",
4
+ "version": "1.4.1",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",