tm-grammars 1.6.3 → 1.6.5

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/grammars/tex.json CHANGED
@@ -2,6 +2,35 @@
2
2
  "displayName": "TeX",
3
3
  "name": "tex",
4
4
  "patterns": [
5
+ {
6
+ "begin": "(\\\\)iffalse",
7
+ "beginCaptures": {
8
+ "0": {
9
+ "name": "keyword.control.tex"
10
+ },
11
+ "1": {
12
+ "name": "punctuation.definition.keyword.tex"
13
+ }
14
+ },
15
+ "contentName": "comment.line.percentage.tex",
16
+ "end": "(\\\\)(else|fi)",
17
+ "endCaptures": {
18
+ "0": {
19
+ "name": "keyword.control.tex"
20
+ },
21
+ "1": {
22
+ "name": "punctuation.definition.keyword.tex"
23
+ }
24
+ },
25
+ "patterns": [
26
+ {
27
+ "include": "#comment"
28
+ },
29
+ {
30
+ "include": "#conditionals"
31
+ }
32
+ ]
33
+ },
5
34
  {
6
35
  "captures": {
7
36
  "1": {
@@ -30,35 +59,7 @@
30
59
  "name": "meta.catcode.tex"
31
60
  },
32
61
  {
33
- "begin": "(^[ \\t]+)?(?=%)",
34
- "beginCaptures": {
35
- "1": {
36
- "name": "punctuation.whitespace.comment.leading.tex"
37
- }
38
- },
39
- "end": "(?!\\G)",
40
- "patterns": [
41
- {
42
- "begin": "%:?",
43
- "beginCaptures": {
44
- "0": {
45
- "name": "punctuation.definition.comment.tex"
46
- }
47
- },
48
- "end": "$\\n?",
49
- "name": "comment.line.percentage.tex"
50
- },
51
- {
52
- "begin": "^(%!TEX) (\\S*) =",
53
- "beginCaptures": {
54
- "1": {
55
- "name": "punctuation.definition.comment.tex"
56
- }
57
- },
58
- "end": "$\\n?",
59
- "name": "comment.line.percentage.directive.tex"
60
- }
61
- ]
62
+ "include": "#comment"
62
63
  },
63
64
  {
64
65
  "match": "[\\[\\]]",
@@ -135,6 +136,49 @@
135
136
  }
136
137
  ]
137
138
  },
139
+ "comment": {
140
+ "begin": "(^[ \\t]+)?(?=%)",
141
+ "beginCaptures": {
142
+ "1": {
143
+ "name": "punctuation.whitespace.comment.leading.tex"
144
+ }
145
+ },
146
+ "end": "(?!\\G)",
147
+ "patterns": [
148
+ {
149
+ "begin": "%:?",
150
+ "beginCaptures": {
151
+ "0": {
152
+ "name": "punctuation.definition.comment.tex"
153
+ }
154
+ },
155
+ "end": "$\\n?",
156
+ "name": "comment.line.percentage.tex"
157
+ },
158
+ {
159
+ "begin": "^(%!TEX) (\\S*) =",
160
+ "beginCaptures": {
161
+ "1": {
162
+ "name": "punctuation.definition.comment.tex"
163
+ }
164
+ },
165
+ "end": "$\\n?",
166
+ "name": "comment.line.percentage.directive.tex"
167
+ }
168
+ ]
169
+ },
170
+ "conditionals": {
171
+ "begin": "\\\\(if[a-z]*)",
172
+ "end": "\\\\fi",
173
+ "patterns": [
174
+ {
175
+ "include": "#comment"
176
+ },
177
+ {
178
+ "include": "#conditionals"
179
+ }
180
+ ]
181
+ },
138
182
  "math": {
139
183
  "patterns": [
140
184
  {
@@ -162,7 +206,7 @@
162
206
  "include": "#math"
163
207
  },
164
208
  {
165
- "include": "$base"
209
+ "include": "$self"
166
210
  }
167
211
  ]
168
212
  },
package/index.js CHANGED
@@ -247,13 +247,13 @@ export const grammars = [
247
247
  'markup',
248
248
  ],
249
249
  displayName: 'BibTeX',
250
- lastUpdate: '2023-09-11T09:38:45Z',
250
+ lastUpdate: '2024-04-09T10:20:39Z',
251
251
  license: 'MIT',
252
252
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
253
253
  name: 'bibtex',
254
254
  scopeName: 'text.bibtex',
255
- sha: '6021e0179514df6de02f91174ff7f9c5f6c87fd1',
256
- source: 'https://github.com/microsoft/vscode/blob/6021e0179514df6de02f91174ff7f9c5f6c87fd1/extensions/latex/syntaxes/Bibtex.tmLanguage.json',
255
+ sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
256
+ source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/Bibtex.tmLanguage.json',
257
257
  },
