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
@@ -20,7 +20,7 @@
20
20
  "name": "entity.name.type.instance.coffee"
21
21
  }
22
22
  },
23
- "match": "(new)\\s+(?:(?:(class)\\s+(\\w+(?:\\.\\w*)*)?)|(\\w+(?:\\.\\w*)*))",
23
+ "match": "(new)\\s+(?:(class)\\s+(\\w+(?:\\.\\w*)*)?|(\\w+(?:\\.\\w*)*))",
24
24
  "name": "meta.class.instance.constructor.coffee"
25
25
  },
26
26
  {
@@ -170,19 +170,19 @@
170
170
  ]
171
171
  },
172
172
  {
173
- "match": "\\b(?<![\\.\\$])(break|by|catch|continue|else|finally|for|in|of|if|return|switch|then|throw|try|unless|when|while|until|loop|do|export|import|default|from|as|yield|async|await|(?<=for)\\s+own)(?!\\s*:)\\b",
173
+ "match": "\\b(?<![.$])(break|by|catch|continue|else|finally|for|in|of|if|return|switch|then|throw|try|unless|when|while|until|loop|do|export|import|default|from|as|yield|async|await|(?<=for)\\s+own)(?!\\s*:)\\b",
174
174
  "name": "keyword.control.coffee"
175
175
  },
176
176
  {
177
- "match": "\\b(?<![\\.\\$])(delete|instanceof|new|typeof)(?!\\s*:)\\b",
177
+ "match": "\\b(?<![.$])(delete|instanceof|new|typeof)(?!\\s*:)\\b",
178
178
  "name": "keyword.operator.$1.coffee"
179
179
  },
180
180
  {
181
- "match": "\\b(?<![\\.\\$])(case|function|var|void|with|const|let|enum|native|__hasProp|__extends|__slice|__bind|__indexOf|implements|interface|package|private|protected|public|static)(?!\\s*:)\\b",
181
+ "match": "\\b(?<![.$])(case|function|var|void|with|const|let|enum|native|__hasProp|__extends|__slice|__bind|__indexOf|implements|interface|package|private|protected|public|static)(?!\\s*:)\\b",
182
182
  "name": "keyword.reserved.coffee"
183
183
  },
