tm-grammars 1.6.5 → 1.6.7

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
@@ -45,7 +45,7 @@ import { grammars } from 'tm-grammars'
45
45
  | `clarity` | | [hirosystems/clarity.tmbundle](https://github.com/hirosystems/clarity.tmbundle/blob/14499973360935676fcf40fa37723ec216aa3c9f/Syntaxes/clarity.JSON-tmLanguage) | [MIT](https://raw.githubusercontent.com/hirosystems/clarity.tmbundle/main/LICENSE) | | 13.77 kB |
46
46
  | `clojure` | `clj` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/a1a4c0a63b1ad59e84f54b874744fe35dea9abe1/extensions/clojure/syntaxes/clojure.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 6.36 kB |
47
47
  | `cmake` | | [twxs/vs.language.cmake](https://github.com/twxs/vs.language.cmake/blob/19b1b8fe2d68d72cf294d0c3c22f0a3fc54f8f6f/syntaxes/CMake.tmLanguage) | [MIT](https://raw.githubusercontent.com/twxs/vs.language.cmake/master/LICENSE) | | 10.00 kB |
48
- | `cobol` | | [spgennard/vscode_cobol](https://github.com/spgennard/vscode_cobol/blob/a01a70bf6107b180422100af1e56151991205b6b/syntaxes/COBOL.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/spgennard/vscode_cobol/main/LICENSE) | `sql` `html` `java` | 38.19 kB |
48
+ | `cobol` | | [spgennard/vscode_cobol](https://github.com/spgennard/vscode_cobol/blob/e23b4cda2772a4fbc985407167412edcd47f528a/syntaxes/COBOL.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/spgennard/vscode_cobol/main/LICENSE) | `sql` `html` `java` | 38.43 kB |
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 |
@@ -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/2166c044337dcae6c143c140b47abb8b8fd29a4c/Erlang.plist) | [Apache-2.0](https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE) | | 30.42 kB |
67
+ | `erlang` | `erl` | [erlang-ls/grammar](https://github.com/erlang-ls/grammar/blob/cf532fa16db0f106c50db4bcad38f862210f6d14/Erlang.plist) | [Apache-2.0](https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE) | | 34.57 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 |
@@ -149,7 +149,7 @@ import { grammars } from 'tm-grammars'
149
149
  | `python` | `py` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/cf4c9e469d521fa5f33353737e8157eb0789ad02/extensions/python/syntaxes/MagicPython.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 73.77 kB |
150
150
  | `r` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/fa22e9ac36d5d37ef096679927179091ba7f6966/extensions/r/syntaxes/r.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 33.83 kB |
151
151
  | `raku` | `perl6` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/perl/syntaxes/perl6.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 10.05 kB |
152
- | `razor` | | [dotnet/razor](https://github.com/dotnet/razor/blob/f01e110af179981942987384d2b5d4e489eab014/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/dotnet/razor/main/LICENSE.txt) | `html` `csharp` | 24.25 kB |
152
+ | `razor` | | [dotnet/razor](https://github.com/dotnet/razor/blob/39159764277f3c80a786d8872eba7730da3d7ef0/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/dotnet/razor/main/LICENSE.txt) | `html` `csharp` | 24.50 kB |
153
153
  | `reg` | | [mihai-vlc/reg-vscode](https://github.com/mihai-vlc/reg-vscode/blob/896096fc6756329d82c71a913663a1c0ac678f74/syntaxes/reg.tmLanguage) | [MIT](https://raw.githubusercontent.com/mihai-vlc/reg-vscode/master/LICENSE) | | 2.20 kB |
154
154
  | `rel` | | [relationalai-oss/rel_vscode](https://github.com/relationalai-oss/rel_vscode/blob/63dda4dee48c67b037357f47b562185484555ea9/syntaxes/rel.tmLanguage.json) | | | 3.18 kB |
155
155
  | `riscv` | | [zhuanhao-wu/vscode-riscv-support](https://github.com/zhuanhao-wu/vscode-riscv-support/blob/2736b60e45ff2ef738d784055e136cf38d6290cd/syntaxes/riscv.tmLanguage) | [MIT](https://raw.githubusercontent.com/zhuanhao-wu/vscode-riscv-support/master/LICENSE) | | 7.04 kB |
@@ -413,6 +413,14 @@
413
413
  "match": "(^\\s*\\*.*)$",
414
414
  "name": "comment.line.sql"
415
415
  },
416
+ {
417
+ "match": "(--.*$)",
418
+ "name": "comment.line.sql"
419
+ },
420
+ {
421
+ "match": "(\\*>.*$)",
422
+ "name": "comment.line.modern"
423
+ },
416
424
  {
417
425
  "match": "(\\:([0-9a-zA-Z\\-_])*)",
418
426
  "name": "variable.cobol"
@@ -493,6 +501,10 @@
493
501
  "end": "(?i:end\\-exec)",
494
502
  "name": "keyword.verb.cobol",
495
503
  "patterns": [
504
+ {
505
+ "match": "(\\*>.*$)",
506
+ "name": "comment.line.modern"
507
+ },
496
508
  {
497
509
  "match": "(\\:([a-zA-Z\\-])*)",
498
510
  "name": "variable.cobol"
@@ -508,6 +520,14 @@
508
520
  "end": "(?i:end\\-exec)",
509
521
  "name": "keyword.verb.cobol",
510
522
  "patterns": [
523
+ {
524
+ "match": "(--.*$)",
525
+ "name": "comment.line.sql"
526
+ },
527
+ {
528
+ "match": "(\\*>.*$)",
529
+ "name": "comment.line.modern"
530
+ },
511
531
  {
512
532
  "match": "(\\:([a-zA-Z\\-])*)",
513
533
  "name": "variable.cobol"
@@ -342,136 +342,29 @@
342
342
  ]
343
343
  },
344
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*)$",
345
+ "begin": "(?<!\")(([\"]{3,})\\s*)(\\S.*)?$",
372
346
  "beginCaptures": {
373
347
  "1": {
374
- "name": "punctuation.definition.docstring.begin.erlang"
348
+ "name": "meta.string.quoted.triple.begin.erlang"
349
+ },
350
+ "2": {
351
+ "name": "punctuation.definition.string.begin.erlang"
352
+ },
353
+ "3": {
354
+ "name": "invalid.illegal.string.erlang"
375
355
  }
376
356
  },
377
357
  "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})(?!\")",
358
+ "end": "^(\\s*(\\2))(?!\")",
379
359
  "endCaptures": {
380
360
  "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"
361
+ "name": "meta.string.quoted.triple.end.erlang"
362
+ },
363
+ "2": {
364
+ "name": "punctuation.definition.string.end.erlang"
472
365
  }
473
366
  },
474
- "name": "string.string.docstring.multi.erlang"
367
+ "name": "string.quoted.triple.erlang"
475
368
  },
476
369
  "everything-else": {
477
370
  "patterns": [
@@ -520,6 +413,12 @@
520
413
  {
521
414
  "include": "#atom"
522
415
  },
416
+ {
417
+ "include": "#sigil-docstring"
418
+ },
419
+ {
420
+ "include": "#sigil-string"
421
+ },
523
422
  {
524
423
  "include": "#docstring"
525
424
  },
@@ -1148,6 +1047,57 @@
1148
1047
  }
1149
1048
  ]
1150
1049
  },
1050
+ "internal-string-body": {
1051
+ "patterns": [
1052
+ {
1053
+ "captures": {
1054
+ "1": {
1055
+ "name": "punctuation.definition.escape.erlang"
1056
+ },
1057
+ "3": {
1058
+ "name": "punctuation.definition.escape.erlang"
1059
+ }
1060
+ },
1061
+ "comment": "escape sequence",
1062
+ "match": "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_a-z]|[0-7]{1,3}|x[\\da-fA-F]{2})",
1063
+ "name": "constant.character.escape.erlang"
1064
+ },
1065
+ {
1066
+ "match": "\\\\\\^?.?",
1067
+ "name": "invalid.illegal.string.erlang"
1068
+ },
1069
+ {
1070
+ "captures": {
1071
+ "1": {
1072
+ "name": "punctuation.definition.placeholder.erlang"
1073
+ },
1074
+ "10": {
1075
+ "name": "punctuation.separator.placeholder-parts.erlang"
1076
+ },
1077
+ "6": {
1078
+ "name": "punctuation.separator.placeholder-parts.erlang"
1079
+ }
1080
+ },
1081
+ "comment": "io:fwrite format control sequence",
1082
+ "match": "(~)((\\-)?\\d++|(\\*))?((\\.)(\\d++|(\\*))?((\\.)((\\*)|.))?)?[tlkK]*[~cfegswpWPBX#bx\\+ni]",
1083
+ "name": "constant.character.format.placeholder.other.erlang"
1084
+ },
1085
+ {
1086
+ "captures": {
1087
+ "1": {
1088
+ "name": "punctuation.definition.placeholder.erlang"
1089
+ }
1090
+ },
1091
+ "comment": "io:fread format control sequence",
1092
+ "match": "(~)(\\*)?(\\d++)?(t)?[~du\\-#fsacl]",
1093
+ "name": "constant.character.format.placeholder.other.erlang"
1094
+ },
1095
+ {
1096
+ "match": "~[^\"]?",
1097
+ "name": "invalid.illegal.string.erlang"
1098
+ }
1099
+ ]
1100
+ },
1151
1101
  "internal-type-specifiers": {
1152
1102
  "begin": "(/)",
1153
1103
  "beginCaptures": {
@@ -1768,67 +1718,384 @@
1768
1718
  }
1769
1719
  ]
1770
1720
  },
1771
- "string": {
1772
- "begin": "(\")",
1721
+ "sigil-docstring": {
1722
+ "begin": "(~[bBsS]?)(([\"]{3,})\\s*)(\\S.*)?$",
1773
1723
  "beginCaptures": {
1774
1724
  "1": {
1725
+ "name": "storage.type.string.erlang"
1726
+ },
1727
+ "2": {
1728
+ "name": "meta.string.quoted.triple.begin.erlang"
1729
+ },
1730
+ "3": {
1775
1731
  "name": "punctuation.definition.string.begin.erlang"
1732
+ },
1733
+ "4": {
1734
+ "name": "invalid.illegal.string.erlang"
1776
1735
  }
1777
1736
  },
1778
- "end": "(\")",
1737
+ "comment": "Only whitespace characters are allowed after the beggining and before the closing sequences and those cannot be in the same line",
1738
+ "end": "^(\\s*(\\3))(?!\")",
1779
1739
  "endCaptures": {
1780
1740
  "1": {
1741
+ "name": "meta.string.quoted.triple.end.erlang"
1742
+ },
1743
+ "2": {
1781
1744
  "name": "punctuation.definition.string.end.erlang"
1782
1745
  }
1783
1746
  },
1784
- "name": "string.quoted.double.erlang",
1747
+ "name": "string.quoted.tripple.sigil.erlang"
1748
+ },
1749
+ "sigil-string": {
1785
1750
  "patterns": [
1786
1751
  {
1787
- "captures": {
1788
- "1": {
1789
- "name": "punctuation.definition.escape.erlang"
1790
- },
1791
- "3": {
1792
- "name": "punctuation.definition.escape.erlang"
1793
- }
1794
- },
1795
- "comment": "escape sequence",
1796
- "match": "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_a-z]|[0-7]{1,3}|x[\\da-fA-F]{2})",
1797
- "name": "constant.character.escape.erlang"
1752
+ "include": "#sigil-string-parenthesis"
1798
1753
  },
1799
1754
  {
1800
- "match": "\\\\\\^?.?",
1801
- "name": "invalid.illegal.string.erlang"
1755
+ "include": "#sigil-string-parenthesis-verbatim"
1802
1756
  },
1803
1757
  {
1804
- "captures": {
1805
- "1": {
1806
- "name": "punctuation.definition.placeholder.erlang"
1807
- },
1808
- "10": {
1809
- "name": "punctuation.separator.placeholder-parts.erlang"
1810
- },
1811
- "6": {
1812
- "name": "punctuation.separator.placeholder-parts.erlang"
1813
- }
1814
- },
1815
- "comment": "io:fwrite format control sequence",
1816
- "match": "(~)((\\-)?\\d++|(\\*))?((\\.)(\\d++|(\\*))?((\\.)((\\*)|.))?)?[tlkK]*[~cfegswpWPBX#bx\\+ni]",
1817
- "name": "constant.character.format.placeholder.other.erlang"
1758
+ "include": "#sigil-string-curly-brackets"
1818
1759
  },
1819
1760
  {
1820
- "captures": {
1821
- "1": {
1822
- "name": "punctuation.definition.placeholder.erlang"
1823
- }
1824
- },
1825
- "comment": "io:fread format control sequence",
1826
- "match": "(~)(\\*)?(\\d++)?(t)?[~du\\-#fsacl]",
1827
- "name": "constant.character.format.placeholder.other.erlang"
1761
+ "include": "#sigil-string-curly-brackets-verbatim"
1828
1762
  },
1829
1763
  {
1830
- "match": "~[^\"]?",
1831
- "name": "invalid.illegal.string.erlang"
1764
+ "include": "#sigil-string-square-brackets"
1765
+ },
1766
+ {
1767
+ "include": "#sigil-string-square-brackets-verbatim"
1768
+ },
1769
+ {
1770
+ "include": "#sigil-string-less-greater"
1771
+ },
1772
+ {
1773
+ "include": "#sigil-string-less-greater-verbatim"
1774
+ },
1775
+ {
1776
+ "include": "#sigil-string-single-character"
1777
+ },
1778
+ {
1779
+ "include": "#sigil-string-single-character-verbatim"
1780
+ },
1781
+ {
1782
+ "include": "#sigil-string-single-quote"
1783
+ },
1784
+ {
1785
+ "include": "#sigil-string-single-quote-verbatim"
1786
+ },
1787
+ {
1788
+ "include": "#sigil-string-double-quote"
1789
+ },
1790
+ {
1791
+ "include": "#sigil-string-double-quote-verbatim"
1792
+ }
1793
+ ]
1794
+ },
1795
+ "sigil-string-curly-brackets": {
1796
+ "begin": "(~[bs]?)([{])",
1797
+ "beginCaptures": {
1798
+ "1": {
1799
+ "name": "storage.type.string.erlang"
1800
+ },
1801
+ "2": {
1802
+ "name": "punctuation.definition.string.begin.erlang"
1803
+ }
1804
+ },
1805
+ "end": "([}])",
1806
+ "endCaptures": {
1807
+ "1": {
1808
+ "name": "punctuation.definition.string.end.erlang"
1809
+ }
1810
+ },
1811
+ "name": "string.quoted.curly-brackets.sigil.erlang",
1812
+ "patterns": [
1813
+ {
1814
+ "include": "#internal-string-body"
1815
+ }
1816
+ ]
1817
+ },
1818
+ "sigil-string-curly-brackets-verbatim": {
1819
+ "begin": "(~[BS])([{])",
1820
+ "beginCaptures": {
1821
+ "1": {
1822
+ "name": "storage.type.string.erlang"
1823
+ },
1824
+ "2": {
1825
+ "name": "punctuation.definition.string.begin.erlang"
1826
+ }
1827
+ },
1828
+ "end": "([}])",
1829
+ "endCaptures": {
1830
+ "1": {
1831
+ "name": "punctuation.definition.string.end.erlang"
1832
+ }
1833
+ },
1834
+ "name": "string.quoted.curly-brackets.sigil.erlang"
1835
+ },
1836
+ "sigil-string-double-quote": {
1837
+ "begin": "(~[bs]?)(\")",
1838
+ "beginCaptures": {
1839
+ "1": {
1840
+ "name": "storage.type.string.erlang"
1841
+ },
1842
+ "2": {
1843
+ "name": "punctuation.definition.string.begin.erlang"
1844
+ }
1845
+ },
1846
+ "end": "(\\2)",
1847
+ "endCaptures": {
1848
+ "1": {
1849
+ "name": "punctuation.definition.string.end.erlang"
1850
+ }
1851
+ },
1852
+ "name": "string.quoted.double.sigil.erlang",
1853
+ "patterns": [
1854
+ {
1855
+ "include": "#internal-string-body"
1856
+ }
1857
+ ]
1858
+ },
1859
+ "sigil-string-double-quote-verbatim": {
1860
+ "begin": "(~[BS])(\")",
1861
+ "beginCaptures": {
1862
+ "1": {
1863
+ "name": "storage.type.string.erlang"
1864
+ },
1865
+ "2": {
1866
+ "name": "punctuation.definition.string.begin.erlang"
1867
+ }
1868
+ },
1869
+ "end": "(\\2)",
1870
+ "endCaptures": {
1871
+ "1": {
1872
+ "name": "punctuation.definition.string.end.erlang"
1873
+ }
1874
+ },
1875
+ "name": "string.quoted.double.sigil.erlang"
1876
+ },
1877
+ "sigil-string-less-greater": {
1878
+ "begin": "(~[bs]?)(<)",
1879
+ "beginCaptures": {
1880
+ "1": {
1881
+ "name": "storage.type.string.erlang"
1882
+ },
1883
+ "2": {
1884
+ "name": "punctuation.definition.string.begin.erlang"
1885
+ }
1886
+ },
1887
+ "end": "(>)",
1888
+ "endCaptures": {
1889
+ "1": {
1890
+ "name": "punctuation.definition.string.end.erlang"
1891
+ }
1892
+ },
1893
+ "name": "string.quoted.less-greater.sigil.erlang",
1894
+ "patterns": [
1895
+ {
1896
+ "include": "#internal-string-body"
1897
+ }
1898
+ ]
1899
+ },
1900
+ "sigil-string-less-greater-verbatim": {
1901
+ "begin": "(~[BS])(<)",
1902
+ "beginCaptures": {
1903
+ "1": {
1904
+ "name": "storage.type.string.erlang"
1905
+ },
1906
+ "2": {
1907
+ "name": "punctuation.definition.string.begin.erlang"
1908
+ }
1909
+ },
1910
+ "end": "(>)",
1911
+ "endCaptures": {
1912
+ "1": {
1913
+ "name": "punctuation.definition.string.end.erlang"
1914
+ }
1915
+ },
1916
+ "name": "string.quoted.less-greater.sigil.erlang"
1917
+ },
1918
+ "sigil-string-parenthesis": {
1919
+ "begin": "(~[bs]?)([(])",
1920
+ "beginCaptures": {
1921
+ "1": {
1922
+ "name": "storage.type.string.erlang"
1923
+ },
1924
+ "2": {
1925
+ "name": "punctuation.definition.string.begin.erlang"
1926
+ }
1927
+ },
1928
+ "end": "([)])",
1929
+ "endCaptures": {
1930
+ "1": {
1931
+ "name": "punctuation.definition.string.end.erlang"
1932
+ }
1933
+ },
1934
+ "name": "string.quoted.parenthesis.sigil.erlang",
1935
+ "patterns": [
1936
+ {
1937
+ "include": "#internal-string-body"
1938
+ }
1939
+ ]
1940
+ },
1941
+ "sigil-string-parenthesis-verbatim": {
1942
+ "begin": "(~[BS])([(])",
1943
+ "beginCaptures": {
1944
+ "1": {
1945
+ "name": "storage.type.string.erlang"
1946
+ },
1947
+ "2": {
1948
+ "name": "punctuation.definition.string.begin.erlang"
1949
+ }
1950
+ },
1951
+ "end": "([)])",
1952
+ "endCaptures": {
1953
+ "1": {
1954
+ "name": "punctuation.definition.string.end.erlang"
1955
+ }
1956
+ },
1957
+ "name": "string.quoted.parenthesis.sigil.erlang"
1958
+ },
1959
+ "sigil-string-single-character": {
1960
+ "begin": "(~[bs]?)([/\\|`#])",
1961
+ "beginCaptures": {
1962
+ "1": {
1963
+ "name": "storage.type.string.erlang"
1964
+ },
1965
+ "2": {
1966
+ "name": "punctuation.definition.string.begin.erlang"
1967
+ }
1968
+ },
1969
+ "end": "(\\2)",
1970
+ "endCaptures": {
1971
+ "1": {
1972
+ "name": "punctuation.definition.string.end.erlang"
1973
+ }
1974
+ },
1975
+ "name": "string.quoted.other.sigil.erlang",
1976
+ "patterns": [
1977
+ {
1978
+ "include": "#internal-string-body"
1979
+ }
1980
+ ]
1981
+ },
1982
+ "sigil-string-single-character-verbatim": {
1983
+ "begin": "(~[BS])([/\\|`#])",
1984
+ "beginCaptures": {
1985
+ "1": {
1986
+ "name": "storage.type.string.erlang"
1987
+ },
1988
+ "2": {
1989
+ "name": "punctuation.definition.string.begin.erlang"
1990
+ }
1991
+ },
1992
+ "end": "(\\2)",
1993
+ "endCaptures": {
1994
+ "1": {
1995
+ "name": "punctuation.definition.string.end.erlang"
1996
+ }
1997
+ },
1998
+ "name": "string.quoted.other.sigil.erlang"
1999
+ },
2000
+ "sigil-string-single-quote": {
2001
+ "begin": "(~[bs]?)(')",
2002
+ "beginCaptures": {
2003
+ "1": {
2004
+ "name": "storage.type.string.erlang"
2005
+ },
2006
+ "2": {
2007
+ "name": "punctuation.definition.string.begin.erlang"
2008
+ }
2009
+ },
2010
+ "end": "(\\2)",
2011
+ "endCaptures": {
2012
+ "1": {
2013
+ "name": "punctuation.definition.string.end.erlang"
2014
+ }
2015
+ },
2016
+ "name": "string.quoted.single.sigil.erlang",
2017
+ "patterns": [
2018
+ {
2019
+ "include": "#internal-string-body"
2020
+ }
2021
+ ]
2022
+ },
2023
+ "sigil-string-single-quote-verbatim": {
2024
+ "begin": "(~[BS])(')",
2025
+ "beginCaptures": {
2026
+ "1": {
2027
+ "name": "storage.type.string.erlang"
2028
+ },
2029
+ "2": {
2030
+ "name": "punctuation.definition.string.begin.erlang"
2031
+ }
2032
+ },
2033
+ "end": "(\\2)",
2034
+ "endCaptures": {
2035
+ "1": {
2036
+ "name": "punctuation.definition.string.end.erlang"
2037
+ }
2038
+ },
2039
+ "name": "string.quoted.single.sigil.erlang"
2040
+ },
2041
+ "sigil-string-square-brackets": {
2042
+ "begin": "(~[bs]?)([\\[])",
2043
+ "beginCaptures": {
2044
+ "1": {
2045
+ "name": "storage.type.string.erlang"
2046
+ },
2047
+ "2": {
2048
+ "name": "punctuation.definition.string.begin.erlang"
2049
+ }
2050
+ },
2051
+ "end": "([\\]])",
2052
+ "endCaptures": {
2053
+ "1": {
2054
+ "name": "punctuation.definition.string.end.erlang"
2055
+ }
2056
+ },
2057
+ "name": "string.quoted.square-brackets.sigil.erlang",
2058
+ "patterns": [
2059
+ {
2060
+ "include": "#internal-string-body"
2061
+ }
2062
+ ]
2063
+ },
2064
+ "sigil-string-square-brackets-verbatim": {
2065
+ "begin": "(~[BS])([\\[])",
2066
+ "beginCaptures": {
2067
+ "1": {
2068
+ "name": "storage.type.string.erlang"
2069
+ },
2070
+ "2": {
2071
+ "name": "punctuation.definition.string.begin.erlang"
2072
+ }
2073
+ },
2074
+ "end": "([\\]])",
2075
+ "endCaptures": {
2076
+ "1": {
2077
+ "name": "punctuation.definition.string.end.erlang"
2078
+ }
2079
+ },
2080
+ "name": "string.quoted.square-brackets.sigil.erlang"
2081
+ },
2082
+ "string": {
2083
+ "begin": "(\")",
2084
+ "beginCaptures": {
2085
+ "1": {
2086
+ "name": "punctuation.definition.string.begin.erlang"
2087
+ }
2088
+ },
2089
+ "end": "(\")",
2090
+ "endCaptures": {
2091
+ "1": {
2092
+ "name": "punctuation.definition.string.end.erlang"
2093
+ }
2094
+ },
2095
+ "name": "string.quoted.double.erlang",
2096
+ "patterns": [
2097
+ {
2098
+ "include": "#internal-string-body"
1832
2099
  }
1833
2100
  ]
1834
2101
  },
@@ -4,6 +4,28 @@
4
4
  "razor",
5
5
  "cshtml"
6
6
  ],
7
+ "injections": {
8
+ "string.quoted.double.html": {
9
+ "patterns": [
10
+ {
11
+ "include": "#explicit-razor-expression"
12
+ },
13
+ {
14
+ "include": "#implicit-expression"
15
+ }
16
+ ]
17
+ },
18
+ "string.quoted.single.html": {
19
+ "patterns": [
20
+ {
21
+ "include": "#explicit-razor-expression"
22
+ },
23
+ {
24
+ "include": "#implicit-expression"
25
+ }
26
+ ]
27
+ }
28
+ },
7
29
  "name": "razor",
8
30
  "patterns": [
9
31
  {
package/index.js CHANGED
@@ -360,20 +360,20 @@ export const grammars = [
360
360
  source: 'https://github.com/twxs/vs.language.cmake/blob/19b1b8fe2d68d72cf294d0c3c22f0a3fc54f8f6f/syntaxes/CMake.tmLanguage',
361
361
  },
362
362
  {
363
- byteSize: 39108,
363
+ byteSize: 39353,
364
364
  displayName: 'COBOL',
365
365
  embedded: [
366
366
  'sql',
367
367
  'html',
368
368
  'java',
369
369
  ],
370
- lastUpdate: '2024-01-16T20:50:10Z',
370
+ lastUpdate: '2024-04-11T21:18:25Z',
371
371
  license: 'MIT',
372
372
  licenseUrl: 'https://raw.githubusercontent.com/spgennard/vscode_cobol/main/LICENSE',
373
373
  name: 'cobol',
374
374
  scopeName: 'source.cobol',
375
- sha: 'a01a70bf6107b180422100af1e56151991205b6b',
376
- source: 'https://github.com/spgennard/vscode_cobol/blob/a01a70bf6107b180422100af1e56151991205b6b/syntaxes/COBOL.tmLanguage.json',
375
+ sha: 'e23b4cda2772a4fbc985407167412edcd47f528a',
376
+ source: 'https://github.com/spgennard/vscode_cobol/blob/e23b4cda2772a4fbc985407167412edcd47f528a/syntaxes/COBOL.tmLanguage.json',
377
377
  },
378
378
  {
379
379
  aliases: [
@@ -642,15 +642,15 @@ export const grammars = [
642
642
  aliases: [
643
643
  'erl',
644
644
  ],
645
- byteSize: 31146,
645
+ byteSize: 35395,
646
646
  displayName: 'Erlang',
647
- lastUpdate: '2024-04-03T07:32:37Z',
647
+ lastUpdate: '2024-04-03T07:43:17Z',
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: '2166c044337dcae6c143c140b47abb8b8fd29a4c',
653
- source: 'https://github.com/erlang-ls/grammar/blob/2166c044337dcae6c143c140b47abb8b8fd29a4c/Erlang.plist',
652
+ sha: 'cf532fa16db0f106c50db4bcad38f862210f6d14',
653
+ source: 'https://github.com/erlang-ls/grammar/blob/cf532fa16db0f106c50db4bcad38f862210f6d14/Erlang.plist',
654
654
  },
655
655
  {
656
656
  byteSize: 5184,
@@ -2075,19 +2075,19 @@ export const grammars = [
2075
2075
  source: 'https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/perl/syntaxes/perl6.tmLanguage.json',
2076
2076
  },
2077
2077
  {
2078
- byteSize: 24836,
2078
+ byteSize: 25089,
2079
2079
  displayName: 'ASP.NET Razor',
2080
2080
  embedded: [
2081
2081
  'html',
2082
2082
  'csharp',
2083
2083
  ],
2084
- lastUpdate: '2024-02-16T00:01:48Z',
2084
+ lastUpdate: '2024-04-18T22:08:48Z',
2085
2085
  license: 'MIT',
2086
2086
  licenseUrl: 'https://raw.githubusercontent.com/dotnet/razor/main/LICENSE.txt',
2087
2087
  name: 'razor',
2088
2088
  scopeName: 'text.aspnetcorerazor',
2089
- sha: 'f01e110af179981942987384d2b5d4e489eab014',
2090
- source: 'https://github.com/dotnet/razor/blob/f01e110af179981942987384d2b5d4e489eab014/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json',
2089
+ sha: '39159764277f3c80a786d8872eba7730da3d7ef0',
2090
+ source: 'https://github.com/dotnet/razor/blob/39159764277f3c80a786d8872eba7730da3d7ef0/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json',
2091
2091
  },
2092
2092
  {
2093
2093
  byteSize: 2255,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.6.5",
4
+ "version": "1.6.7",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",