258
258
  {
259
259
  byteSize: 4041,
@@ -642,15 +642,15 @@ export const grammars = [
642
642
  aliases: [
643
643
  'erl',
644
644
  ],
645
- byteSize: 28659,
645
+ byteSize: 31146,
646
646
  displayName: 'Erlang',
647
- lastUpdate: '2024-04-03T14:51:26Z',
647
+ lastUpdate: '2024-04-03T07:32:37Z',
648
648
  license: 'Apache-2.0',
649
649
  licenseUrl: 'https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE',
650
650
  name: 'erlang',
651
651
  scopeName: 'source.erlang',
652
- sha: '5ce71b5dcfe4b62d7c9c78fd19f79501ebf7837c',
653
- source: 'https://github.com/erlang-ls/grammar/blob/5ce71b5dcfe4b62d7c9c78fd19f79501ebf7837c/Erlang.plist',
652
+ sha: '2166c044337dcae6c143c140b47abb8b8fd29a4c',
653
+ source: 'https://github.com/erlang-ls/grammar/blob/2166c044337dcae6c143c140b47abb8b8fd29a4c/Erlang.plist',
654
654
  },
655
655
  {
656
656
  byteSize: 5184,
@@ -881,18 +881,18 @@ export const grammars = [
881
881
  source: 'https://github.com/MarioSchwalbe/vscode-gnuplot/blob/c62c1a61c9b6b4658b43d76c397dc2ad43523b6a/syntaxes/gnuplot.tmLanguage',
882
882
  },
883
883
  {
884
- byteSize: 44298,
884
+ byteSize: 46222,
885
885
  categories: [
886
886
  'general',
887
887
  ],
888
888
  displayName: 'Go',
889
- lastUpdate: '2024-02-27T11:14:40Z',
889
+ lastUpdate: '2024-04-09T10:20:39Z',
890
890
  license: 'MIT',
891
891
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
892
892
  name: 'go',
893
893
  scopeName: 'source.go',
894
- sha: 'e9a8b6add5329f8124f23ff7143d95c22ce39f76',
895
- source: 'https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/go/syntaxes/go.tmLanguage.json',
894
+ sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
895
+ source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/go/syntaxes/go.tmLanguage.json',
896
896
  },
897
897
  {
898
898
  aliases: [
@@ -1314,7 +1314,7 @@ export const grammars = [
1314
1314
  aliases: [
1315
1315
  'jl',
1316
1316
  ],
1317
- byteSize: 31564,
1317
+ byteSize: 33620,
1318
1318
  categories: [
1319
1319
  'web',
1320
1320
  'data',
@@ -1327,13 +1327,13 @@ export const grammars = [
1327
1327
  'r',
1328
1328
  'sql',
1329
1329
  ],
1330
- lastUpdate: '2024-01-26T12:06:22Z',
1330
+ lastUpdate: '2024-04-09T10:20:39Z',
1331
1331
  license: 'MIT',
1332
1332
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
1333
1333
  name: 'julia',
1334
1334
  scopeName: 'source.julia',
1335
- sha: '35d97bc7e439fce0f50f42074041ab2d8571b20a',
1336
- source: 'https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/julia/syntaxes/julia.tmLanguage.json',
1335
+ sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
1336
+ source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/julia/syntaxes/julia.tmLanguage.json',
1337
1337
  },
1338
1338
  {
1339
1339
  aliases: [
@@ -1366,36 +1366,37 @@ export const grammars = [
1366
1366
  source: 'https://github.com/rosshamish/kuskus/blob/638b8a9249c2c423bc263726661cde534b25adc7/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json',
1367
1367
  },
1368
1368
  {
1369
- byteSize: 40976,
1369
+ byteSize: 54540,
1370
1370
  categories: [
1371
1371
  'markup',
1372
1372
  ],
1373
1373
  displayName: 'LaTeX',
1374
1374
  embedded: [
1375
1375
  'tex',
1376
+ 'shellscript',
1376
1377
  'css',
1378
+ 'gnuplot',
1377
1379
  'haskell',
1378
1380
  'html',
1379
- 'xml',
1380
1381
  'java',
1381
- 'lua',
1382
1382
  'julia',
1383
- 'ruby',
1384
1383
  'javascript',
1385
- 'typescript',
1384
+ 'lua',
1386
1385
  'python',
1387
- 'yaml',
1386
+ 'ruby',
1388
1387
  'rust',
1388
+ 'typescript',
1389
+ 'xml',
1390
+ 'yaml',
1389
1391
  'scala',
1390
- 'gnuplot',
1391
1392
  ],
1392
- lastUpdate: '2024-01-26T12:06:22Z',
1393
+ lastUpdate: '2024-04-09T10:20:39Z',
1393
1394
  license: 'MIT',
1394
1395
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
1395
1396
  name: 'latex',
1396
1397
  scopeName: 'text.tex.latex',
1397
- sha: '35d97bc7e439fce0f50f42074041ab2d8571b20a',
1398
- source: 'https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/latex/syntaxes/LaTeX.tmLanguage.json',
1398
+ sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
1399
+ source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/LaTeX.tmLanguage.json',
1399
1400
  },
1400
1401
  {
1401
1402
  byteSize: 81466,
@@ -2177,18 +2178,18 @@ export const grammars = [
2177
2178
  aliases: [
2178
2179
  'rs',
2179
2180
  ],
2180
- byteSize: 17171,
2181
+ byteSize: 17175,
2181
2182
  categories: [
2182
2183
  'general',
2183
2184
  ],
2184
2185
  displayName: 'Rust',
2185
- lastUpdate: '2024-01-26T12:06:22Z',
2186
+ lastUpdate: '2024-04-09T10:20:39Z',
2186
2187
  license: 'MIT',
2187
2188
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
2188
2189
  name: 'rust',
2189
2190
  scopeName: 'source.rust',
2190
- sha: '35d97bc7e439fce0f50f42074041ab2d8571b20a',
2191
- source: 'https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/rust/syntaxes/rust.tmLanguage.json',
2191
+ sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
2192
+ source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/rust/syntaxes/rust.tmLanguage.json',
2192
2193
  },
2193
2194
  {
2194
2195
  byteSize: 9533,
@@ -2284,18 +2285,18 @@ export const grammars = [
2284
2285
  'shell',
2285
2286
  'zsh',
2286
2287
  ],
2287
- byteSize: 39594,
2288
+ byteSize: 39910,
2288
2289
  categories: [
2289
2290
  'scripting',
2290
2291
  ],
2291
2292
  displayName: 'Shell',
2292
- lastUpdate: '2024-03-15T11:52:46Z',
2293
+ lastUpdate: '2024-04-09T10:20:39Z',
2293
2294
  license: 'MIT',
2294
2295
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
2295
2296
  name: 'shellscript',
2296
2297
  scopeName: 'source.shell',
2297
- sha: '6285faddc6bbce7e605c04f8ab4364fdc6aa2f04',
2298
- source: 'https://github.com/microsoft/vscode/blob/6285faddc6bbce7e605c04f8ab4364fdc6aa2f04/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json',
2298
+ sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
2299
+ source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json',
2299
2300
  },
2300
2301
  {
2301
2302
  aliases: [
@@ -2507,7 +2508,7 @@ export const grammars = [
2507
2508
  source: 'https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json',
2508
2509
  },
2509
2510
  {
2510
- byteSize: 8039,
2511
+ byteSize: 8555,
2511
2512
  categories: [
2512
2513
  'markup',
2513
2514
  ],
@@ -2515,13 +2516,13 @@ export const grammars = [
2515
2516
  embedded: [
2516
2517
  'r',
2517
2518
  ],
2518
- lastUpdate: '2023-12-13T12:08:01Z',
2519
+ lastUpdate: '2024-04-09T10:20:39Z',
2519
2520
  license: 'MIT',
2520
2521
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
2521
2522
  name: 'tex',
2522
2523
  scopeName: 'text.tex',
2523
- sha: '3c86ede5f554f6e196c832394e126b291a1de606',
2524
- source: 'https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/latex/syntaxes/TeX.tmLanguage.json',
2524
+ sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
2525
+ source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/TeX.tmLanguage.json',
2525
2526
  },
2526
2527
  {
2527
2528
  byteSize: 6411,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.6.3",
4
+ "version": "1.6.5",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",