tm-grammars 1.22.19 → 1.23.0

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 (234) hide show
  1. package/NOTICE +286 -1
  2. package/README.md +241 -239
  3. package/grammars/abap.json +36 -36
  4. package/grammars/actionscript-3.json +29 -29
  5. package/grammars/ada.json +78 -78
  6. package/grammars/angular-expression.json +62 -62
  7. package/grammars/angular-html.json +0 -1
  8. package/grammars/angular-inline-style.json +3 -3
  9. package/grammars/angular-inline-template.json +2 -2
  10. package/grammars/angular-template-blocks.json +3 -3
  11. package/grammars/angular-template.json +1 -1
  12. package/grammars/angular-ts.json +251 -251
  13. package/grammars/apache.json +31 -31
  14. package/grammars/apex.json +108 -108
  15. package/grammars/apl.json +18 -18
  16. package/grammars/applescript.json +11 -11
  17. package/grammars/ara.json +13 -13
  18. package/grammars/asciidoc.json +234 -234
  19. package/grammars/asm.json +90 -90
  20. package/grammars/astro.json +25 -25
  21. package/grammars/awk.json +8 -8
  22. package/grammars/ballerina.json +150 -150
  23. package/grammars/bat.json +28 -28
  24. package/grammars/beancount.json +33 -33
  25. package/grammars/berry.json +11 -11
  26. package/grammars/bibtex.json +12 -12
  27. package/grammars/bicep.json +12 -12
  28. package/grammars/blade.json +183 -183
  29. package/grammars/bsl.json +58 -58
  30. package/grammars/c.json +162 -162
  31. package/grammars/cadence.json +20 -20
  32. package/grammars/cairo.json +10 -10
  33. package/grammars/clarity.json +20 -20
  34. package/grammars/clojure.json +25 -25
  35. package/grammars/cmake.json +3 -3
  36. package/grammars/cobol.json +91 -91
  37. package/grammars/codeql.json +154 -154
  38. package/grammars/coffee.json +45 -45
  39. package/grammars/common-lisp.json +50 -50
  40. package/grammars/coq.json +10 -10
  41. package/grammars/cpp-macro.json +410 -410
  42. package/grammars/cpp.json +641 -641
  43. package/grammars/crystal.json +68 -68
  44. package/grammars/csharp.json +196 -196
  45. package/grammars/css.json +83 -83
  46. package/grammars/csv.json +1 -1
  47. package/grammars/cue.json +55 -55
  48. package/grammars/cypher.json +11 -11
  49. package/grammars/d.json +127 -32
  50. package/grammars/dart.json +18 -18
  51. package/grammars/dax.json +9 -9
  52. package/grammars/desktop.json +9 -9
  53. package/grammars/diff.json +3 -3
  54. package/grammars/dotenv.json +3 -3
  55. package/grammars/dream-maker.json +20 -20
  56. package/grammars/edge.json +8 -8
  57. package/grammars/elixir.json +44 -44
  58. package/grammars/elm.json +23 -23
  59. package/grammars/emacs-lisp.json +76 -76
  60. package/grammars/erb.json +2 -2
  61. package/grammars/erlang.json +29 -29
  62. package/grammars/es-tag-css.json +3 -3
  63. package/grammars/es-tag-glsl.json +3 -3
  64. package/grammars/es-tag-html.json +3 -3
  65. package/grammars/es-tag-sql.json +2 -2
  66. package/grammars/es-tag-xml.json +2 -2
  67. package/grammars/fennel.json +8 -8
  68. package/grammars/fish.json +10 -10
  69. package/grammars/fluent.json +10 -10
  70. package/grammars/fortran-fixed-form.json +1 -1
  71. package/grammars/fortran-free-form.json +106 -106
  72. package/grammars/fsharp.json +70 -70
  73. package/grammars/gdresource.json +15 -15
  74. package/grammars/gdscript.json +31 -27
  75. package/grammars/gdshader.json +18 -18
  76. package/grammars/genie.json +6 -6
  77. package/grammars/gherkin.json +1 -1
  78. package/grammars/git-commit.json +1 -1
  79. package/grammars/git-rebase.json +1 -1
  80. package/grammars/gleam.json +11 -11
  81. package/grammars/glimmer-js.json +35 -35
  82. package/grammars/glimmer-ts.json +35 -35
  83. package/grammars/glsl.json +4 -4
  84. package/grammars/gnuplot.json +41 -41
  85. package/grammars/go.json +155 -155
  86. package/grammars/graphql.json +20 -20
  87. package/grammars/groovy.json +44 -44
  88. package/grammars/hack.json +74 -74
  89. package/grammars/haml.json +24 -24
  90. package/grammars/handlebars.json +25 -25
  91. package/grammars/haskell.json +99 -99
  92. package/grammars/haxe.json +51 -51
  93. package/grammars/hcl.json +43 -43
  94. package/grammars/hjson.json +29 -29
  95. package/grammars/hlsl.json +15 -15
  96. package/grammars/html-derivative.json +0 -1
  97. package/grammars/html.json +28 -29
  98. package/grammars/http.json +17 -17
  99. package/grammars/hxml.json +3 -3
  100. package/grammars/hy.json +10 -10
  101. package/grammars/imba.json +168 -173
  102. package/grammars/ini.json +2 -2
  103. package/grammars/java.json +54 -54
  104. package/grammars/javascript.json +262 -262
  105. package/grammars/jinja-html.json +3 -3
  106. package/grammars/jinja.json +15 -15
  107. package/grammars/jison.json +18 -18
  108. package/grammars/json.json +6 -6
  109. package/grammars/json5.json +12 -12
  110. package/grammars/jsonc.json +6 -6
  111. package/grammars/jsonl.json +6 -6
  112. package/grammars/jsonnet.json +15 -15
  113. package/grammars/jssm.json +4 -4
  114. package/grammars/jsx.json +262 -262
  115. package/grammars/julia.json +45 -45
  116. package/grammars/kotlin.json +15 -15
  117. package/grammars/kusto.json +13 -13
  118. package/grammars/latex.json +260 -260
  119. package/grammars/lean.json +12 -12
  120. package/grammars/less.json +91 -91
  121. package/grammars/liquid.json +96 -62
  122. package/grammars/llvm.json +122 -0
  123. package/grammars/log.json +22 -22
  124. package/grammars/logo.json +2 -2
  125. package/grammars/lua.json +34 -34
  126. package/grammars/luau.json +20 -20
  127. package/grammars/make.json +22 -22
  128. package/grammars/markdown-vue.json +1 -1
  129. package/grammars/markdown.json +83 -83
  130. package/grammars/marko.json +19 -19
  131. package/grammars/matlab.json +29 -29
  132. package/grammars/mdc.json +17 -17
  133. package/grammars/mdx.json +278 -278
  134. package/grammars/mermaid.json +97 -97
  135. package/grammars/mipsasm.json +2 -2
  136. package/grammars/mojo.json +122 -122
  137. package/grammars/move.json +35 -35
  138. package/grammars/narrat.json +10 -10
  139. package/grammars/nextflow.json +11 -11
  140. package/grammars/nginx.json +45 -45
  141. package/grammars/nim.json +44 -44
  142. package/grammars/nix.json +71 -71
  143. package/grammars/nushell.json +36 -36
  144. package/grammars/objective-c.json +129 -129
  145. package/grammars/objective-cpp.json +245 -245
  146. package/grammars/ocaml.json +229 -229
  147. package/grammars/pascal.json +4 -4
  148. package/grammars/perl.json +64 -64
  149. package/grammars/php.json +199 -199
  150. package/grammars/plsql.json +10 -10
  151. package/grammars/po.json +4 -4
  152. package/grammars/polar.json +13 -13
  153. package/grammars/postcss.json +31 -31
  154. package/grammars/powerquery.json +10 -10
  155. package/grammars/powershell.json +54 -54
  156. package/grammars/prisma.json +13 -13
  157. package/grammars/prolog.json +3 -3
  158. package/grammars/proto.json +11 -11
  159. package/grammars/pug.json +30 -30
  160. package/grammars/puppet.json +35 -35
  161. package/grammars/purescript.json +843 -467
  162. package/grammars/python.json +126 -126
  163. package/grammars/qml.json +18 -18
  164. package/grammars/qss.json +7 -7
  165. package/grammars/r.json +17 -17
  166. package/grammars/racket.json +58 -58
  167. package/grammars/raku.json +15 -15
  168. package/grammars/razor.json +30 -30
  169. package/grammars/reg.json +3 -3
  170. package/grammars/regexp.json +15 -15
  171. package/grammars/rel.json +4 -4
  172. package/grammars/riscv.json +15 -15
  173. package/grammars/rst.json +26 -26
  174. package/grammars/ruby.json +103 -106
  175. package/grammars/rust.json +13 -13
  176. package/grammars/sas.json +9 -9
  177. package/grammars/sass.json +35 -35
  178. package/grammars/scala.json +75 -75
  179. package/grammars/scheme.json +16 -16
  180. package/grammars/scss.json +68 -68
  181. package/grammars/sdbl.json +18 -18
  182. package/grammars/shaderlab.json +8 -8
  183. package/grammars/shellscript.json +111 -111
  184. package/grammars/shellsession.json +1 -1
  185. package/grammars/smalltalk.json +5 -5
  186. package/grammars/solidity.json +20 -20
  187. package/grammars/soy.json +30 -30
  188. package/grammars/sparql.json +1 -1
  189. package/grammars/splunk.json +6 -6
  190. package/grammars/sql.json +8 -8
  191. package/grammars/ssh-config.json +2 -2
  192. package/grammars/stata.json +90 -90
  193. package/grammars/stylus.json +48 -48
  194. package/grammars/svelte.json +35 -25
  195. package/grammars/swift.json +114 -114
  196. package/grammars/system-verilog.json +25 -25
  197. package/grammars/systemd.json +16 -16
  198. package/grammars/talonscript.json +12 -12
  199. package/grammars/tasl.json +10 -10
  200. package/grammars/tcl.json +11 -11
  201. package/grammars/templ.json +34 -34
  202. package/grammars/terraform.json +42 -42
  203. package/grammars/tex.json +14 -14
  204. package/grammars/toml.json +15 -15
  205. package/grammars/tsx.json +262 -262
  206. package/grammars/turtle.json +2 -2
  207. package/grammars/twig.json +37 -37
  208. package/grammars/typescript.json +251 -251
  209. package/grammars/typespec.json +54 -273
  210. package/grammars/typst.json +34 -34
  211. package/grammars/v.json +32 -32
  212. package/grammars/vala.json +6 -6
  213. package/grammars/vb.json +7 -7
  214. package/grammars/verilog.json +4 -4
  215. package/grammars/vhdl.json +10 -10
  216. package/grammars/viml.json +22 -22
  217. package/grammars/vue-html.json +10 -10
  218. package/grammars/vue-sfc-style-variable-injection.json +1 -1
  219. package/grammars/vue.json +65 -65
  220. package/grammars/vyper.json +126 -126
  221. package/grammars/wasm.json +26 -26
  222. package/grammars/wenyan.json +7 -7
  223. package/grammars/wgsl.json +9 -9
  224. package/grammars/wikitext.json +66 -66
  225. package/grammars/wit.json +1409 -0
  226. package/grammars/wolfram.json +446 -446
  227. package/grammars/xml.json +11 -11
  228. package/grammars/xsl.json +1 -1
  229. package/grammars/yaml.json +24 -24
  230. package/grammars/zenscript.json +8 -8
  231. package/grammars/zig.json +11 -11
  232. package/index.d.ts +7 -0
  233. package/index.js +1003 -283
  234. package/package.json +1 -1
