tm-grammars 1.6.2 → 1.6.4

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/README.md CHANGED
@@ -64,7 +64,7 @@ import { grammars } from 'tm-grammars'
64
64
  | `elixir` | | [elixir-editors/elixir-tmbundle](https://github.com/elixir-editors/elixir-tmbundle/blob/43c8cd957d5ac6e1abbd8730fc7a08c81a6e76c9/Syntaxes/Elixir.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/elixir-editors/elixir-tmbundle/master/LICENSE) | `html` | 16.96 kB |
65
65
  | `elm` | | [elm-tooling/elm-language-client-vscode](https://github.com/elm-tooling/elm-language-client-vscode/blob/c70351314682c2e0fae8a402ebb301da79821c37/syntaxes/elm-syntax.json) | [MIT](https://raw.githubusercontent.com/elm-tooling/elm-language-client-vscode/main/LICENSE) | `glsl` | 10.51 kB |
66
66
  | `erb` | | [textmate/ruby.tmbundle](https://github.com/textmate/ruby.tmbundle/blob/ecf0f1df23984bcff9b51552e35d9696cb0d9539/Syntaxes/HTML%20(Ruby%20-%20ERB).tmLanguage) | | `html` `ruby` | 1.90 kB |
67
- | `erlang` | `erl` | [erlang-ls/grammar](https://github.com/erlang-ls/grammar/blob/1087da5388620fe6457316e01cb1a02ee40769a5/Erlang.plist) | [Apache-2.0](https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE) | | 27.99 kB |
67
+ | `erlang` | `erl` | [erlang-ls/grammar](https://github.com/erlang-ls/grammar/blob/2166c044337dcae6c143c140b47abb8b8fd29a4c/Erlang.plist) | [Apache-2.0](https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE) | | 30.42 kB |
68
68
  | `fish` | | [bmalehorn/vscode-fish](https://github.com/bmalehorn/vscode-fish/blob/2fe4ccc72fdcd9b9f54fbb2c05fe9b350c32d718/syntaxes/fish.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/bmalehorn/vscode-fish/master/LICENSE) | | 5.06 kB |
69
69
  | `fortran-fixed-form` | `f` `for` `f77` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/e642012094fc0a7379f204bb4e61243005afb1da/syntaxes/fortran_fixed-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | `fortran-free-form` | 905.00 B |
70
70
  | `fortran-free-form` | `f90` `f95` `f03` `f08` `f18` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/f7fb41579770a0d8c75b9f295d167b31147b4f33/syntaxes/fortran_free-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | | 92.92 kB |
@@ -87,7 +87,7 @@ import { grammars } from 'tm-grammars'
87
87
  | `haml` | | [karuna/haml-vscode](https://github.com/karuna/haml-vscode/blob/aa45415aefd691af0a501ea4f98e434490623e0d/syntaxes/haml.json) | [MIT](https://raw.githubusercontent.com/karuna/haml-vscode/master/LICENSE.md) | `ruby` `javascript` `sass` `coffee` `markdown` `css` | 7.68 kB |
88
88
  | `handlebars` | `hbs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/45db52ba6bd211cecd03897caee0531350071721/extensions/handlebars/syntaxes/Handlebars.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `css` `javascript` `yaml` | 11.48 kB |
89
89
  | `haskell` | `hs` | [octref/language-haskell](https://github.com/octref/language-haskell/blob/ae87982aac2bf5cf6334c067e49c5ec8fc08b871/syntaxes/haskell.json) | [BSD-3-Clause](https://raw.githubusercontent.com/octref/language-haskell/master/LICENSE) | | 41.23 kB |
90
- | `hcl` | | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/ab4a9e8aa653ad018248b3afdb1e9b07152cc3a6/syntaxes/hcl.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 11.22 kB |
90
+ | `hcl` | | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/hcl.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 11.22 kB |
91
91
  | `hjson` | | [hjson/textmate-hjson](https://github.com/hjson/textmate-hjson/blob/196075169c9a9f9ab04c8e7423b67ea72c976237/Syntaxes/Hjson.tmLanguage) | [MIT](https://raw.githubusercontent.com/hjson/textmate-hjson/master/LICENSE) | | 12.20 kB |
92
92
  | `hlsl` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/efa12b2f49ec6ee84ed1e7bbd948808efec452f6/extensions/hlsl/syntaxes/hlsl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 7.15 kB |
93
93
  | `html` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/45324363153075dab0482312ae24d8c068d81e4f/extensions/html/syntaxes/html.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `javascript` `css` | 56.74 kB |
@@ -177,7 +177,7 @@ import { grammars } from 'tm-grammars'
177
177
  | `system-verilog` | | [mshr-h/vscode-verilog-hdl-support](https://github.com/mshr-h/vscode-verilog-hdl-support/blob/dca87637e8789563ec5315794fdc5ef8ce498264/syntaxes/systemverilog.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mshr-h/vscode-verilog-hdl-support/main/LICENSE) | | 18.47 kB |
178
178
  | `tasl` | | [underlay/vscode-tasl](https://github.com/underlay/vscode-tasl/blob/dde4b7c0b762c2e667584095362dd49ebfacece7/syntaxes/tasl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/underlay/vscode-tasl/main/LICENSE) | | 3.21 kB |
179
179
  | `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f18820ad14678bc033f0a35524820c90fe50f18b/syntaxes/tcl.tmLanguage) | | | 4.66 kB |
180
- | `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/fc0270594ec0c55531f2388f331b6feaca187298/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.59 kB |
180
+ | `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.58 kB |
181
181
  | `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 7.85 kB |
182
182
  | `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | 6.26 kB |
183
183
  | `tsv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/00d4c947f1bbe6a4a73599bd97fb31bdfbe262f3/syntaxes/tsv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | 633.00 B |
@@ -341,6 +341,138 @@
341
341
  }
342
342
  ]
343
343
  },
344
+ "docstring": {
345
+ "comment": "It is possible to use more than 3 double quote characters as beginning and closing sequences (must be the same). Cover 3-9 characters here.",
346
+ "patterns": [
347
+ {
348
+ "include": "#docstring3"
349
+ },
350
+ {
351
+ "include": "#docstring4"
352
+ },
353
+ {
354
+ "include": "#docstring5"
355
+ },
356
+ {
357
+ "include": "#docstring6"
358
+ },
359
+ {
360
+ "include": "#docstring7"
361
+ },
362
+ {
363
+ "include": "#docstring8"
364
+ },
365
+ {
366
+ "include": "#docstring9"
367
+ }
368
+ ]
369
+ },
370
+ "docstring3": {
371
+ "begin": "(?<!\")([\"]{3}\\s*)$",
372
+ "beginCaptures": {
373
+ "1": {
374
+ "name": "punctuation.definition.docstring.begin.erlang"
375
+ }
376
+ },
377
+ "comment": "Only whitespace characters are allowed after the beggining and before the closing sequences and those cannot be in the same line",
378
+ "end": "^(\\s*[\"]{3})(?!\")",
379
+ "endCaptures": {
380
+ "1": {
381
+ "name": "punctuation.definition.docstring.end.erlang"
382
+ }
383
+ },
384
+ "name": "string.string.docstring.multi.erlang"
385
+ },
386
+ "docstring4": {
387
+ "begin": "(?<!\")([\"]{4}\\s*)$",
388
+ "beginCaptures": {
389
+ "1": {
390
+ "name": "punctuation.definition.docstring.begin.erlang"
391
+ }
392
+ },
393
+ "end": "^(\\s*[\"]{4})(?!\")",
394
+ "endCaptures": {
395
+ "1": {
396
+ "name": "punctuation.definition.docstring.end.erlang"
397
+ }
398
+ },
399
+ "name": "string.string.docstring.multi.erlang"
400
+ },
401
+ "docstring5": {
402
+ "begin": "(?<!\")([\"]{5}\\s*)$",
403
+ "beginCaptures": {
404
+ "1": {
405
+ "name": "punctuation.definition.docstring.begin.erlang"
406
+ }
407
+ },
408
+ "end": "^(\\s*[\"]{5})(?!\")",
409
+ "endCaptures": {
410
+ "1": {
411
+ "name": "punctuation.definition.docstring.end.erlang"
412
+ }
413
+ },
414
+ "name": "string.string.docstring.multi.erlang"
415
+ },
416
+ "docstring6": {
417
+ "begin": "(?<!\")([\"]{6}\\s*)$",
418
+ "beginCaptures": {
419
+ "1": {
420
+ "name": "punctuation.definition.docstring.begin.erlang"
421
+ }
422
+ },
423
+ "end": "^(\\s*[\"]{6})(?!\")",
424
+ "endCaptures": {
425
+ "1": {
426
+ "name": "punctuation.definition.docstring.end.erlang"
427
+ }
428
+ },
429
+ "name": "string.string.docstring.multi.erlang"
430
+ },
431
+ "docstring7": {
432
+ "begin": "(?<!\")([\"]{7}\\s*)$",
433
+ "beginCaptures": {
434
+ "1": {
435
+ "name": "punctuation.definition.docstring.begin.erlang"
436
+ }
437
+ },
438
+ "end": "^(\\s*[\"]{7})(?!\")",
439
+ "endCaptures": {
440
+ "1": {
441
+ "name": "punctuation.definition.docstring.end.erlang"
442
+ }
443
+ },
444
+ "name": "string.string.docstring.multi.erlang"
445
+ },
446
+ "docstring8": {
447
+ "begin": "(?<!\")([\"]{8}\\s*)$",
448
+ "beginCaptures": {
449
+ "1": {
450
+ "name": "punctuation.definition.docstring.begin.erlang"
451
+ }
452
+ },
453
+ "end": "^(\\s*[\"]{8})(?!\")",
454
+ "endCaptures": {
455
+ "1": {
456
+ "name": "punctuation.definition.docstring.end.erlang"
457
+ }
458
+ },
459
+ "name": "string.string.docstring.multi.erlang"
460
+ },
461
+ "docstring9": {
462
+ "begin": "(?<!\")([\"]{9}\\s*)$",
463
+ "beginCaptures": {
464
+ "1": {
465
+ "name": "punctuation.definition.docstring.begin.erlang"
466
+ }
467
+ },
468
+ "end": "^(\\s*[\"]{9})(?!\")",
469
+ "endCaptures": {
470
+ "1": {
471
+ "name": "punctuation.definition.docstring.end.erlang"
472
+ }
473
+ },
474
+ "name": "string.string.docstring.multi.erlang"
475
+ },
344
476
  "everything-else": {
345
477
  "patterns": [
346
478
  {
@@ -388,6 +520,9 @@
388
520
  {
389
521
  "include": "#atom"
390
522
  },
523
+ {
524
+ "include": "#docstring"
525
+ },
391
526
  {
392
527
  "include": "#string"
393
528
  },
@@ -1657,6 +1792,7 @@
1657
1792
  "name": "punctuation.definition.escape.erlang"
1658
1793
  }
1659
1794
  },
1795
+ "comment": "escape sequence",
1660
1796
  "match": "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_a-z]|[0-7]{1,3}|x[\\da-fA-F]{2})",
1661
1797
  "name": "constant.character.escape.erlang"
1662
1798
  },
@@ -1676,7 +1812,7 @@
1676
1812
  "name": "punctuation.separator.placeholder-parts.erlang"
1677
1813
  }
1678
1814
  },
1679
- "comment": "io:fwrite format contorl sequence",
1815
+ "comment": "io:fwrite format control sequence",
1680
1816
  "match": "(~)((\\-)?\\d++|(\\*))?((\\.)(\\d++|(\\*))?((\\.)((\\*)|.))?)?[tlkK]*[~cfegswpWPBX#bx\\+ni]",
1681
1817
  "name": "constant.character.format.placeholder.other.erlang"
1682
1818
  },
@@ -1686,7 +1822,7 @@
1686
1822
  "name": "punctuation.definition.placeholder.erlang"
1687
1823
  }
1688
1824
  },
1689
- "comment": "io:fread format contorl sequence",
1825
+ "comment": "io:fread format control sequence",
1690
1826
  "match": "(~)(\\*)?(\\d++)?(t)?[~du\\-#fsacl]",
1691
1827
  "name": "constant.character.format.placeholder.other.erlang"
1692
1828
  },
package/grammars/hcl.json CHANGED
@@ -360,22 +360,23 @@
360
360
  ]
361
361
  },
362
362
  "inline_for_expression": {
363
- "begin": "(for)\\b",
364
- "beginCaptures": {
363
+ "captures": {
365
364
  "1": {
366
365
  "name": "keyword.control.hcl"
367
- }
368
- },
369
- "end": "\\n",
370
- "patterns": [
371
- {
372
- "match": "\\=\\>",
373
- "name": "storage.type.function.hcl"
374
366
  },
375
- {
376
- "include": "#for_expression_body"
367
+ "2": {
368
+ "patterns": [
369
+ {
370
+ "match": "\\=\\>",
371
+ "name": "storage.type.function.hcl"
372
+ },
373
+ {
374
+ "include": "#for_expression_body"
375
+ }
376
+ ]
377
377
  }
378
- ]
378
+ },
379
+ "match": "(for)\\b(.*)\\n"
379
380
  },
380
381
  "inline_if_expression": {
381
382
  "begin": "(if)\\b",
@@ -361,22 +361,23 @@
361
361
  ]
362
362
  },
363
363
  "inline_for_expression": {
364
- "begin": "(for)\\b",
365
- "beginCaptures": {
364
+ "captures": {
366
365
  "1": {
367
366
  "name": "keyword.control.hcl"
368
- }
369
- },
370
- "end": "\\n",
371
- "patterns": [
372
- {
373
- "match": "\\=\\>",
374
- "name": "storage.type.function.hcl"
375
367
  },
376
- {
377
- "include": "#for_expression_body"
368
+ "2": {
369
+ "patterns": [
370
+ {
371
+ "match": "\\=\\>",
372
+ "name": "storage.type.function.hcl"
373
+ },
374
+ {
375
+ "include": "#for_expression_body"
376
+ }
377
+ ]
378
378
  }
379
- ]
379
+ },
380
+ "match": "(for)\\b(.*)\\n"
380
381
  },
381
382
  "inline_if_expression": {
382
383
  "begin": "(if)\\b",
package/index.js CHANGED
@@ -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-01T11:26:14Z',
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: '1087da5388620fe6457316e01cb1a02ee40769a5',
653
- source: 'https://github.com/erlang-ls/grammar/blob/1087da5388620fe6457316e01cb1a02ee40769a5/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,
@@ -1013,15 +1013,15 @@ export const grammars = [
1013
1013
  source: 'https://github.com/octref/language-haskell/blob/ae87982aac2bf5cf6334c067e49c5ec8fc08b871/syntaxes/haskell.json',
1014
1014
  },
1015
1015
  {
1016
- byteSize: 11491,
1016
+ byteSize: 11487,
1017
1017
  displayName: 'HashiCorp HCL',
1018
- lastUpdate: '2024-03-25T17:26:39Z',
1018
+ lastUpdate: '2024-03-28T16:14:11Z',
1019
1019
  license: 'MPL-2.0',
1020
1020
  licenseUrl: 'https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE',
1021
1021
  name: 'hcl',
1022
1022
  scopeName: 'source.hcl',
1023
- sha: 'ab4a9e8aa653ad018248b3afdb1e9b07152cc3a6',
1024
- source: 'https://github.com/hashicorp/syntax/blob/ab4a9e8aa653ad018248b3afdb1e9b07152cc3a6/syntaxes/hcl.tmGrammar.json',
1023
+ sha: 'c693badea4d460d1c05b8d2ab0c88bad143da3f1',
1024
+ source: 'https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/hcl.tmGrammar.json',
1025
1025
  },
1026
1026
  {
1027
1027
  byteSize: 12496,
@@ -2496,15 +2496,15 @@ export const grammars = [
2496
2496
  'tf',
2497
2497
  'tfvars',
2498
2498
  ],
2499
- byteSize: 12891,
2499
+ byteSize: 12887,
2500
2500
  displayName: 'Terraform',
2501
- lastUpdate: '2024-03-25T11:34:34Z',
2501
+ lastUpdate: '2024-03-28T16:14:11Z',
2502
2502
  license: 'MPL-2.0',
2503
2503
  licenseUrl: 'https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE',
2504
2504
  name: 'terraform',
2505
2505
  scopeName: 'source.hcl.terraform',
2506
- sha: 'fc0270594ec0c55531f2388f331b6feaca187298',
2507
- source: 'https://github.com/hashicorp/syntax/blob/fc0270594ec0c55531f2388f331b6feaca187298/syntaxes/terraform.tmGrammar.json',
2506
+ sha: 'c693badea4d460d1c05b8d2ab0c88bad143da3f1',
2507
+ source: 'https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json',
2508
2508
  },
2509
2509
  {
2510
2510
  byteSize: 8039,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.6.2",
4
+ "version": "1.6.4",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",