tm-grammars 1.22.2 → 1.22.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.
Files changed (201) hide show
  1. package/NOTICE +1 -1
  2. package/README.md +166 -166
  3. package/grammars/abap.json +29 -29
  4. package/grammars/actionscript-3.json +10 -10
  5. package/grammars/ada.json +6 -6
  6. package/grammars/angular-expression.json +29 -29
  7. package/grammars/angular-let-declaration.json +1 -1
  8. package/grammars/angular-ts.json +257 -257
  9. package/grammars/apex.json +72 -72
  10. package/grammars/apl.json +1 -1
  11. package/grammars/applescript.json +5 -5
  12. package/grammars/ara.json +3 -3
  13. package/grammars/asciidoc.json +4 -4
  14. package/grammars/asm.json +23 -23
  15. package/grammars/astro.json +3 -3
  16. package/grammars/awk.json +2 -2
  17. package/grammars/ballerina.json +94 -94
  18. package/grammars/bat.json +2 -2
  19. package/grammars/beancount.json +13 -13
  20. package/grammars/berry.json +6 -6
  21. package/grammars/bibtex.json +2 -2
  22. package/grammars/bicep.json +6 -6
  23. package/grammars/blade.json +73 -73
  24. package/grammars/c.json +11 -11
  25. package/grammars/cadence.json +6 -6
  26. package/grammars/cairo.json +5 -5
  27. package/grammars/clarity.json +16 -16
  28. package/grammars/clojure.json +14 -14
  29. package/grammars/cobol.json +33 -33
  30. package/grammars/codeql.json +6 -6
  31. package/grammars/coffee.json +17 -17
  32. package/grammars/common-lisp.json +48 -48
  33. package/grammars/coq.json +1 -1
  34. package/grammars/cpp-macro.json +112 -112
  35. package/grammars/cpp.json +187 -187
  36. package/grammars/crystal.json +22 -22
  37. package/grammars/csharp.json +110 -110
  38. package/grammars/css.json +23 -23
  39. package/grammars/cue.json +33 -33
  40. package/grammars/cypher.json +1 -1
  41. package/grammars/d.json +4 -4
  42. package/grammars/dart.json +6 -6
  43. package/grammars/dax.json +2 -2
  44. package/grammars/diff.json +1 -1
  45. package/grammars/dotenv.json +2 -2
  46. package/grammars/dream-maker.json +3 -3
  47. package/grammars/edge.json +1 -1
  48. package/grammars/elixir.json +15 -15
  49. package/grammars/elm.json +30 -30
  50. package/grammars/emacs-lisp.json +3 -3
  51. package/grammars/erlang.json +2 -2
  52. package/grammars/es-tag-css.json +1 -1
  53. package/grammars/es-tag-glsl.json +1 -1
  54. package/grammars/es-tag-html.json +1 -1
  55. package/grammars/es-tag-sql.json +1 -1
  56. package/grammars/es-tag-xml.json +1 -1
  57. package/grammars/fennel.json +3 -3
  58. package/grammars/fish.json +1 -1
  59. package/grammars/fluent.json +1 -1
  60. package/grammars/fortran-free-form.json +57 -57
  61. package/grammars/fsharp.json +62 -62
  62. package/grammars/gdresource.json +6 -6
  63. package/grammars/gdscript.json +8 -8
  64. package/grammars/gdshader.json +1 -1
  65. package/grammars/genie.json +1 -1
  66. package/grammars/git-commit.json +1 -1
  67. package/grammars/gleam.json +9 -9
  68. package/grammars/glimmer-js.json +6 -6
  69. package/grammars/glimmer-ts.json +6 -6
  70. package/grammars/gnuplot.json +6 -6
  71. package/grammars/go.json +41 -41
  72. package/grammars/graphql.json +1 -1
  73. package/grammars/groovy.json +12 -12
  74. package/grammars/hack.json +19 -19
  75. package/grammars/haml.json +4 -4
  76. package/grammars/handlebars.json +2 -2
  77. package/grammars/haskell.json +17 -17
  78. package/grammars/haxe.json +17 -17
  79. package/grammars/hcl.json +24 -24
  80. package/grammars/hjson.json +7 -7
  81. package/grammars/hlsl.json +8 -8
  82. package/grammars/html.json +3 -3
  83. package/grammars/http.json +2 -2
  84. package/grammars/hy.json +8 -8
  85. package/grammars/imba.json +98 -98
  86. package/grammars/java.json +14 -14
  87. package/grammars/javascript.json +264 -264
  88. package/grammars/jinja.json +8 -8
  89. package/grammars/jison.json +7 -7
  90. package/grammars/json.json +1 -1
  91. package/grammars/json5.json +1 -1
  92. package/grammars/jsonc.json +1 -1
  93. package/grammars/jsonl.json +1 -1
  94. package/grammars/jsonnet.json +1 -1
  95. package/grammars/jssm.json +2 -2
  96. package/grammars/jsx.json +264 -264
  97. package/grammars/julia.json +22 -22
  98. package/grammars/kotlin.json +2 -2
  99. package/grammars/kusto.json +1 -1
  100. package/grammars/latex.json +9 -9
  101. package/grammars/lean.json +3 -3
  102. package/grammars/less.json +13 -13
  103. package/grammars/liquid.json +5 -5
  104. package/grammars/log.json +5 -5
  105. package/grammars/logo.json +1 -1
  106. package/grammars/lua.json +25 -25
  107. package/grammars/luau.json +19 -19
  108. package/grammars/make.json +1 -1
  109. package/grammars/markdown.json +8 -8
  110. package/grammars/marko.json +6 -6
  111. package/grammars/matlab.json +12 -12
  112. package/grammars/mdc.json +3 -3
  113. package/grammars/mdx.json +25 -25
  114. package/grammars/mermaid.json +31 -31
  115. package/grammars/mipsasm.json +3 -3
  116. package/grammars/mojo.json +46 -46
  117. package/grammars/move.json +5 -5
  118. package/grammars/nextflow.json +10 -10
  119. package/grammars/nginx.json +10 -10
  120. package/grammars/nim.json +8 -8
  121. package/grammars/nix.json +34 -34
  122. package/grammars/nushell.json +3 -3
  123. package/grammars/objective-c.json +8 -8
  124. package/grammars/objective-cpp.json +14 -14
  125. package/grammars/ocaml.json +94 -94
  126. package/grammars/perl.json +34 -34
  127. package/grammars/php.json +87 -87
  128. package/grammars/polar.json +6 -6
  129. package/grammars/postcss.json +3 -3
  130. package/grammars/powerquery.json +1 -1
  131. package/grammars/powershell.json +5 -5
  132. package/grammars/prisma.json +3 -3
  133. package/grammars/prolog.json +6 -6
  134. package/grammars/proto.json +3 -3
  135. package/grammars/pug.json +4 -4
  136. package/grammars/puppet.json +11 -11
  137. package/grammars/purescript.json +5 -5
  138. package/grammars/python.json +44 -44
  139. package/grammars/qml.json +4 -4
  140. package/grammars/r.json +10 -10
  141. package/grammars/racket.json +19 -19
  142. package/grammars/raku.json +2 -2
  143. package/grammars/razor.json +24 -24
  144. package/grammars/reg.json +2 -2
  145. package/grammars/regexp.json +3 -3
  146. package/grammars/rel.json +4 -4
  147. package/grammars/riscv.json +5 -5
  148. package/grammars/rst.json +1 -1
  149. package/grammars/ruby.json +3 -3
  150. package/grammars/rust.json +1 -1
  151. package/grammars/sas.json +2 -2
  152. package/grammars/sass.json +5 -5
  153. package/grammars/scala.json +43 -43
  154. package/grammars/scheme.json +8 -8
  155. package/grammars/scss.json +7 -7
  156. package/grammars/shaderlab.json +3 -3
  157. package/grammars/shellscript.json +24 -24
  158. package/grammars/smalltalk.json +6 -6
  159. package/grammars/solidity.json +5 -5
  160. package/grammars/soy.json +1 -1
  161. package/grammars/sparql.json +1 -1
  162. package/grammars/splunk.json +3 -3
  163. package/grammars/sql.json +2 -2
  164. package/grammars/ssh-config.json +2 -2
  165. package/grammars/stata.json +33 -33
  166. package/grammars/stylus.json +6 -6
  167. package/grammars/svelte.json +8 -8
  168. package/grammars/swift.json +27 -27
  169. package/grammars/system-verilog.json +11 -11
  170. package/grammars/systemd.json +5 -5
  171. package/grammars/talonscript.json +1 -1
  172. package/grammars/tcl.json +2 -2
  173. package/grammars/templ.json +2 -2
  174. package/grammars/terraform.json +23 -23
  175. package/grammars/tex.json +3 -3
  176. package/grammars/toml.json +5 -5
  177. package/grammars/tsx.json +264 -264
  178. package/grammars/turtle.json +1 -1
  179. package/grammars/twig.json +23 -23
  180. package/grammars/typescript.json +257 -257
  181. package/grammars/typespec.json +30 -30
  182. package/grammars/typst.json +13 -13
  183. package/grammars/v.json +16 -16
  184. package/grammars/vala.json +1 -1
  185. package/grammars/vb.json +2 -2
  186. package/grammars/verilog.json +5 -5
  187. package/grammars/vhdl.json +14 -14
  188. package/grammars/viml.json +11 -11
  189. package/grammars/vue-html.json +2 -2
  190. package/grammars/vue.json +1 -1
  191. package/grammars/vyper.json +44 -44
  192. package/grammars/wasm.json +2 -2
  193. package/grammars/wgsl.json +3 -3
  194. package/grammars/wikitext.json +9 -9
  195. package/grammars/wolfram.json +331 -331
  196. package/grammars/xml.json +1 -1
  197. package/grammars/yaml.json +3 -3
  198. package/grammars/zenscript.json +2 -2
  199. package/grammars/zig.json +3 -3
  200. package/index.js +204 -204
  201. package/package.json +1 -1