package/grammars/log.json CHANGED
@@ -10,59 +10,59 @@
10
10
  "name": "comment log.verbose"
11
11
  },
12
12
  {
13
- "match": "(?i)\\[(verbose|verb|vrb|vb|v)\\]",
13
+ "match": "(?i)\\[(v(?:erbose|erb|rb|b|))]",
14
14
  "name": "comment log.verbose"
15
15
  },
16
16
  {
17
- "match": "(?<=^[\\s\\d\\p]*)\\bV\\b",
17
+ "match": "(?<=^[\\s\\dp]*)\\bV\\b",
18
18
  "name": "comment log.verbose"
19
19
  },
20
20
  {
21
- "match": "\\b(DEBUG|Debug)\\b|(?i)\\b(debug)\\:",
21
+ "match": "\\b(D(?:EBUG|ebug))\\b|(?i)\\b(debug):",
22
22
  "name": "markup.changed log.debug"
23
23
  },
24
24
  {
25
- "match": "(?i)\\[(debug|dbug|dbg|de|d)\\]",
25
+ "match": "(?i)\\[(d(?:ebug|bug|bg|e|))]",
26
26
  "name": "markup.changed log.debug"
27
27
  },
28
28
  {
29
- "match": "(?<=^[\\s\\d\\p]*)\\bD\\b",
29
+ "match": "(?<=^[\\s\\dp]*)\\bD\\b",
30
30
  "name": "markup.changed log.debug"
31
31
  },
