tm-grammars 1.17.3 → 1.17.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.
Files changed (73) hide show
  1. package/README.md +67 -67
  2. package/grammars/actionscript-3.json +12 -12
  3. package/grammars/angular-expression.json +6 -6
  4. package/grammars/angular-ts.json +42 -42
  5. package/grammars/apex.json +25 -25
  6. package/grammars/apl.json +8 -8
  7. package/grammars/ara.json +6 -6
  8. package/grammars/astro.json +1 -1
  9. package/grammars/ballerina.json +4 -4
  10. package/grammars/bicep.json +1 -1
  11. package/grammars/blade.json +16 -16
  12. package/grammars/c.json +11 -11
  13. package/grammars/clarity.json +25 -25
  14. package/grammars/codeql.json +182 -182
  15. package/grammars/coffee.json +9 -9
  16. package/grammars/common-lisp.json +2 -2
  17. package/grammars/cpp.json +3 -3
  18. package/grammars/crystal.json +4 -4
  19. package/grammars/csharp.json +50 -50
  20. package/grammars/css.json +15 -15
  21. package/grammars/dax.json +6 -6
  22. package/grammars/dream-maker.json +6 -6
  23. package/grammars/emacs-lisp.json +74 -74
  24. package/grammars/gdscript.json +12 -12
  25. package/grammars/glimmer-js.json +1 -1
  26. package/grammars/glimmer-ts.json +1 -1
  27. package/grammars/groovy.json +2 -2
  28. package/grammars/hack.json +8 -8
  29. package/grammars/haskell.json +64 -62
  30. package/grammars/haxe.json +1 -1
  31. package/grammars/html.json +1 -1
  32. package/grammars/imba.json +16 -16
  33. package/grammars/java.json +5 -5
  34. package/grammars/javascript.json +44 -44
  35. package/grammars/json.json +2 -2
  36. package/grammars/jsonc.json +2 -2
  37. package/grammars/jsonl.json +2 -2
  38. package/grammars/jsx.json +44 -44
  39. package/grammars/less.json +8 -8
  40. package/grammars/markdown.json +5 -5
  41. package/grammars/marko.json +1 -1
  42. package/grammars/matlab.json +7 -7
  43. package/grammars/mdc.json +6 -6
  44. package/grammars/mojo.json +85 -85
  45. package/grammars/narrat.json +2 -2
  46. package/grammars/objective-c.json +7 -7
  47. package/grammars/objective-cpp.json +13 -13
  48. package/grammars/php.json +10 -10
  49. package/grammars/purescript.json +1 -1
  50. package/grammars/python.json +85 -85
  51. package/grammars/racket.json +18 -15
  52. package/grammars/razor.json +3 -3
  53. package/grammars/regexp.json +7 -7
  54. package/grammars/riscv.json +1 -1
  55. package/grammars/ruby.json +4 -4
  56. package/grammars/scala.json +2 -2
  57. package/grammars/scheme.json +10 -10
  58. package/grammars/scss.json +4 -4
  59. package/grammars/shellsession.json +1 -1
  60. package/grammars/stylus.json +3 -3
  61. package/grammars/swift.json +32 -32
  62. package/grammars/system-verilog.json +1 -1
  63. package/grammars/toml.json +3 -3
  64. package/grammars/tsx.json +44 -44
  65. package/grammars/twig.json +4 -4
  66. package/grammars/typescript.json +42 -42
  67. package/grammars/typespec.json +3 -3
  68. package/grammars/vhdl.json +37 -37
  69. package/grammars/vue.json +1 -1
  70. package/grammars/vyper.json +105 -105
  71. package/grammars/yaml.json +17 -17
  72. package/index.js +73 -73
  73. package/package.json +1 -1
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "repository": {
16
16
  "annotated_parameter": {
17
- "begin": "(?x)\n\\s* ([a-zA-Z_]\\w*) \\s* (:)\\s* ([a-zA-Z_]\\w*)?\n",
17
+ "begin": "\\s*([a-zA-Z_]\\w*)\\s*(:)\\s*([a-zA-Z_]\\w*)?",
18
18
  "beginCaptures": {
19
19
  "1": {
20
20
  "name": "variable.parameter.function.language.gdscript"
@@ -498,7 +498,7 @@
498
498
  ]
499
499
  },
500
500
  "function_declaration": {
501
- "begin": "(?x) \\s*\n(func) \\s+\n([a-zA-Z_]\\w*) \\s*\n(?=\\()",
501
+ "begin": "\\s*(func)\\s+([a-zA-Z_]\\w*)\\s*(?=\\()",
502
502
  "beginCaptures": {
503
503
  "1": {
504
504
  "name": "keyword.language.gdscript storage.type.function.gdscript"
@@ -560,7 +560,7 @@
560
560
  "match": "\\b(get):"
561
561
  },
562
562
  {
563
- "begin": "(?x) \\s+\n(set) \\s*\n(?=\\()",
563
+ "begin": "\\s+(set)\\s*(?=\\()",
564
564
  "beginCaptures": {
565
565
  "1": {
566
566
  "name": "entity.name.function.gdscript"
@@ -681,7 +681,7 @@
681
681
  "name": "punctuation.separator.continuation.line.gdscript"
682
682
  }
683
683
  },
684
- "end": "(?x)\n(?=^\\s*$)\n|\n(?! (\\s* [rR]? (\\'\\'\\'|\\\"\\\"\\\"|\\'|\\\"))\n|\n(\\G $) (?# '\\G' is necessary for ST)\n)\n",
684
+ "end": "(?=^\\s*$)|(?!(\\s*[rR]?(\\'\\'\\'|\\\"\\\"\\\"|\\'|\\\"))|(\\G$)(?#'\\G'isnecessaryforST))",
685
685
  "patterns": [
686
686
  {
687
687
  "include": "#base_expression"
@@ -849,7 +849,7 @@
849
849
  "name": "punctuation.separator.parameters.gdscript"
850
850
  }
851
851
  },
852
- "match": "(?x)\n([a-zA-Z_]\\w*)\n\\s* (?: (,) | (?=[)#\\n=]))\n"
852
+ "match": "([a-zA-Z_]\\w*)\\s*(?:(,)|(?=[)#\\n=]))"
853
853
  },
854
854
  {
855
855
  "include": "#comment"
@@ -890,7 +890,7 @@
890
890
  "name": "variable.language.gdscript"
891
891
  },
892
892
  "signal_declaration": {
893
- "begin": "(?x) \\s*\n(signal) \\s+\n([a-zA-Z_]\\w*) \\s*\n(?=\\()",
893
+ "begin": "\\s*(signal)\\s+([a-zA-Z_]\\w*)\\s*(?=\\()",
894
894
  "beginCaptures": {
895
895
  "1": {
896
896
  "name": "keyword.language.gdscript storage.type.function.gdscript"
@@ -919,7 +919,7 @@
919
919
  "name": "entity.name.function.gdscript"
920
920
  }
921
921
  },
922
- "match": "(?x) \\s*\n(signal) \\s+\n([a-zA-Z_]\\w*)(?=[\\n\\s])",
922
+ "match": "\\s*(signal)\\s+([a-zA-Z_]\\w*)(?=[\\n\\s])",
923
923
  "name": "meta.signal.gdscript"
924
924
  },
925
925
  "square_braces": {
@@ -954,7 +954,7 @@
954
954
  "statement_keyword": {
955
955
  "patterns": [
956
956
  {
957
- "match": "(?x)\n\\b(?<!\\.)(\ncontinue | assert | break | elif | else | if | pass | return | while )\\b\n",
957
+ "match": "\\b(?<!\\.)(continue|assert|break|elif|else|if|pass|return|while)\\b",
958
958
  "name": "keyword.control.flow.gdscript"
959
959
  },
960
960
  {
@@ -967,7 +967,7 @@
967
967
  "name": "keyword.control.flow.gdscript"
968
968
  }
969
969
  },
970
- "match": "(?x)\n^\\s*(\ncase | match\n)(?=\\s*([-+\\w\\d(\\[{'\":#]|$))\\b\n"
970
+ "match": "^\\s*(case|match)(?=\\s*([-+\\w\\d(\\[{'\":#]|$))\\b"
971
971
  }
972
972
  ]
973
973
  },
@@ -985,7 +985,7 @@
985
985
  "name": "storage.type.format.gdscript"
986
986
  }
987
987
  },
988
- "match": "(?x)\n(\n{{ | }}\n| (?:\n{\n\\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'\"]+\\])*\n(![rsa])?\n( : \\w? [<>=^]? [-+ ]? \\#?\n\\d* ,? (\\.\\d+)? [bcdeEfFgGnosxX%]? )?\n})\n)\n",
988
+ "match": "({{|}}|(?:{\\w*(\\.[[:alpha:]_]\\w*|\\[[^\\]'\"]+\\])*(![rsa])?(:\\w?[<>=^]?[-+\\s]?\\#?\\d*,?(\\.\\d+)?[bcdeEfFgGnosxX%]?)?}))",
989
989
  "name": "meta.format.brace.gdscript"
990
990
  },