184
184
  {
185
- "begin": "(?<=\\s|^)((@)?[a-zA-Z_$][\\w$]*)\\s*([:=])\\s*(?=(\\([^\\(\\)]*\\)\\s*)?[=-]>)",
185
+ "begin": "(?<=\\s|^)((@)?[a-zA-Z_$][\\w$]*)\\s*([:=])\\s*(?=(\\([^()]*\\)\\s*)?[=\\-]>)",
186
186
  "beginCaptures": {
187
187
  "1": {
188
188
  "name": "entity.name.function.coffee"
@@ -194,7 +194,7 @@
194
194
  "name": "keyword.operator.assignment.coffee"
195
195
  }
196
196
  },
197
- "end": "[=-]>",
197
+ "end": "[=\\-]>",
198
198
  "endCaptures": {
199
199
  "0": {
200
200
  "name": "storage.type.function.coffee"
@@ -208,7 +208,7 @@
208
208
  ]
209
209
  },
210
210
  {
211
- "begin": "(?<=\\s|^)(?:((')([^']*?)('))|((\")([^\"]*?)(\")))\\s*([:=])\\s*(?=(\\([^\\(\\)]*\\)\\s*)?[=-]>)",
211
+ "begin": "(?<=\\s|^)(?:((')([^']*?)('))|((\")([^\"]*?)(\")))\\s*([:=])\\s*(?=(\\([^()]*\\)\\s*)?[=\\-]>)",
212
212
  "beginCaptures": {
213
213
  "1": {
214
214
  "name": "string.quoted.single.coffee"
@@ -238,7 +238,7 @@
238
238
  "name": "keyword.operator.assignment.coffee"
239
239
  }
240
240
  },
241
- "end": "[=-]>",
241
+ "end": "[=\\-]>",
242
242
  "endCaptures": {
243
243
  "0": {
244
244
  "name": "storage.type.function.coffee"
@@ -252,8 +252,8 @@
252
252
  ]
253
253
  },
254
254
  {
255
- "begin": "(?=(\\([^\\(\\)]*\\)\\s*)?[=-]>)",
256
- "end": "[=-]>",
255
+ "begin": "(?=(\\([^()]*\\)\\s*)?[=\\-]>)",
256
+ "end": "[=\\-]>",
257
257
  "endCaptures": {
258
258
  "0": {
259
259
  "name": "storage.type.function.coffee"
@@ -267,7 +267,7 @@
267
267
  ]
268
268
  },
269
269
  {
270
- "begin": "(?<=\\s|^)({)(?=[^'\"#]+?}[\\s\\]}]*=)",
270
+ "begin": "(?<=\\s|^)(\\{)(?=[^'\"#]+?}[\\s\\]}]*=)",
271
271
  "beginCaptures": {
272
272
  "1": {
273
273
  "name": "punctuation.definition.destructuring.begin.bracket.curly.coffee"
@@ -291,13 +291,13 @@
291
291
  ]
292
292
  },
293
293
  {
294
- "begin": "(?<=\\s|^)(\\[)(?=[^'\"#]+?\\][\\s\\]}]*=)",
294
+ "begin": "(?<=\\s|^)(\\[)(?=[^'\"#]+?][\\s\\]}]*=)",
295
295
  "beginCaptures": {
296
296
  "1": {
297
297
  "name": "punctuation.definition.destructuring.begin.bracket.square.coffee"
298
298
  }
299
299
  },
300
- "end": "\\]",
300
+ "end": "]",
301
301
  "endCaptures": {
302
302
  "0": {
303
303
  "name": "punctuation.definition.destructuring.end.bracket.square.coffee"
@@ -346,7 +346,7 @@
346
346
  "name": "entity.other.inherited-class.coffee"
347
347
  }
348
348
  },
349
- "match": "(?<=\\s|^|\\[|\\()(class)\\s+(extends)\\s+(@?[a-zA-Z\\$\\._][\\w\\.]*)",
349
+ "match": "(?<=\\s|^|[\\[(])(class)\\s+(extends)\\s+(@?[a-zA-Z$._][\\w.]*)",
350
350
  "name": "meta.class.coffee"
351
351
  },
352
352
  {
@@ -364,7 +364,7 @@
364
364
  "name": "entity.other.inherited-class.coffee"
365
365
  }
366
366
  },
367
- "match": "(?<=\\s|^|\\[|\\()(class\\b)\\s+(@?[a-zA-Z\\$_][\\w\\.]*)?(?:\\s+(extends)\\s+(@?[a-zA-Z\\$\\._][\\w\\.]*))?",
367
+ "match": "(?<=\\s|^|[\\[(])(class\\b)\\s+(@?[a-zA-Z$_][\\w.]*)?(?:\\s+(extends)\\s+(@?[a-zA-Z$._][\\w.]*))?",
368
368
  "name": "meta.class.coffee"
369
369
  },
370
370
  {
@@ -446,7 +446,7 @@
446
446
  "name": "punctuation.separator.delimiter.coffee"
447
447
  },
448
448
  {
449
- "begin": "{",
449
+ "begin": "\\{",
450
450
  "beginCaptures": {
451
451
  "0": {
452
452
  "name": "meta.brace.curly.coffee"
@@ -471,7 +471,7 @@
471
471
  "name": "punctuation.definition.array.begin.bracket.square.coffee"
472
472
  }
473
473
  },
474
- "end": "\\]",
474
+ "end": "]",
475
475
  "endCaptures": {
476
476
  "0": {
477
477
  "name": "punctuation.definition.array.end.bracket.square.coffee"
@@ -544,8 +544,8 @@
544
544
  ]
545
545
  },
546
546
  {
547
- "begin": "(?=(@|@?[\\w$]+|[=-]>|\\-\\d|\\[|{|\"|'))",
548
- "end": "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*(}|\\]|\\)|#|$))",
547
+ "begin": "(?=(@|@?[\\w$]+|[=\\-]>|-\\d|[\\[{\"']))",
548
+ "end": "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*([}\\])#]|$))",
549
549
  "name": "meta.arguments.coffee",
550
550
  "patterns": [
551
551
  {
@@ -578,7 +578,7 @@
578
578
  "name": "punctuation.definition.escape.backslash.coffee"
579
579
  }
580
580
  },
581
- "match": "(\\\\)(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
581
+ "match": "(\\\\)(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
582
582
  "name": "constant.character.escape.backslash.coffee"
583
583
  },
584
584
  {
@@ -626,7 +626,7 @@
626
626
  ]
627
627
  },
628
628
  {
629
- "begin": "(@)?([\\w$]+)\\s*(?=\\s+(?!(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))(?=(@?[\\w$]+|[=-]>|\\-\\d|\\[|{|\"|')))",
629
+ "begin": "(@)?([\\w$]+)\\s*(?=\\s+(?!(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))(?=(@?[\\w$]+|[=\\-]>|-\\d|[\\[{\"'])))",
630
630
  "beginCaptures": {
631
631
  "1": {
632
632
  "name": "variable.other.readwrite.instance.coffee"
@@ -639,7 +639,7 @@
639
639
  ]
640
640
  }
641
641
  },
642
- "end": "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*(}|\\]|\\)|#|$))",
642
+ "end": "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*([}\\])#]|$))",
643
643
  "name": "meta.function-call.coffee",
644
644
  "patterns": [
645
645
  {
@@ -714,7 +714,7 @@
714
714
  "heregexp": {
715
715
  "patterns": [
716
716
  {
717
- "match": "\\\\[bB]|\\^|\\$",
717
+ "match": "\\\\[bB]|[\\^$]",
718
718
  "name": "keyword.control.anchor.regexp"
719
719
  },
720
720
  {
@@ -722,7 +722,7 @@
722
722
  "name": "keyword.other.back-reference.regexp"
723
723
  },
724
724
  {
725
- "match": "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??",
725
+ "match": "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)}\\??",
726
726
  "name": "keyword.operator.quantifier.regexp"
727
727
  },
728
728
  {
@@ -785,7 +785,7 @@
785
785
  "name": "keyword.operator.negation.regexp"
786
786
  }
787
787
  },
788
- "end": "(\\])",
788
+ "end": "(])",
789
789
  "endCaptures": {
790
790
  "1": {
791
791
  "name": "punctuation.definition.character-class.regexp"
@@ -814,7 +814,7 @@
814
814
  "name": "constant.character.escape.backslash.regexp"
815
815
  }
816
816
  },
817
- "match": "(?:.|(\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\c[A-Z])|(\\\\.))",
817
+ "match": "(?:.|(\\\\(?:[0-7]{3}|x\\h{2}|u\\h{4}))|(\\\\c[A-Z])|(\\\\.))-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x\\h{2}|u\\h{4}))|(\\\\c[A-Z])|(\\\\.))",
818
818
  "name": "constant.other.character-class.range.regexp"
819
819
  },
820
820
  {
@@ -836,7 +836,7 @@
836
836
  "instance_variable": {
837
837
  "patterns": [
838
838
  {
839
- "match": "(@)([a-zA-Z_\\$]\\w*)?",
839
+ "match": "(@)([a-zA-Z_$]\\w*)?",
840
840
  "name": "variable.other.readwrite.instance.coffee"
841
841
  }
842
842
  ]
@@ -844,13 +844,13 @@
844
844
  "interpolated_coffee": {
845
845
  "patterns": [
846
846
  {
847
- "begin": "\\#\\{",
847
+ "begin": "#\\{",
848
848
  "captures": {
849
849
  "0": {
850
850
  "name": "punctuation.section.embedded.coffee"
851
851
  }
852
852
  },
853
- "end": "\\}",
853
+ "end": "}",
854
854
  "name": "source.coffee.embedded.source",
855
855
  "patterns": [
856
856
  {
@@ -881,7 +881,7 @@
881
881
  "name": "keyword.operator.assignment.coffee"
882
882
  }
883
883
  },
884
- "match": "(?:^|\\s+)([-\\w.]+)\\s*(=)"
884
+ "match": "(?:^|\\s+)([\\-\\w.]+)\\s*(=)"
885
885
  },
886
886
  {
887
887
  "include": "#double_quoted_string"
@@ -897,7 +897,7 @@
897
897
  "jsx-end-tag": {
898
898
  "patterns": [
899
899
  {
900
- "begin": "(</)([-\\w\\.]+)",
900
+ "begin": "(</)([\\-\\w.]+)",
901
901
  "beginCaptures": {
902
902
  "1": {
903
903
  "name": "punctuation.definition.tag.coffee"
@@ -912,7 +912,7 @@
912
912
  ]
913
913
  },
914
914
  "jsx-expression": {
915
- "begin": "{",
915
+ "begin": "\\{",
916
916
  "beginCaptures": {
917
917
  "0": {
918
918
  "name": "meta.brace.curly.coffee"
@@ -936,7 +936,7 @@
936
936
  "jsx-tag": {
937
937
  "patterns": [
938
938
  {
939
- "begin": "(<)([-\\w\\.]+)",
939
+ "begin": "(<)([\\-\\w.]+)",
940
940
  "beginCaptures": {
941
941
  "1": {
942
942
  "name": "punctuation.definition.tag.coffee"
@@ -983,7 +983,7 @@
983
983
  ]
984
984
  },
985
985
  {
986
- "begin": "(?:(\\.)|(::))\\s*([\\w$]+)\\s*(?=\\s+(?!(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))(?=(@|@?[\\w$]+|[=-]>|\\-\\d|\\[|{|\"|')))",
986
+ "begin": "(?:(\\.)|(::))\\s*([\\w$]+)\\s*(?=\\s+(?!(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))(?=(@|@?[\\w$]+|[=\\-]>|-\\d|[\\[{\"'])))",
987
987
  "beginCaptures": {
988
988
  "1": {
989
989
  "name": "punctuation.separator.method.period.coffee"
@@ -999,7 +999,7 @@
999
999
  ]
1000
1000
  }
1001
1001
  },
1002
- "end": "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*(}|\\]|\\)|#|$))",
1002
+ "end": "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*([}\\])#]|$))",
1003
1003
  "name": "meta.method-call.coffee",
1004
1004
  "patterns": [
1005
1005
  {
@@ -1036,15 +1036,15 @@
1036
1036
  "numbers": {
1037
1037
  "patterns": [
1038
1038
  {
1039
- "match": "\\b(?<!\\$)0(x|X)[0-9a-fA-F]+\\b(?!\\$)",
1039
+ "match": "\\b(?<!\\$)0([xX])\\h+\\b(?!\\$)",
1040
1040
  "name": "constant.numeric.hex.coffee"
1041
1041
  },
1042
1042
  {
1043
- "match": "\\b(?<!\\$)0(b|B)[01]+\\b(?!\\$)",
1043
+ "match": "\\b(?<!\\$)0([bB])[01]+\\b(?!\\$)",
1044
1044
  "name": "constant.numeric.binary.coffee"
1045
1045
  },
1046
1046
  {
1047
- "match": "\\b(?<!\\$)0(o|O)?[0-7]+\\b(?!\\$)",
1047
+ "match": "\\b(?<!\\$)0([oO])?[0-7]+\\b(?!\\$)",
1048
1048
  "name": "constant.numeric.octal.coffee"
1049
1049
  },
1050
1050
  {
@@ -1071,7 +1071,7 @@
1071
1071
  "name": "punctuation.separator.decimal.period.coffee"
1072
1072
  }
1073
1073
  },
1074
- "match": "(?<!\\$)(?:(?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)|(?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)|(?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)|(?:\\b[0-9]+[eE][+-]?[0-9]+\\b)|(?:\\b[0-9]+(\\.)[0-9]+\\b)|(?:\\b[0-9]+(?=\\.{2,3}))|(?:\\b[0-9]+(\\.)\\B)|(?:\\B(\\.)[0-9]+\\b)|(?:\\b[0-9]+\\b(?!\\.)))(?!\\$)"
1074
+ "match": "(?<!\\$)(?:\\b[0-9]+(\\.)[0-9]+[eE][+\\-]?[0-9]+\\b|\\b[0-9]+(\\.)[eE][+\\-]?[0-9]+\\b|\\B(\\.)[0-9]+[eE][+\\-]?[0-9]+\\b|\\b[0-9]+[eE][+\\-]?[0-9]+\\b|\\b[0-9]+(\\.)[0-9]+\\b|\\b[0-9]+(?=\\.{2,3})|\\b[0-9]+(\\.)\\B|\\B(\\.)[0-9]+\\b|\\b[0-9]+\\b(?!\\.))(?!\\$)"
1075
1075
  }
1076
1076
  ]
1077
1077
  },
@@ -1127,7 +1127,7 @@
1127
1127
  "name": "keyword.operator.bitwise.shift.coffee"
1128
1128
  },
1129
1129
  {
1130
- "match": "!=|<=|>=|==|<|>",
1130
+ "match": "!=|<=|>=|==|[<>]",
1131
1131
  "name": "keyword.operator.comparison.coffee"
1132
1132
  },
1133
1133
  {
@@ -1135,7 +1135,7 @@
1135
1135
  "name": "keyword.operator.logical.coffee"
1136
1136
  },
1137
1137
  {
1138
- "match": "&|\\||\\^|~",
1138
+ "match": "[\\&|\\^~]",
1139
1139
  "name": "keyword.operator.bitwise.coffee"
1140
1140
  },
1141
1141
  {
@@ -1166,7 +1166,7 @@
1166
1166
  "name": "keyword.operator.existential.coffee"
1167
1167
  },
1168
1168
  {
1169
- "match": "%|\\*|/|-|\\+",
1169
+ "match": "[%*/\\-+]",
1170
1170
  "name": "keyword.operator.coffee"
1171
1171
  },
1172
1172
  {
@@ -1178,7 +1178,7 @@
1178
1178
  "name": "keyword.operator.comparison.coffee"
1179
1179
  }
1180
1180
  },
1181
- "match": "\\b(?<![\\.\\$])(?:(and|or|not)|(is|isnt))(?!\\s*:)\\b"
1181
+ "match": "\\b(?<![.$])(?:(and|or|not)|(is(?:|nt)))(?!\\s*:)\\b"
1182
1182
  }
1183
1183
  ]
1184
1184
  },
@@ -1263,7 +1263,7 @@
1263
1263
  "name": "constant.character.character-class.regexp"
1264
1264
  },
1265
1265
  {
1266
- "match": "\\\\([0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4})",
1266
+ "match": "\\\\([0-7]{3}|x\\h{2}|u\\h{4})",
1267
1267
  "name": "constant.character.numeric.regexp"
1268
1268
  },
1269
1269
  {
@@ -1299,7 +1299,7 @@
1299
1299
  "name": "punctuation.definition.escape.backslash.coffee"
1300
1300
  }
1301
1301
  },
1302
- "match": "(\\\\)(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
1302
+ "match": "(\\\\)(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
1303
1303
  "name": "constant.character.escape.backslash.coffee"
1304
1304
  }
1305
1305
  ]