32
32
  {
33
- "match": "\\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\\b|(?i)\\b(info|information)\\:",
33
+ "match": "\\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\\b|(?i)\\b(info(?:|rmation)):",
34
34
  "name": "markup.inserted log.info"
35
35
  },
36
36
  {
37
- "match": "(?i)\\[(information|info|inf|in|i)\\]",
37
+ "match": "(?i)\\[(i(?:nformation|nfo|nf|n|))]",
38
38
  "name": "markup.inserted log.info"
39
39
  },
40
40
  {
41
- "match": "(?<=^[\\s\\d\\p]*)\\bI\\b",
41
+ "match": "(?<=^[\\s\\dp]*)\\bI\\b",
42
42
  "name": "markup.inserted log.info"
43
43
  },
44
44
  {
45
- "match": "\\b(WARNING|WARN|Warn|WW)\\b|(?i)\\b(warning)\\:",
45
+ "match": "\\b(W(?:ARNING|ARN|arn|W))\\b|(?i)\\b(warning):",
46
46
  "name": "markup.deleted log.warning"
47
47
  },
48
48
  {
49
- "match": "(?i)\\[(warning|warn|wrn|wn|w)\\]",
49
+ "match": "(?i)\\[(w(?:arning|arn|rn|n|))]",
50
50
  "name": "markup.deleted log.warning"
51
51
  },