991
991
  {
@@ -1000,7 +1000,7 @@
1000
1000
  "name": "storage.type.format.gdscript"
1001
1001
  }
1002
1002
  },
1003
- "match": "(?x)\n(\n{\n\\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'\"]+\\])*\n(![rsa])?\n(:)\n[^'\"{}\\n]* (?:\n\\{ [^'\"}\\n]*? \\} [^'\"{}\\n]*\n)*\n}\n)\n",
1003
+ "match": "({\\w*(\\.[[:alpha:]_]\\w*|\\[[^\\]'\"]+\\])*(![rsa])?(:)[^'\"{}\\n]*(?:\\{[^'\"}\\n]*?\\}[^'\"{}\\n]*)*})",
1004
1004
  "name": "meta.format.brace.gdscript"
1005
1005
  }
1006
1006
  ]
@@ -1011,7 +1011,7 @@
1011
1011
  "name": "constant.character.format.placeholder.other.gdscript"
1012
1012
  }
1013
1013
  },
1014
- "match": "(?x)\n(\n% (\\([\\w\\s]*\\))?\n[-+#0 ]*\n(\\d+|\\*)? (\\.(\\d+|\\*))?\n([hlL])?\n[diouxXeEfFgGcrsab%]\n)\n",
1014
+ "match": "(%(\\([\\w\\s]*\\))?[-+#0\\s]*(\\d+|\\*)?(\\.(\\d+|\\*))?([hlL])?[diouxXeEfFgGcrsab%])",
1015
1015
  "name": "meta.format.percent.gdscript"