package/grammars/hcl.json CHANGED
@@ -27,13 +27,13 @@
27
27
  }
28
28
  },
29
29
  "comment": "Matches traversal attribute access such as .attr",
30
- "end": "[A-Za-z][\\w-]*|\\d*",
30
+ "end": "[[:alpha:]][\\w-]*|\\d*",
31
31
  "endCaptures": {
32
32
  "0": {
33
33
  "patterns": [
34
34
  {
35
35
  "comment": "Attribute name",
36
- "match": "(?!null|false|true)[A-Za-z][\\w-]*",
36
+ "match": "(?!null|false|true)[[:alpha:]][\\w-]*",
37
37
  "name": "variable.other.member.hcl"
38
38
  },
39
39
  {
@@ -61,7 +61,7 @@
61
61
  }
62
62
  },
63
63
  "comment": "Identifier \"=\" with optional parens",
64
- "match": "(\\()?(\\b(?!null\\b|false\\b|true\\b)[A-Za-z][0-9A-Za-z_-]*)(\\))?\\s*(=(?!=|>))\\s*",
64
+ "match": "(\\()?(\\b(?!null\\b|false\\b|true\\b)[[:alpha:]][[:alnum:]_-]*)(\\))?\\s*(\\=(?!\\=|\\>))\\s*",
65
65
  "name": "variable.declaration.hcl"
66
66
  },
67
67
  "attribute_splat": {
@@ -86,7 +86,7 @@
86
86
  "patterns": [
87
87
  {
88
88
  "comment": "Block type",
89
- "match": "\\b(?!null|false|true)[A-Za-z][0-9A-Za-z_-]*\\b",
89
+ "match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
90
90
  "name": "entity.name.type.hcl"
91
91
  }
92
92
  ]
@@ -100,7 +100,7 @@
100
100
  },
101
101
  {
102
102
  "comment": "Block label (Identifier)",
103
- "match": "[A-Za-z][0-9A-Za-z_-]*",
103
+ "match": "[[:alpha:]][[:alnum:]_-]*",
104
104
  "name": "variable.other.enummember.hcl"
105
105
  }
106
106
  ]