52
52
  {
53
- "match": "(?<=^[\\s\\d\\p]*)\\bW\\b",
53
+ "match": "(?<=^[\\s\\dp]*)\\bW\\b",
54
54
  "name": "markup.deleted log.warning"
55
55
  },
56
56
  {
57
- "match": "\\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\\b|(?i)\\b(error)\\:",
57
+ "match": "\\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\\b|(?i)\\b(error):",
58
58
  "name": "string.regexp, strong log.error"
59
59
  },
60
60
  {
61
- "match": "(?i)\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\\]",
61
+ "match": "(?i)\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)]",
62
62
  "name": "string.regexp, strong log.error"
63
63
  },
64
64
  {
65
- "match": "(?<=^[\\s\\d\\p]*)\\bE\\b",
65
+ "match": "(?<=^[\\s\\dp]*)\\bE\\b",
66
66
  "name": "string.regexp, strong log.error"
67
67
  },
68
68
  {
@@ -74,23 +74,23 @@
74
74
  "name": "comment log.date"
75
75
  },
76
76
  {
77
- "match": "T?\\d{1,2}:\\d{2}(:\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}:\\d{2})?\\b",
77
+ "match": "T?\\d{1,2}:\\d{2}(:\\d{2}([.,]\\d+)?)?(Z| ?[+\\-]\\d{1,2}:\\d{2})?\\b",
78
78
  "name": "comment log.date"
79
79
  },
80
80
  {
81
- "match": "T\\d{2}\\d{2}(\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}\\d{2})?\\b",
81
+ "match": "T\\d{2}\\d{2}(\\d{2}([.,]\\d+)?)?(Z| ?[+\\-]\\d{1,2}\\d{2})?\\b",
82
82
  "name": "comment log.date"
83
83
  },
84
84
  {
85
- "match": "\\b([0-9a-fA-F]{40}|[0-9a-fA-F]{10}|[0-9a-fA-F]{7})\\b",
85
+ "match": "\\b(\\h{40}|\\h{10}|\\h{7})\\b",
86
86
  "name": "constant.language"
87
87
  },
88
88
  {
89
- "match": "\\b[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}\\b",
89
+ "match": "\\b\\h{8}-?(\\h{4}-?){3}\\h{12}\\b",
90
90
  "name": "constant.language log.constant"
91
91
  },
92
92
  {
93
- "match": "\\b([0-9a-fA-F]{2,}[:-])+[0-9a-fA-F]{2,}+\\b",
93
+ "match": "\\b(\\h{2,}[:\\-])+\\h{2,}{1,}\\b",
94
94
  "name": "constant.language log.constant"
95
95
  },
96
96
  {
@@ -98,7 +98,7 @@
98
98
  "name": "constant.language log.constant"
99
99
  },
100
100
  {
101
- "match": "\\b(0x[a-fA-F0-9]+)\\b",
101
+ "match": "\\b(0x\\h+)\\b",
102
102
  "name": "constant.language log.constant"
103
103
  },
104
104
  {
@@ -106,7 +106,7 @@
106
106
  "name": "string log.string"
107
107
  },
108
108
  {
109
- "match": "(?<![\\w])'[^']*'",
109
+ "match": "(?<!\\w)'[^']*'",
110
110
  "name": "string log.string"
111
111
  },
112
112
  {
@@ -123,7 +123,7 @@
123
123
  "name": "constant.language log.constant"
124
124
  },
125
125
  {
126
- "match": "(?<![\\w/\\\\])([\\w-]+\\.)+([\\w-])+(?![\\w/\\\\])",
126
+ "match": "(?<![\\w/\\\\])([\\w\\-]+\\.)+([\\w\\-])+(?![\\w/\\\\])",
127
127
  "name": "constant.language log.constant"
128
128
  }
129
129
  ],
@@ -22,11 +22,11 @@
22
22
  "name": "punctuation.definition.variable.logo"
23
23
  }
24
24
  },
25
- "match": "(\\:)(?:\\|[^|]*\\||[-\\w.]*)+",
25
+ "match": "(:)(?:\\|[^|]*\\||[\\-\\w.]*)+",
26
26
  "name": "variable.parameter.logo"
27
27
  },
28
28
  {
29
- "match": "\"(?:\\|[^|]*\\||[-\\w.]*)+",
29
+ "match": "\"(?:\\|[^|]*\\||[\\-\\w.]*)+",
30
30
  "name": "string.other.word.logo"
31
31
  },
32
32
  {
package/grammars/lua.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "name": "keyword.control.lua"
13
13
  }
14
14
  },
15
- "end": "(?<=[\\)\\-{}\\[\\]\"'])",
15
+ "end": "(?<=[)\\-{}\\[\\]\"'])",
16
16
  "name": "meta.function.lua",