1016
1016
  },
1017
1017
  "strings": {
@@ -780,7 +780,7 @@
780
780
  ]
781
781
  },
782
782
  {
783
- "begin": "(?x)(\\b(?:\\w+\\.)*(?:hbs|html)\\s*)(`)",
783
+ "begin": "(\\b(?:\\w+\\.)*(?:hbs|html)\\s*)(`)",
784
784
  "beginCaptures": {
785
785
  "1": {
786
786
  "name": "entity.name.function.tagged-template.js"
@@ -780,7 +780,7 @@
780
780
  ]
781
781
  },
782
782
  {
783
- "begin": "(?x)(\\b(?:\\w+\\.)*(?:hbs|html)\\s*)(`)",
783
+ "begin": "(\\b(?:\\w+\\.)*(?:hbs|html)\\s*)(`)",
784
784
  "beginCaptures": {
785
785
  "1": {
786
786
  "name": "entity.name.function.tagged-template.js"
@@ -1266,11 +1266,11 @@
1266
1266
  "support-functions": {
1267
1267
  "patterns": [
1268
1268
  {
1269
- "match": "(?x)\\b(?:sprintf|print(?:f|ln)?)\\b",
1269
+ "match": "\\b(?:sprintf|print(?:f|ln)?)\\b",
1270
1270
  "name": "support.function.print.groovy"
1271
1271
  },
1272
1272
  {
1273
- "match": "(?x)\\b(?:shouldFail|fail(?:NotEquals)?|ass(?:ume|ert(?:S(?:cript|ame)|N(?:ot(?:Same|\nNull)|ull)|Contains|T(?:hat|oString|rue)|Inspect|Equals|False|Length|\nArrayEquals)))\\b",
1273
+ "match": "\\b(?:shouldFail|fail(?:NotEquals)?|ass(?:ume|ert(?:S(?:cript|ame)|N(?:ot(?:Same|Null)|ull)|Contains|T(?:hat|oString|rue)|Inspect|Equals|False|Length|ArrayEquals)))\\b",
1274
1274
  "name": "support.function.testing.groovy"
1275
1275
  }
1276
1276
  ]
@@ -1009,7 +1009,7 @@
1009
1009
  ]
1010
1010
  },
1011
1011
  {
1012
- "begin": "(?x)\n\\s*((?:(?:final|abstract|public|private|protected|internal|static|async)\\s+)*)\n(function)\n(?:\\s+)\n(?:\n(__(?:call|construct|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic|dispose|disposeAsync)(?=[^a-zA-Z0-9_\\x7f-\\xff]))\n|\n([a-zA-Z0-9_]+)\n)",
1012
+ "begin": "\\s*((?:(?:final|abstract|public|private|protected|internal|static|async)\\s+)*)(function)(?:\\s+)(?:(__(?:call|construct|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic|dispose|disposeAsync)(?=[^a-zA-Z0-9_\\x7f-\\xff]))|([a-zA-Z0-9_]+))",
1013
1013
  "beginCaptures": {
1014
1014
  "1": {
1015
1015
  "patterns": [
@@ -1074,7 +1074,7 @@
1074
1074
  },
1075
1075
  {
1076
1076
  "begin": "(?xi)\n\\s*\n(?=\n[a-z_0-9$\\\\]+(::)\n(?:\n([a-z_][a-z_0-9]*)\\s*\\(\n|\n((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n|\n([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n)?\n)",
1077
- "end": "(?x)\n(::)\n(?:\n([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n|\n((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n|\n([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n)?",
1077
+ "end": "(::)(?:([A-Za-z_][A-Za-z_0-9]*)\\s*\\(|((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)|([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))?",
1078
1078
  "endCaptures": {
1079
1079
  "1": {
1080
1080
  "name": "keyword.operator.class.php"
@@ -1392,7 +1392,7 @@
1392
1392
  "name": "punctuation.definition.variable.php"
1393
1393
  }
1394
1394
  },
1395
- "match": "(?x)\n(->)\n(?:\n([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n|\n((\\$+)?[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n)?"
1395
+ "match": "(->)(?:([A-Za-z_][A-Za-z_0-9]*)\\s*\\(|((\\$+)?[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))?"
1396
1396
  }
1397
1397
  ]
1398
1398
  },
@@ -1488,7 +1488,7 @@
1488
1488
  ]
1489
1489
  },
1490
1490
  "regex-double-quoted": {
1491
- "begin": "(?x)\n(?<=re)\"/ (?=(\\\\.|[^\"/])++/[imsxeADSUXu]*\")",
1491
+ "begin": "(?<=re)\"/(?=(\\\\.|[^\"/])++/[imsxeADSUXu]*\")",
1492
1492
  "beginCaptures": {
1493
1493
  "0": {
1494
1494
  "name": "punctuation.definition.string.begin.php"
@@ -1544,7 +1544,7 @@
1544
1544
  ]
1545
1545
  },
1546
1546
  "regex-single-quoted": {
1547
- "begin": "(?x)\n(?<=re)'/ (?=(\\\\.|[^'/])++/[imsxeADSUXu]*')",
1547
+ "begin": "(?<=re)'/(?=(\\\\.|[^'/])++/[imsxeADSUXu]*')",
1548
1548
  "beginCaptures": {
1549
1549
  "0": {
1550
1550
  "name": "punctuation.definition.string.begin.php"
@@ -2281,7 +2281,7 @@
2281
2281
  "name": "punctuation.definition.variable.php"
2282
2282
  }
2283
2283
  },
2284
- "match": "(?x)\n(\\$+)\n[a-zA-Z_\\x{7f}-\\x{ff}]\n[a-zA-Z0-9_\\x{7f}-\\x{ff}]*?\n\\b",
2284
+ "match": "(\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*?\\b",
2285
2285
  "name": "variable.other.php"
2286
2286
  }
2287
2287
  ]
@@ -2346,7 +2346,7 @@
2346
2346
  }
2347
2347
  },
2348
2348
  "comment": "Simple syntax: $foo, $foo[0], $foo[$bar], $foo->bar",
2349
- "match": "(?x)\n((\\$)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))\n(?:\n(->)(\\g<name>)\n|\n(\\[)\n(?:(\\d+)|((\\$)\\g<name>)|(\\w+))\n(\\])\n)?"
2349
+ "match": "((\\$)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))(?:(->)(\\g<name>)|(\\[)(?:(\\d+)|((\\$)\\g<name>)|(\\w+))(\\]))?"
2350
2350
  },
2351
2351
  {
2352
2352
  "captures": {
@@ -2361,7 +2361,7 @@
2361
2361
  }
2362
2362
  },
2363
2363
  "comment": "Simple syntax with braces: \"foo${bar}baz\"",
2364
- "match": "(?x)\n((\\$\\{)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\}))"
2364
+ "match": "((\\$\\{)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\}))"
2365
2365
  }
2366
2366
  ]
2367
2367
  },