@@ -263,7 +263,7 @@
263
263
  "name": "keyword.control.conditional.hcl"
264
264
  },
265
265
  {
266
- "match": ":",
266
+ "match": "\\:",
267
267
  "name": "keyword.operator.hcl"
268
268
  },
269
269
  {
@@ -286,11 +286,11 @@
286
286
  "1": {
287
287
  "patterns": [
288
288
  {
289
- "match": "\\b[A-Za-z][\\w_-]*::([A-Za-z][\\w_-]*::)?[A-Za-z][\\w_-]*\\b",
289
+ "match": "\\b[[:alpha:]][\\w_-]*::([[:alpha:]][\\w_-]*::)?[[:alpha:]][\\w_-]*\\b",
290
290
  "name": "support.function.namespaced.hcl"
291
291
  },
292
292
  {
293
- "match": "\\b[A-Za-z][\\w_-]*\\b",
293
+ "match": "\\b[[:alpha:]][\\w_-]*\\b",
294
294
  "name": "support.function.builtin.hcl"
295
295
  }
296
296
  ]
@@ -336,7 +336,7 @@
336
336
  "name": "storage.type.hcl"
337
337
  },
338
338
  "heredoc": {
339
- "begin": "(<<-?)\\s*(\\w+)\\s*$",
339
+ "begin": "(\\<\\<\\-?)\\s*(\\w+)\\s*$",
340
340
  "beginCaptures": {
341
341
  "1": {
342
342
  "name": "keyword.operator.heredoc.hcl"
@@ -367,7 +367,7 @@
367
367
  "2": {
368
368
  "patterns": [
369
369
  {
370
- "match": "=>",
370
+ "match": "\\=\\>",
371
371
  "name": "storage.type.function.hcl"
372
372
  },
373
373
  {
@@ -427,7 +427,7 @@
427
427
  },
428
428
  "local_identifiers": {
429
429
  "comment": "Local Identifiers",
430
- "match": "\\b(?!null|false|true)[A-Za-z][0-9A-Za-z_-]*\\b",
430
+ "match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
431
431
  "name": "variable.other.readwrite.hcl"
432
432
  },
433
433
  "numeric_literals": {
@@ -480,7 +480,7 @@
480
480
  },
481
481
  "patterns": [
482
482
  {
483
- "match": "=>",
483
+ "match": "\\=\\>",
484
484
  "name": "storage.type.function.hcl"
485
485
  },
486
486
  {
@@ -550,7 +550,7 @@
550
550
  }
551
551
  },
552
552
  "comment": "Literal, named object key",
553
- "match": "\\b((?!null|false|true)[A-Za-z][0-9A-Za-z_-]*)\\s*(=(?!=))\\s*"
553
+ "match": "\\b((?!null|false|true)[[:alpha:]][[:alnum:]_-]*)\\s*(\\=(?!=))\\s*"
554
554
  },
555
555
  {
556
556
  "captures": {
@@ -568,7 +568,7 @@
568
568
  }
569
569
  },
570
570
  "comment": "String object key",
571
- "match": "^\\s*((\").*(\"))\\s*(=)\\s*"
571
+ "match": "^\\s*((\").*(\"))\\s*(\\=)\\s*"
572
572
  },
573
573
  {
574
574
  "begin": "^\\s*\\(",
@@ -605,19 +605,19 @@
605
605
  "operators": {
606
606
  "patterns": [
607
607
  {
608
- "match": ">=",
608
+ "match": "\\>\\=",
609
609
  "name": "keyword.operator.hcl"
610
610
  },
611
611
  {
612
- "match": "<=",
612
+ "match": "\\<\\=",
613
613
  "name": "keyword.operator.hcl"
614
614
  },
615
615
  {
616
- "match": "==",
616
+ "match": "\\=\\=",
617
617
  "name": "keyword.operator.hcl"
618
618
  },
619
619
  {
620
- "match": "!=",
620
+ "match": "\\!\\=",
621
621
  "name": "keyword.operator.hcl"
622
622
  },
623
623
  {
@@ -625,7 +625,7 @@
625
625
  "name": "keyword.operator.arithmetic.hcl"
626
626
  },
627
627
  {
628
- "match": "-",
628
+ "match": "\\-",
629
629
  "name": "keyword.operator.arithmetic.hcl"
630
630
  },
631
631
  {
@@ -649,15 +649,15 @@
649
649
  "name": "keyword.operator.logical.hcl"
650
650
  },
651
651
  {
652
- "match": "!",
652
+ "match": "\\!",
653
653
  "name": "keyword.operator.logical.hcl"
654
654
  },
655
655
  {
656
- "match": ">",
656
+ "match": "\\>",
657
657
  "name": "keyword.operator.hcl"
658
658
  },
659
659
  {
660
- "match": "<",
660
+ "match": "\\<",
661
661
  "name": "keyword.operator.hcl"
662
662
  },
663
663
  {
@@ -669,11 +669,11 @@
669
669
  "name": "keyword.operator.hcl"
670
670
  },
671
671
  {
672
- "match": ":",
672
+ "match": "\\:",
673
673
  "name": "keyword.operator.hcl"
674
674
  },
675
675
  {
676
- "match": "=>",
676
+ "match": "\\=\\>",
677
677
  "name": "keyword.operator.hcl"
678
678
  }
679
679
  ]
@@ -445,7 +445,7 @@
445
445
  ]
446
446
  },
447
447
  "key": {
448
- "begin": "(?:((?:[^:,{}\\[\\]\\s\"'][^:,{}\\[\\]\\s]*)|(?:'(?:[^\\\\']|(\\\\(?:[\"'\\\\\\/bfnrt]|u[0-9a-fA-F]{4}))|(\\\\.))*')|(?:\"(?:[^\\\\\"]|(\\\\(?:[\"'\\\\\\/bfnrt]|u[0-9a-fA-F]{4}))|(\\\\.))*\"))\\s*(?!\\n)([,{}\\[\\]]*))",
448
+ "begin": "(?:((?:[^:,\\{\\}\\[\\]\\s\"'][^:,\\{\\}\\[\\]\\s]*)|(?:'(?:[^\\\\']|(\\\\(?:[\"'\\\\\\/bfnrt]|u[0-9a-fA-F]{4}))|(\\\\.))*')|(?:\"(?:[^\\\\\"]|(\\\\(?:[\"'\\\\\\/bfnrt]|u[0-9a-fA-F]{4}))|(\\\\.))*\"))\\s*(?!\\n)([,\\{\\}\\[\\]]*))",
449
449
  "beginCaptures": {
450
450
  "0": {
451
451
  "name": "meta.structure.key-value.begin.hjson"
@@ -492,7 +492,7 @@
492
492
  ]
493
493
  },
494
494
  "keyValue": {
495
- "begin": "(?:\\s*(:)\\s*([,}\\]]*))",
495
+ "begin": "(?:\\s*(:)\\s*([,\\}\\]]*))",
496
496
  "beginCaptures": {
497
497
  "1": {
498
498
  "name": "punctuation.separator.dictionary.key-value.hjson"
@@ -583,7 +583,7 @@
583
583
  "name": "punctuation.definition.array.begin.hjson"
584
584
  }
585
585
  },
586
- "end": "(\\])(?:\\s*([^,\\s}]+))?",
586
+ "end": "(\\])(?:\\s*([^,\\s\\}]+))?",
587
587
  "endCaptures": {
588
588
  "1": {
589
589
  "name": "punctuation.definition.array.end.hjson"
@@ -655,7 +655,7 @@
655
655
  "name": "punctuation.definition.string.begin.hjson"
656
656
  }
657
657
  },
658
- "end": "(\")(?:\\s*((?:[^,\\s}#/]|/[^/*])+))?",
658
+ "end": "(\")(?:\\s*((?:[^,\\s\\}#/]|/[^/*])+))?",
659
659
  "endCaptures": {
660
660
  "1": {
661
661
  "name": "punctuation.definition.string.end.hjson"
@@ -678,7 +678,7 @@
678
678
  "name": "punctuation.definition.string.begin.hjson"
679
679
  }
680
680
  },
681
- "end": "(')(?:\\s*((?:[^,\\s}#/]|/[^/*])+))?",
681
+ "end": "(')(?:\\s*((?:[^,\\s\\}#/]|/[^/*])+))?",
682
682
  "endCaptures": {
683
683
  "1": {
684
684
  "name": "punctuation.definition.string.end.hjson"
@@ -703,7 +703,7 @@
703
703
  "name": "punctuation.definition.string.begin.hjson"
704
704
  }
705
705
  },
706
- "end": "(''')(?:\\s*((?:[^,\\s}#/]|/[^/*])+))?",
706
+ "end": "(''')(?:\\s*((?:[^,\\s\\}#/]|/[^/*])+))?",
707
707
  "endCaptures": {
708
708
  "1": {
709
709
  "name": "punctuation.definition.string.end.hjson"
@@ -794,7 +794,7 @@
794
794
  ]
795
795
  },
796
796
  "ustring": {
797
- "match": "([^:,{\\[}\\]\\s].*)$",
797
+ "match": "([^:,\\{\\[\\}\\]\\s].*)$",
798
798
  "name": "string.quoted.none.hjson"
799
799
  },
800
800
  "value": {
@@ -13,15 +13,15 @@
13
13
  "name": "comment.line.double-slash.hlsl"
14
14
  },
15
15
  {
16
- "match": "\\b\\d+\\.\\d*(F|f)?\\b",
16
+ "match": "\\b[0-9]+\\.[0-9]*(F|f)?\\b",
17
17
  "name": "constant.numeric.decimal.hlsl"
18
18
  },
19
19
  {
20
- "match": "(\\.(\\d+)(F|f)?)\\b",
20
+ "match": "(\\.([0-9]+)(F|f)?)\\b",
21
21
  "name": "constant.numeric.decimal.hlsl"
22
22
  },
23
23
  {
24
- "match": "\\b(\\d+(F|f)?)\\b",
24
+ "match": "\\b([0-9]+(F|f)?)\\b",
25
25
  "name": "constant.numeric.decimal.hlsl"
26
26
  },
27
27
  {
@@ -53,23 +53,23 @@
53
53
  "name": "storage.type.basic.hlsl"
54
54
  },
55
55
  {
56
- "match": "\\b([a-zA-Z_]\\w*)(?=[\\s]*\\()",
56
+ "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=[\\s]*\\()",
57
57
  "name": "support.function.hlsl"
58
58
  },
59
59
  {
60
- "match": "(?<=:\\s|:)(?i:BINORMAL\\d*|BLENDINDICES\\d*|BLENDWEIGHT\\d*|COLOR\\d*|NORMAL\\d*|POSITIONT|POSITION|PSIZE\\d*|TANGENT\\d*|TEXCOORD\\d*|FOG|TESSFACTOR\\d*|VFACE|VPOS|DEPTH\\d*)\\b",
60
+ "match": "(?<=\\:\\s|\\:)(?i:BINORMAL[0-9]*|BLENDINDICES[0-9]*|BLENDWEIGHT[0-9]*|COLOR[0-9]*|NORMAL[0-9]*|POSITIONT|POSITION|PSIZE[0-9]*|TANGENT[0-9]*|TEXCOORD[0-9]*|FOG|TESSFACTOR[0-9]*|VFACE|VPOS|DEPTH[0-9]*)\\b",
61
61
  "name": "support.variable.semantic.hlsl"
62
62
  },
63
63
  {
64
- "match": "(?<=:\\s|:)(?i:SV_ClipDistance\\d*|SV_CullDistance\\d*|SV_Coverage|SV_Depth|SV_DepthGreaterEqual\\d*|SV_DepthLessEqual\\d*|SV_InstanceID|SV_IsFrontFace|SV_Position|SV_RenderTargetArrayIndex|SV_SampleIndex|SV_StencilRef|SV_Target[0-7]?|SV_VertexID|SV_ViewportArrayIndex)\\b",
64
+ "match": "(?<=\\:\\s|\\:)(?i:SV_ClipDistance[0-9]*|SV_CullDistance[0-9]*|SV_Coverage|SV_Depth|SV_DepthGreaterEqual[0-9]*|SV_DepthLessEqual[0-9]*|SV_InstanceID|SV_IsFrontFace|SV_Position|SV_RenderTargetArrayIndex|SV_SampleIndex|SV_StencilRef|SV_Target[0-7]?|SV_VertexID|SV_ViewportArrayIndex)\\b",
65
65
  "name": "support.variable.semantic.sm4.hlsl"
66
66
  },
67
67
  {
68
- "match": "(?<=:\\s|:)(?i:SV_DispatchThreadID|SV_DomainLocation|SV_GroupID|SV_GroupIndex|SV_GroupThreadID|SV_GSInstanceID|SV_InsideTessFactor|SV_OutputControlPointID|SV_TessFactor)\\b",
68
+ "match": "(?<=\\:\\s|\\:)(?i:SV_DispatchThreadID|SV_DomainLocation|SV_GroupID|SV_GroupIndex|SV_GroupThreadID|SV_GSInstanceID|SV_InsideTessFactor|SV_OutputControlPointID|SV_TessFactor)\\b",
69
69
  "name": "support.variable.semantic.sm5.hlsl"
70
70
  },
71
71
  {
72
- "match": "(?<=:\\s|:)(?i:SV_InnerCoverage|SV_StencilRef)\\b",
72
+ "match": "(?<=\\:\\s|\\:)(?i:SV_InnerCoverage|SV_StencilRef)\\b",
73
73
  "name": "support.variable.semantic.sm5_1.hlsl"
74
74
  },
75
75
  {
@@ -547,7 +547,7 @@
547
547
  "name": "punctuation.definition.entity.html"
548
548
  }
549
549
  },
550
- "match": "(&)#\\d+(;)",
550
+ "match": "(&)#[0-9]+(;)",
551
551
  "name": "constant.character.entity.numeric.decimal.html"
552
552
  },
553
553
  {
@@ -1935,7 +1935,7 @@
1935
1935
  },
1936
1936
  {
1937
1937
  "begin": "\\G",
1938
- "end": "(?i:(?=>|type(?=[\\s=])(?!\\s*=\\s*(''|\"\"|('|\"|)(text/(javascript(1\\.[0-5])?|x-javascript|jscript|livescript|(x-)?ecmascript|babel)|application/((x-)?javascript|(x-)?ecmascript)|module)[\\s\"'>]))))",
1938
+ "end": "(?ix:\n\t\t\t\t\t\t\t\t\t\t\t\t(?=>\t\t\t\t\t\t\t\t\t\t\t# Tag without type attribute\n\t\t\t\t\t\t\t\t\t\t\t\t | type(?=[\\s=])\n\t\t\t\t\t\t\t\t\t\t\t\t \t(?!\\s*=\\s*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t''\t\t\t\t\t\t\t\t# Empty\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t | \"\"\t\t\t\t\t\t\t\t\t# Values\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t | ('|\"|)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttext/\t\t\t\t\t\t\t# Text mime-types\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavascript(1\\.[0-5])?\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t | x-javascript\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t | jscript\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t | livescript\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t | (x-)?ecmascript\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t | babel\t\t\t\t\t\t# Javascript variant currently\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t# recognized as such\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t | application/\t\t\t\t\t# Application mime-types\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(x-)?javascript\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t | (x-)?ecmascript\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t | module\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[\\s\"'>]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t)",
1939
1939
  "name": "meta.tag.metadata.script.start.html",
1940
1940
  "patterns": [
1941
1941
  {
@@ -1944,7 +1944,7 @@
1944
1944
  ]
1945
1945
  },
1946
1946
  {
1947
- "begin": "(?i:(?=type\\s*=\\s*('|\"|)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\s\"'>]))",
1947
+ "begin": "(?ix:\n\t\t\t\t\t\t\t\t\t\t\t\t(?=\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype\\s*=\\s*\n\t\t\t\t\t\t\t\t\t\t\t\t\t('|\"|)\n\t\t\t\t\t\t\t\t\t\t\t\t\ttext/\n\t\t\t\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx-handlebars\n\t\t\t\t\t\t\t\t\t\t\t\t\t | (x-(handlebars-)?|ng-)?template\n\t\t\t\t\t\t\t\t\t\t\t\t\t | html\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t[\\s\"'>]\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t)",
1948
1948
  "end": "((<))(?=/(?i:script))",
1949
1949
  "endCaptures": {
1950
1950
  "0": {
@@ -124,7 +124,7 @@
124
124
  "name": "string.other.http"
125
125
  }
126
126
  },
127
- "match": "^([\\w\\-]+)\\s*(:)\\s*([^/].*?)\\s*$",
127
+ "match": "^([\\w\\-]+)\\s*(\\:)\\s*([^/].*?)\\s*$",
128
128
  "name": "http.headers"
129
129
  },
130
130
  {
@@ -292,7 +292,7 @@
292
292
  "name": "string.other.http"
293
293
  }
294
294
  },
295
- "match": "(?i)^\\s*(HTTP\\/\\S+)\\s([1-5]\\d\\d)\\s(.*)$",
295
+ "match": "(?i)^\\s*(HTTP\\/\\S+)\\s([1-5][0-9][0-9])\\s(.*)$",
296
296
  "name": "http.responseLine"
297
297
  }
298
298
  },
package/grammars/hy.json CHANGED
@@ -38,11 +38,11 @@
38
38
  "builtin": {
39
39
  "patterns": [
40
40
  {
41
- "match": "(?<![\\.:\\w_\\-=!@$%^&?/<>*])(abs|all|any|ascii|bin|breakpoint|callable|chr|compile|delattr|dir|divmod|eval|exec|format|getattr|globals|hasattr|hash|hex|id|input|isinstance|issubclass|iter|aiter|len|locals|max|min|next|anext|oct|ord|pow|print|repr|round|setattr|sorted|sum|vars|False|None|True|NotImplemented|bool|memoryview|bytearray|bytes|classmethod|complex|dict|enumerate|filter|float|frozenset|property|int|list|map|object|range|reversed|set|slice|staticmethod|str|super|tuple|type|zip|open|quit|exit|copyright|credits|help)(?![\\.:\\w_\\-=!@$%^&?/<>*])",
41
+ "match": "(?<![\\.:\\w_\\-=!@\\$%^&?/<>*])(abs|all|any|ascii|bin|breakpoint|callable|chr|compile|delattr|dir|divmod|eval|exec|format|getattr|globals|hasattr|hash|hex|id|input|isinstance|issubclass|iter|aiter|len|locals|max|min|next|anext|oct|ord|pow|print|repr|round|setattr|sorted|sum|vars|False|None|True|NotImplemented|bool|memoryview|bytearray|bytes|classmethod|complex|dict|enumerate|filter|float|frozenset|property|int|list|map|object|range|reversed|set|slice|staticmethod|str|super|tuple|type|zip|open|quit|exit|copyright|credits|help)(?![\\.:\\w_\\-=!@\\$%^&?/<>*])",
42
42
  "name": "storage.builtin.hy"
43
43
  },
44
44
  {
45
- "match": "(?<=\\(\\s*)\\.\\.\\.(?![\\.:\\w_\\-=!@$%^&?/<>*])",
45
+ "match": "(?<=\\(\\s*)\\.\\.\\.(?![\\.:\\w_\\-=!@\\$%^&?/<>*])",
46
46
  "name": "storage.builtin.dots.hy"
47
47
  }
48
48
  ]
@@ -58,23 +58,23 @@
58
58
  "constants": {
59
59
  "patterns": [
60
60
  {
61
- "match": "(?<=[{\\[(\\s])(\\d+(\\.\\d+)?|(#x)[0-9a-fA-F]+|(#o)[0-7]+|(#b)[01]+)(?=[\\s;()'\",\\[\\]{}])",
61
+ "match": "(?<=[\\{\\[\\(\\s])([0-9]+(\\.[0-9]+)?|(#x)[0-9a-fA-F]+|(#o)[0-7]+|(#b)[01]+)(?=[\\s;()'\",\\[\\]\\{\\}])",
62
62
  "name": "constant.numeric.hy"
63
63
  }
64
64
  ]
65
65
  },
66
66
  "keysym": {
67
- "match": "(?<![\\.:\\w_\\-=!@$%^&?\\/<>*]):[\\.:\\w_\\-=!@$%^&?\\/<>*]*",
67
+ "match": "(?<![\\.:\\w_\\-=!@\\$%^&?\\/<>*]):[\\.:\\w_\\-=!@\\$%^&?\\/<>*]*",
68
68
  "name": "variable.other.constant"
69
69
  },
70
70
  "keywords": {
71
71
  "patterns": [
72
72
  {
73
- "match": "(?<![\\.:\\w_\\-=!@$%^&?/<>*])(and|await|match|let|annotate|assert|break|chainc|cond|continue|deftype|do|except\\*?|finally|else|defreader|([dgls])?for|set[vx]|defclass|defmacro|del|export|eval-and-compile|eval-when-compile|get|global|if|import|(de)?fn|nonlocal|not-in|or|(quasi)?quote|require|return|cut|raise|try|unpack-iterable|unpack-mapping|unquote|unquote-splice|when|while|with|yield|local-macros|in|is|py(s)?|pragma|nonlocal|(is-)?not)(?![\\.:\\w_\\-=!@$%^&?/<>*])",
73
+ "match": "(?<![\\.:\\w_\\-=!@\\$%^&?/<>*])(and|await|match|let|annotate|assert|break|chainc|cond|continue|deftype|do|except\\*?|finally|else|defreader|([dgls])?for|set[vx]|defclass|defmacro|del|export|eval-and-compile|eval-when-compile|get|global|if|import|(de)?fn|nonlocal|not-in|or|(quasi)?quote|require|return|cut|raise|try|unpack-iterable|unpack-mapping|unquote|unquote-splice|when|while|with|yield|local-macros|in|is|py(s)?|pragma|nonlocal|(is-)?not)(?![\\.:\\w_\\-=!@\\$%^&?/<>*])",
74
74
  "name": "keyword.control.hy"
75
75
  },
76
76
  {
77
- "match": "(?<=\\(\\s*)\\.(?![\\.:\\w_\\-=!@$%^&?/<>*])",
77
+ "match": "(?<=\\(\\s*)\\.(?![\\.:\\w_\\-=!@\\$%^&?/<>*])",
78
78
  "name": "keyword.control.dot.hy"
79
79
  }
80
80
  ]
@@ -82,7 +82,7 @@
82
82
  "operators": {
83
83
  "patterns": [
84
84
  {
85
- "match": "(?<![\\.:\\w_\\-=!@$%^&?/<>*])(\\+=?|\\/\\/?=?|\\*\\*?=?|--?=?|[!<>]?=|@=?|%=?|<<?=?|>>?=?|&=?|\\|=?|\\^|~@|~=?|#\\*\\*?)(?![\\.:\\w_\\-=!@$%^&?/<>*])",
85
+ "match": "(?<![\\.:\\w_\\-=!@\\$%^&?/<>*])(\\+=?|\\/\\/?=?|\\*\\*?=?|--?=?|[!<>]?=|@=?|%=?|<<?=?|>>?=?|&=?|\\|=?|\\^|~@|~=?|#\\*\\*?)(?![\\.:\\w_\\-=!@\\$%^&?/<>*])",
86
86
  "name": "keyword.control.hy"
87
87
  }
88
88
  ]
@@ -99,7 +99,7 @@
99
99
  ]
100
100
  },
101
101
  "symbol": {
102
- "match": "(?<![\\.:\\w_\\-=!@$%^&?/<>*#])[\\.a-zA-ZΑ-Ωα-ω_\\-=!@$%^<?/<>*#][\\.:\\w_\\-=!@$%^&?/<>*#]*",
102
+ "match": "(?<![\\.:\\w_\\-=!@\\$%^&?/<>*#])[\\.a-zA-ZΑ-Ωα-ω_\\-=!@\\$%^<?/<>*#][\\.:\\w_\\-=!@\\$%^&?/<>*#]*",
103
103
  "name": "variable.other.hy"
104
104
  }
105
105
  },