17
17
  "patterns": [
18
18
  {
@@ -25,7 +25,7 @@
25
25
  "name": "punctuation.definition.parameters.begin.lua"
26
26
  }
27
27
  },
28
- "end": "(\\))|(?=[\\-\\.{}\\[\\]\"'])",
28
+ "end": "(\\))|(?=[\\-.{}\\[\\]\"'])",
29
29
  "endCaptures": {
30
30
  "1": {
31
31
  "name": "punctuation.definition.parameters.finish.lua"
@@ -51,7 +51,7 @@
51
51
  "name": "punctuation.separator.arguments.lua"
52
52
  }
53
53
  },
54
- "end": "(?=[\\),])",
54
+ "end": "(?=[),])",
55
55
  "patterns": [
56
56
  {
57
57
  "include": "#emmydoc.type"
@@ -71,15 +71,15 @@
71
71
  ]
72
72
  },
73
73
  {
74
- "match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(\\.[0-9A-Fa-f]*)?([eE]-?\\d*)?([pP][-+]\\d+)?",
74
+ "match": "(?<![\\w\\d.])0[xX]\\h+(\\.\\h*)?([eE]-?\\d*)?([pP][\\-+]\\d+)?",
75
75
  "name": "constant.numeric.float.hexadecimal.lua"
76
76
  },
77
77
  {
78
- "match": "(?<![\\w\\d.])0[xX]\\.[0-9A-Fa-f]+([eE]-?\\d*)?([pP][-+]\\d+)?",
78
+ "match": "(?<![\\w\\d.])0[xX]\\.\\h+([eE]-?\\d*)?([pP][\\-+]\\d+)?",
79
79
  "name": "constant.numeric.float.hexadecimal.lua"
80
80
  },
81
81
  {
82
- "match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])",
82
+ "match": "(?<![\\w\\d.])0[xX]\\h+(?![pPeE.0-9])",
83
83
  "name": "constant.numeric.integer.hexadecimal.lua"
84
84
  },
85
85
  {
@@ -138,10 +138,10 @@
138
138
  "name": "storage.type.attribute.lua"
139
139
  }
140
140
  },
141
- "match": "<\\s*(const|close)\\s*>"
141
+ "match": "<\\s*(c(?:onst|lose))\\s*>"
142
142
  },
143
143
  {
144
- "match": "\\<[a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*\\>",
144
+ "match": "<[a-zA-Z_*][a-zA-Z0-9_.*\\-]*>",
145
145
  "name": "storage.type.generic.lua"
146
146
  },
147
147
  {
@@ -157,7 +157,7 @@
157
157
  "name": "keyword.control.lua"
158
158
  },
159
159
  {
160
- "match": "(?<![^.]\\.|:)\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\.(pi|huge|maxinteger|mininteger)|utf8\\.charpattern|io\\.(stdin|stdout|stderr)|package\\.(config|cpath|loaded|loaders|path|preload|searchers))\\b|(?<![.])\\.{3}(?!\\.)",
160
+ "match": "(?<![^.]\\.|:)\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\.(pi|huge|maxinteger|mininteger)|utf8\\.charpattern|io\\.(std(?:in|out|err))|package\\.(config|cpath|loaded|loaders|path|preload|searchers))\\b|(?<!\\.)\\.{3}(?!\\.)",
161
161
  "name": "constant.language.lua"
162
162
  },
163
163
  {
@@ -177,7 +177,7 @@
177
177
  "name": "support.function.library.lua"
178
178
  },
179
179
  {
180
- "match": "\\b(and|or|not|\\|\\||\\&\\&|\\!)\\b",
180
+ "match": "\\b(and|or|not|\\|\\||&&|!)\\b",
181
181
  "name": "keyword.operator.lua"
182
182
  },
183
183
  {
@@ -201,7 +201,7 @@
201
201
  "name": "entity.name.function.lua"
202
202
  },
203
203
  {
204
- "match": "\\+|-|%|#|\\*|\\/|\\^|==?|~=|!=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)",
204
+ "match": "[+\\-%#*/\\^]|==?|~=|!=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)",
205
205
  "name": "keyword.operator.lua"
206
206
  }
207
207
  ],
@@ -229,7 +229,7 @@
229
229
  "name": "punctuation.definition.comment.begin.lua"
230
230
  }
231
231
  },
232
- "end": "(--)?\\]\\1\\]",
232
+ "end": "(--)?]\\1]",
233
233
  "endCaptures": {
234
234
  "0": {
235
235
  "name": "punctuation.definition.comment.end.lua"
@@ -249,7 +249,7 @@
249
249
  "name": "punctuation.definition.comment.begin.lua"
250
250
  }
251
251
  },
252
- "end": "(--)?\\]\\1\\]",
252
+ "end": "(--)?]\\1]",
253
253
  "endCaptures": {
254
254
  "0": {
255
255
  "name": "punctuation.definition.comment.end.lua"
@@ -311,13 +311,13 @@
311
311
  ]
312
312
  },
313
313
  {
314
- "begin": "\\/\\*",
314
+ "begin": "/\\*",
315
315
  "beginCaptures": {
316
316
  "0": {
317
317
  "name": "punctuation.definition.comment.begin.lua"
318
318
  }
319
319
  },
320
- "end": "\\*\\/",
320
+ "end": "\\*/",
321
321
  "endCaptures": {
322
322
  "0": {
323
323
  "name": "punctuation.definition.comment.end.lua"
@@ -347,11 +347,11 @@
347
347
  "end": "(?=[\\n@#])",
348
348
  "patterns": [
349
349
  {
350
- "match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
350
+ "match": "\\b([a-zA-Z_*][a-zA-Z0-9_.*\\-]*)",
351
351
  "name": "support.class.lua"
352
352
  },
353
353
  {
354
- "match": ":|,",
354
+ "match": "[:,]",
355
355
  "name": "keyword.operator.lua"
356
356
  }
357
357
  ]
@@ -366,7 +366,7 @@
366
366
  "end": "(?=[\\n@#])",
367
367
  "patterns": [
368
368
  {
369
- "begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
369
+ "begin": "\\b([a-zA-Z_*][a-zA-Z0-9_.*\\-]*)",
370
370
  "beginCaptures": {
371
371
  "0": {
372
372
  "name": "variable.lua"
@@ -400,7 +400,7 @@
400
400
  "end": "(?=[\\n@#])",
401
401
  "patterns": [
402
402
  {
403
- "begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
403
+ "begin": "\\b([a-zA-Z_*][a-zA-Z0-9_.*\\-]*)",
404
404
  "beginCaptures": {
405
405
  "0": {
406
406
  "name": "variable.lua"
@@ -442,7 +442,7 @@
442
442
  "end": "(?=[\\n@#])",
443
443
  "patterns": [
444
444
  {
445
- "begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
445
+ "begin": "\\b([a-zA-Z_*][a-zA-Z0-9_.*\\-]*)",
446
446
  "beginCaptures": {
447
447
  "0": {
448
448
  "name": "variable.other.lua"
@@ -535,7 +535,7 @@
535
535
  "include": "#emmydoc.type"
536
536
  },
537
537
  {
538
- "match": "\\]",
538
+ "match": "]",
539
539
  "name": "keyword.operator.lua"
540
540
  }
541
541
  ]
@@ -663,7 +663,7 @@
663
663
  "name": "support.class.lua"
664
664
  },
665
665
  {
666
- "match": ",|\\>|\\<",
666
+ "match": "[,><]",
667
667
  "name": "keyword.operator.lua"
668
668
  }
669
669
  ]
@@ -678,7 +678,7 @@
678
678
  "end": "(?=[\\n@#])",
679
679
  "patterns": [
680
680
  {
681
- "match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
681
+ "match": "\\b([a-zA-Z_*][a-zA-Z0-9_.*\\-]*)",
682
682
  "name": "support.class.lua"
683
683
  },
684
684
  {
@@ -709,7 +709,7 @@
709
709
  "end": "(?=\\n)",
710
710
  "patterns": [
711
711
  {
712
- "match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\-]*)",
712
+ "match": "\\b([a-zA-Z_*][a-zA-Z0-9_\\-]*)",
713
713
  "name": "support.class.lua"
714
714
  },
715
715
  {
@@ -739,7 +739,7 @@
739
739
  "name": "storage.type.annotation.lua"
740
740
  },
741
741
  {
742
- "begin": "(?<=---)\\|\\s*[\\>\\+]?",
742
+ "begin": "(?<=---)\\|\\s*[>+]?",
743
743
  "beginCaptures": {
744
744
  "0": {
745
745
  "name": "storage.type.annotation.lua"
@@ -766,11 +766,11 @@
766
766
  "end": "(?=[\\s#])",
767
767
  "patterns": [
768
768
  {
769
- "match": "[\\(\\),:\\?][ \\t]*",
769
+ "match": "[(),:?][ \\t]*",
770
770
  "name": "keyword.operator.lua"
771
771
  },
772
772
  {
773
- "match": "([a-zA-Z_][a-zA-Z0-9_\\.\\*\\[\\]\\<\\>\\,\\-]*)(?<!,)[ \\t]*(?=\\??:)",
773
+ "match": "([a-zA-Z_][a-zA-Z0-9_.*\\[\\]<>,\\-]*)(?<!,)[ \\t]*(?=\\??:)",
774
774
  "name": "entity.name.variable.lua"
775
775
  },
776
776
  {
@@ -782,7 +782,7 @@
782
782
  ]
783
783
  },
784
784
  {
785
- "match": "\\<[a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*\\>",
785
+ "match": "<[a-zA-Z_*][a-zA-Z0-9_.*\\-]*>",
786
786
  "name": "storage.type.generic.lua"
787
787
  },
788
788
  {
@@ -790,15 +790,15 @@
790
790
  "name": "entity.name.tag.lua"
791
791
  },
792
792
  {
793
- "match": "[\\{\\}\\:\\,\\?\\|\\`][ \\t]*",
793
+ "match": "[{}:,?|`][ \\t]*",
794
794
  "name": "keyword.operator.lua"
795
795
  },
796
796
  {
797
- "begin": "(?=[a-zA-Z_\\.\\*\"'\\[])",
798
- "end": "(?=[\\s\\)\\,\\?\\:\\}\\|#])",
797
+ "begin": "(?=[a-zA-Z_.*\"'\\[])",
798
+ "end": "(?=[\\s),?:}|#])",
799
799
  "patterns": [
800
800
  {
801
- "match": "([a-zA-Z0-9_\\.\\*\\[\\]\\<\\>\\,\\-]+)(?<!,)[ \\t]*",
801
+ "match": "([a-zA-Z0-9_.*\\[\\]<>,\\-]+)(?<!,)[ \\t]*",
802
802
  "name": "support.type.lua"
803
803
  },
804
804
  {
@@ -827,11 +827,11 @@
827
827
  "name": "constant.character.escape.byte.lua"
828
828
  },
829
829
  {
830
- "match": "\\\\x[0-9A-Fa-f][0-9A-Fa-f]",
830
+ "match": "\\\\x\\h\\h",
831
831
  "name": "constant.character.escape.byte.lua"
832
832
  },
833
833
  {
834
- "match": "\\\\u\\{[0-9A-Fa-f]+\\}",
834
+ "match": "\\\\u\\{\\h+}",
835
835
  "name": "constant.character.escape.unicode.lua"
836
836
  },
837
837
  {
@@ -141,7 +141,7 @@
141
141
  "name": "variable.parameter.luau"
142
142
  }
143
143
  },
144
- "match": "((?<=[\\s*!\\/])[\\\\@]param)(?:\\s)+(\\b\\w+\\b)"
144
+ "match": "((?<=[\\s*!/])[\\\\@]param)\\s+(\\b\\w+\\b)"
145
145
  }
146
146
  ]
147
147
  },
@@ -192,7 +192,7 @@
192
192
  "name": "keyword.control.luau"
193
193
  }
194
194
  },
195
- "end": "(?<=[\\)\\-{}\\[\\]\"'])",
195
+ "end": "(?<=[)\\-{}\\[\\]\"'])",
196
196
  "name": "meta.function.luau",
197
197
  "patterns": [
198
198
  {
@@ -238,7 +238,7 @@
238
238
  "name": "keyword.operator.type.luau"
239
239
  }
240
240
  },
241
- "end": "(?=[\\),])",
241
+ "end": "(?=[),])",
242
242
  "patterns": [
243
243
  {
244
244
  "include": "#type_literal"
@@ -248,7 +248,7 @@
248
248
  ]
249
249
  },
250
250
  {
251
- "match": "\\b(__add|__call|__concat|__div|__eq|__index|__le|__len|__lt|__metatable|__mod|__mode|__mul|__newindex|__pow|__sub|__tostring|__unm|__iter|__idiv)\\b",
251
+ "match": "\\b(__(?:add|call|concat|div|eq|index|le|len|lt|metatable|mod|mode|mul|newindex|pow|sub|tostring|unm|iter|idiv))\\b",
252
252
  "name": "variable.language.metamethod.luau"
253
253
  },
254
254
  {
@@ -302,7 +302,7 @@
302
302
  }
303
303
  },
304
304
  "contentName": "meta.embedded.line.luau",
305
- "end": "\\}",
305
+ "end": "}",
306
306
  "endCaptures": {
307
307
  "0": {
308
308
  "name": "punctuation.definition.interpolated-string-expression.end.luau"
@@ -338,11 +338,11 @@
338
338
  "name": "keyword.operator.logical.luau keyword.operator.wordlike.luau"
339
339
  },
340
340
  {
341
- "match": "(?<=[^.]\\.|:)\\b(__add|__call|__concat|__div|__eq|__index|__le|__len|__lt|__metatable|__mod|__mode|__mul|__newindex|__pow|__sub|__tostring|__unm)\\b",
341
+ "match": "(?<=[^.]\\.|:)\\b(__(?:add|call|concat|div|eq|index|le|len|lt|metatable|mod|mode|mul|newindex|pow|sub|tostring|unm))\\b",
342
342
  "name": "variable.language.metamethod.luau"
343
343
  },
344
344
  {
345
- "match": "(?<![.])\\.{3}(?!\\.)",
345
+ "match": "(?<!\\.)\\.{3}(?!\\.)",
346
346
  "name": "keyword.other.unit.luau"
347
347
  }
348
348
  ]
@@ -405,15 +405,15 @@
405
405
  "number": {
406
406
  "patterns": [
407
407
  {
408
- "match": "\\b0_*[xX]_*[\\da-fA-F_]*(?:[eE][\\+\\-]?_*\\d[\\d_]*(?:\\.[\\d_]*)?)?",
408
+ "match": "\\b0_*[xX]_*[\\da-fA-F_]*(?:[eE][+\\-]?_*\\d[\\d_]*(?:\\.[\\d_]*)?)?",
409
409
  "name": "constant.numeric.hex.luau"
410
410
  },
411
411
  {
412
- "match": "\\b0_*[bB][01_]+(?:[eE][\\+\\-]?_*\\d[\\d_]*(?:\\.[\\d_]*)?)?",
412
+ "match": "\\b0_*[bB][01_]+(?:[eE][+\\-]?_*\\d[\\d_]*(?:\\.[\\d_]*)?)?",
413
413
  "name": "constant.numeric.binary.luau"
414
414
  },
415
415
  {
416
- "match": "(?:\\d[\\d_]*(?:\\.[\\d_]*)?|\\.\\d[\\d_]*)(?:[eE][\\+\\-]?_*\\d[\\d_]*(?:\\.[\\d_]*)?)?",
416
+ "match": "(?:\\d[\\d_]*(?:\\.[\\d_]*)?|\\.\\d[\\d_]*)(?:[eE][+\\-]?_*\\d[\\d_]*(?:\\.[\\d_]*)?)?",
417
417
  "name": "constant.numeric.decimal.luau"
418
418
  }
419
419
  ]
@@ -429,7 +429,7 @@
429
429
  "name": "keyword.operator.assignment.luau"
430
430
  },
431
431
  {
432
- "match": "\\+|-|%|\\*|\\/\\/|\\/|\\^",
432
+ "match": "[+\\-%*]|//|[/\\^]",
433
433
  "name": "keyword.operator.arithmetic.luau"
434
434
  },
435
435
  {
@@ -477,7 +477,7 @@
477
477
  "name": "support.function.luau"
478
478
  },
479
479
  {
480
- "match": "(?<![^.]\\.|:)\\b(_G|_VERSION)\\b",
480
+ "match": "(?<![^.]\\.|:)\\b(_(?:G|VERSION))\\b",
481
481
  "name": "constant.language.luau"
482
482
  },
483
483
  {
@@ -551,11 +551,11 @@
551
551
  "name": "constant.character.escape.luau"
552
552
  },
553
553
  {
554
- "match": "\\\\x[0-9a-fA-F]{2}",
554
+ "match": "\\\\x\\h{2}",
555
555
  "name": "constant.character.escape.luau"
556
556
  },
557
557
  {
558
- "match": "\\\\u\\{[0-9a-fA-F]*\\}",
558
+ "match": "\\\\u\\{\\h*}",
559
559
  "name": "constant.character.escape.luau"
560
560
  },
561
561
  {
@@ -571,7 +571,7 @@
571
571
  "name": "punctuation.table.begin.luau"
572
572
  }
573
573
  },
574
- "end": "(\\})",
574
+ "end": "(})",
575
575
  "endCaptures": {
576
576
  "1": {
577
577
  "name": "punctuation.table.end.luau"
@@ -610,7 +610,7 @@
610
610
  },
611
611
  "type_annotation": {
612
612
  "begin": ":(?!\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[)))",
613
- "end": "(?<=\\))(?!\\s*->)|=|;|$|(?=\\breturn\\b)|(?=\\bend\\b)",
613
+ "end": "(?<=\\))(?!\\s*->)|[=;]|$|(?=\\breturn\\b)|(?=\\bend\\b)",
614
614
  "patterns": [
615
615
  {
616
616
  "include": "#comment"
@@ -627,7 +627,7 @@
627
627
  "name": "keyword.operator.typecast.luau"
628
628
  }
629
629
  },
630
- "end": "(?=^|[;),}\\]:?\\-\\+\\>](?!\\s*[&\\|])|$|\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\b)",
630
+ "end": "(?=^|[;),}\\]:?\\-+>](?!\\s*[\\&|])|$|\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\b)",
631
631
  "patterns": [
632
632
  {
633
633
  "include": "#type_literal"
@@ -643,7 +643,7 @@
643
643
  "include": "#string"
644
644
  },
645
645
  {
646
- "match": "\\?|\\&|\\|",
646
+ "match": "[?\\&|]",
647
647
  "name": "keyword.operator.type.luau"
648
648
  },
649
649
  {
@@ -713,11 +713,11 @@
713
713
  },
714
714
  {
715
715
  "begin": "\\{",
716
- "end": "\\}",
716
+ "end": "}",
717
717
  "patterns": [
718
718
  {
719
719
  "begin": "\\[",
720
- "end": "\\]",
720
+ "end": "]",
721
721
  "patterns": [
722
722
  {
723
723
  "include": "#type_literal"