tm-grammars 1.22.18 → 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 +287 -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 +1226 -506
  234. package/package.json +1 -1
@@ -9,7 +9,7 @@
9
9
  "name": "riscv",
10
10
  "patterns": [
11
11
  {
12
- "match": "\\b(la|lb|lh|lw|ld|nop|li|mv|not|neg|negw|sext\\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz|bgt|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[r|w|s|c]|csr[w|s|c]i)\\b",
12
+ "match": "\\b(la|lb|lh|lw|ld|nop|li|mv|not|neg|negw|sext\\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz|bgt|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[r|wsc]|csr[w|sc]i)\\b",
13
13
  "name": "support.function.pseudo.riscv"
14
14
  },
15
15
  {
@@ -25,7 +25,7 @@
25
25
  "name": "support.function.riscv.m"
26
26
  },
27
27
  {
28
- "match": "\\b(c\\.addi4spn|c\\.fld|c\\.lq|c\\.lw|c\\.flw|c\\.ld|c\\.fsd|c\\.sq|c\\.sw|c\\.fsw|c\\.sd|c\\.nop|c\\.addi|c\\.jal|c\\.addiw|c\\.li|c\\.addi16sp|c\\.lui|c\\.srli|c\\.srli64|c\\.srai|c\\.srai64|c\\.andi|c\\.sub|c\\.xor|c\\.or|c\\.and|c\\.subw|c\\.addw|c\\.j|c\\.beqz|c\\.bnez)\\b",
28
+ "match": "\\b(c\\.(?:addi4spn|fld|lq|lw|flw|ld|fsd|sq|sw|fsw|sd|nop|addi|jal|addiw|li|addi16sp|lui|srli|srli64|srai|srai64|andi|sub|xor|or|and|subw|addw|j|beqz|bnez))\\b",
29
29
  "name": "support.function.riscv.c"
30
30
  },
31
31
  {
@@ -33,15 +33,15 @@
33
33
  "name": "support.function.riscv.a"
34
34
  },
35
35
  {
36
- "match": "\\b(flw|fsw|fmadd\\.s|fmsub\\.s|fnmsub\\.s|fnmadd\\.s|fadd\\.s|fsub\\.s|fmul\\.s|fdiv\\.s|fsqrt\\.s|fsgnj\\.s|fsgnjn\\.s|fsgnjx\\.s|fmin\\.s|fmax\\.s|fcvt\\.w\\.s|fcvt\\.wu\\.s|fmv\\.x\\.w|feq\\.s|flt\\.s|fle\\.s|fclass\\.s|fcvt\\.s\\.w|fcvt\\.s\\.wu|fmv\\.w\\.x|fcvt\\.l\\.s|fcvt\\.lu\\.s|fcvt\\.s\\.l|fcvt\\.s\\.lu)\\b",
36
+ "match": "\\b(f(?:lw|sw|madd\\.s|msub\\.s|nmsub\\.s|nmadd\\.s|add\\.s|sub\\.s|mul\\.s|div\\.s|sqrt\\.s|sgnj\\.s|sgnjn\\.s|sgnjx\\.s|min\\.s|max\\.s|cvt\\.w\\.s|cvt\\.wu\\.s|mv\\.x\\.w|eq\\.s|lt\\.s|le\\.s|class\\.s|cvt\\.s\\.w|cvt\\.s\\.wu|mv\\.w\\.x|cvt\\.l\\.s|cvt\\.lu\\.s|cvt\\.s\\.l|cvt\\.s\\.lu))\\b",
37
37
  "name": "support.function.riscv.f"
38
38
  },
39
39
  {
40
- "match": "\\b(fld|fsd|fmadd\\.d|fmsub\\.d|fnmsub\\.d|fnmadd\\.d|fadd\\.d|fsub\\.d|fmul\\.d|fdiv\\.d|fsqrt\\.d|fsgnj\\.d|fsgnjn\\.d|fsgnjx\\.d|fmin\\.d|fmax\\.d|fcvt\\.s\\.d|fcvt\\.d\\.s|feq\\.d|flt\\.d|fle\\.d|fclass\\.d|fcvt\\.w\\.d|fcvt\\.wu\\.d|fcvt\\.d\\.w|fcvt\\.d\\.wu|fcvt\\.l\\.d|fcvt\\.lu\\.d|fmv\\.x\\.d|fcvt\\.d\\.l|fcvt\\.d\\.lu|fmv\\.d\\.x)\\b",
40
+ "match": "\\b(f(?:ld|sd|madd\\.d|msub\\.d|nmsub\\.d|nmadd\\.d|add\\.d|sub\\.d|mul\\.d|div\\.d|sqrt\\.d|sgnj\\.d|sgnjn\\.d|sgnjx\\.d|min\\.d|max\\.d|cvt\\.s\\.d|cvt\\.d\\.s|eq\\.d|lt\\.d|le\\.d|class\\.d|cvt\\.w\\.d|cvt\\.wu\\.d|cvt\\.d\\.w|cvt\\.d\\.wu|cvt\\.l\\.d|cvt\\.lu\\.d|mv\\.x\\.d|cvt\\.d\\.l|cvt\\.d\\.lu|mv\\.d\\.x))\\b",
41
41
  "name": "support.function.riscv.d"
42
42
  },
43
43
  {
44
- "match": "\\.(skip|ascii|asciiz|byte|[2|4|8]byte|data|double|float|half|kdata|ktext|space|text|word|dword|dtprelword|dtpreldword|set\\s*(noat|at)|[s|u]leb128|string|incbin|zero|rodata|comm|common)\\b",
44
+ "match": "\\.(skip|ascii|asciiz|byte|[2|48]byte|data|double|float|half|kdata|ktext|space|text|word|dword|dtprelword|dtpreldword|set\\s*(noat|at)|[s|u]leb128|string|incbin|zero|rodata|comm|common)\\b",
45
45
  "name": "storage.type.riscv"
46
46
  },
47
47
  {
@@ -98,7 +98,7 @@
98
98
  "name": "constant.numeric.float.riscv"
99
99
  },
100
100
  {
101
- "match": "\\b(\\d+|0(x|X)[a-fA-F0-9]+)\\b",
101
+ "match": "\\b(\\d+|0([xX])\\h+)\\b",
102
102
  "name": "constant.numeric.integer.riscv"
103
103
  },
104
104
  {
@@ -144,17 +144,17 @@
144
144
  ]
145
145
  },
146
146
  {
147
- "begin": "\\/\\*",
148
- "end": "\\*\\/",
147
+ "begin": "/\\*",
148
+ "end": "\\*/",
149
149
  "name": "comment.block"
150
150
  },
151
151
  {
152
- "begin": "\\/\\/",
152
+ "begin": "//",
153
153
  "end": "\\n",
154
154
  "name": "comment.line.double-slash"
155
155
  },
156
156
  {
157
- "begin": "^\\s*\\#\\s*(define)\\s+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))(?:(\\()(\\s*\\g<id>\\s*((,)\\s*\\g<id>\\s*)*(?:\\.\\.\\.)?)(\\)))?",
157
+ "begin": "^\\s*#\\s*(define)\\s+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))(?:(\\()(\\s*\\g<id>\\s*((,)\\s*\\g<id>\\s*)*(?:\\.\\.\\.)?)(\\)))?",
158
158
  "beginCaptures": {
159
159
  "1": {
160
160
  "name": "keyword.control.import.define.c"
@@ -175,7 +175,7 @@
175
175
  "name": "punctuation.definition.parameters.c"
176
176
  }
177
177
  },
178
- "end": "(?=(?://|/\\*))|$",
178
+ "end": "(?=/[/*])|$",
179
179
  "name": "meta.preprocessor.macro.c",
180
180
  "patterns": [
181
181
  {
@@ -204,13 +204,13 @@
204
204
  ]
205
205
  },
206
206
  {
207
- "begin": "^\\s*#\\s*(include|import)\\b\\s+",
207
+ "begin": "^\\s*#\\s*(i(?:nclude|mport))\\b\\s+",
208
208
  "captures": {
209
209
  "1": {
210
210
  "name": "keyword.control.import.include.c"
211
211
  }
212
212
  },
213
- "end": "(?=(?://|/\\*))|$",
213
+ "end": "(?=/[/*])|$",
214
214
  "name": "meta.preprocessor.c.include",
215
215
  "patterns": [
216
216
  {
@@ -256,7 +256,7 @@
256
256
  "name": "keyword.control.import.c"
257
257
  }
258
258
  },
259
- "end": "(?=(?://|/\\*))|$",
259
+ "end": "(?=/[/*])|$",
260
260
  "name": "meta.preprocessor.c",
261
261
  "patterns": [
262
262
  {
@@ -275,7 +275,7 @@
275
275
  "end": "(?!\\G)",
276
276
  "patterns": [
277
277
  {
278
- "begin": "#|(\\/\\/)",
278
+ "begin": "#|(//)",
279
279
  "beginCaptures": {
280
280
  "0": {
281
281
  "name": "punctuation.definition.comment.riscv"
package/grammars/rst.json CHANGED
@@ -33,13 +33,13 @@
33
33
  },
34
34
  "block-comment": {
35
35
  "begin": "^(\\s*)\\.{2}(\\s+|$)",
36
- "end": "^(?=\\S)|^\\s*$",
36
+ "end": "^(?:(?=\\S)|\\s*$)",
37
37
  "name": "comment.block",
38
38
  "patterns": [
39
39
  {
40
40
  "begin": "^\\s{3,}(?=\\S)",
41
41
  "name": "comment.block",
42
- "while": "^\\s{3}.*|^\\s*$"
42
+ "while": "^(?:\\s{3}.*|\\s*$)"
43
43
  }
44
44
  ]
45
45
  },
@@ -177,11 +177,11 @@
177
177
  "citation": {
178
178
  "applyEndPatternLast": 0,
179
179
  "begin": "(?<=[\\s\"'(\\[{<]|^)`[^\\s`]",
180
- "end": "`_{,2}|^\\s*$",
180
+ "end": "`_{0,2}|^\\s*$",
181
181
  "name": "entity.name.tag"
182
182
  },
183
183
  "code-block": {
184
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)",
184
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)",
185
185
  "beginCaptures": {
186
186
  "2": {
187
187
  "name": "keyword.control"
@@ -195,7 +195,7 @@
195
195
  "while": "^\\1(?=\\s)|^\\s*$"
196
196
  },
197
197
  "code-block-cmake": {
198
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(cmake)\\s*$",
198
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(cmake)\\s*$",
199
199
  "beginCaptures": {
200
200
  "2": {
201
201
  "name": "keyword.control"
@@ -215,7 +215,7 @@
215
215
  "while": "^\\1(?=\\s)|^\\s*$"
216
216
  },
217
217
  "code-block-console": {
218
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(console|shell|bash)\\s*$",
218
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(console|shell|bash)\\s*$",
219
219
  "beginCaptures": {
220
220
  "2": {
221
221
  "name": "keyword.control"
@@ -235,7 +235,7 @@
235
235
  "while": "^\\1(?=\\s)|^\\s*$"
236
236
  },
237
237
  "code-block-cpp": {
238
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(c|c\\+\\+|cpp|C|C\\+\\+|CPP|Cpp)\\s*$",
238
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(c|c\\+\\+|cpp|C|C\\+\\+|CPP|Cpp)\\s*$",
239
239
  "beginCaptures": {
240
240
  "2": {
241
241
  "name": "keyword.control"
@@ -255,7 +255,7 @@
255
255
  "while": "^\\1(?=\\s)|^\\s*$"
256
256
  },
257
257
  "code-block-dts": {
258
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(dts|DTS|devicetree)\\s*$",
258
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(dts|DTS|devicetree)\\s*$",
259
259
  "beginCaptures": {
260
260
  "2": {
261
261
  "name": "keyword.control"
@@ -275,7 +275,7 @@
275
275
  "while": "^\\1(?=\\s)|^\\s*$"
276
276
  },
277
277
  "code-block-javascript": {
278
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(javascript)\\s*$",
278
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(javascript)\\s*$",
279
279
  "beginCaptures": {
280
280
  "2": {
281
281
  "name": "keyword.control"
@@ -295,7 +295,7 @@
295
295
  "while": "^\\1(?=\\s)|^\\s*$"
296
296
  },
297
297
  "code-block-kconfig": {
298
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*([kK]config)\\s*$",
298
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*([kK]config)\\s*$",
299
299
  "beginCaptures": {
300
300
  "2": {
301
301
  "name": "keyword.control"
@@ -315,7 +315,7 @@
315
315
  "while": "^\\1(?=\\s)|^\\s*$"
316
316
  },
317
317
  "code-block-py": {
318
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(python)\\s*$",
318
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(python)\\s*$",
319
319
  "beginCaptures": {
320
320
  "2": {
321
321
  "name": "keyword.control"
@@ -335,7 +335,7 @@
335
335
  "while": "^\\1(?=\\s)|^\\s*$"
336
336
  },
337
337
  "code-block-ruby": {
338
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(ruby)\\s*$",
338
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(ruby)\\s*$",
339
339
  "beginCaptures": {
340
340
  "2": {
341
341
  "name": "keyword.control"
@@ -355,7 +355,7 @@
355
355
  "while": "^\\1(?=\\s)|^\\s*$"
356
356
  },
357
357
  "code-block-yaml": {
358
- "begin": "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(ya?ml)\\s*$",
358
+ "begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(ya?ml)\\s*$",
359
359
  "beginCaptures": {
360
360
  "2": {
361
361
  "name": "keyword.control"
@@ -432,7 +432,7 @@
432
432
  "while": "^\\1(?=\\s)|^\\s*$"
433
433
  },
434
434
  "domain-cpp": {
435
- "begin": "^(\\s*)(\\.{2}\\s+(?:cpp|c):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\\s*(?:(@\\w+)|(.*))",
435
+ "begin": "^(\\s*)(\\.{2}\\s+c(?:pp|):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\\s*(?:(@\\w+)|(.*))",
436
436
  "beginCaptures": {
437
437
  "2": {
438
438
  "name": "keyword.control"
@@ -527,11 +527,11 @@
527
527
  "name": "constant.character.escape"
528
528
  },
529
529
  "footnote": {
530
- "match": "^\\s*\\.{2}\\s+\\[(?:[\\w\\.-]+|[#*]|#\\w+)\\]\\s+",
530
+ "match": "^\\s*\\.{2}\\s+\\[(?:[\\w.\\-]+|[#*]|#\\w+)]\\s+",
531
531
  "name": "entity.name.tag"
532
532
  },
533
533
  "footnote-ref": {
534
- "match": "\\[(?:[\\w\\.-]+|[#*])\\]_",
534
+ "match": "\\[(?:[\\w.\\-]+|[#*])]_",
535
535
  "name": "entity.name.tag"
536
536
  },
537
537
  "ignore": {
@@ -543,13 +543,13 @@
543
543
  "match": "<[`*]+>"
544
544
  },
545
545
  {
546
- "match": "{[`*]+}"
546
+ "match": "\\{[`*]+}"
547
547
  },
548
548
  {
549
549
  "match": "\\([`*]+\\)"
550
550
  },
551
551
  {
552
- "match": "\\[[`*]+\\]"
552
+ "match": "\\[[`*]+]"
553
553
  },
554
554
  {
555
555
  "match": "\"[`*]+\""
@@ -606,7 +606,7 @@
606
606
  "name": "keyword.control"
607
607
  },
608
608
  "list": {
609
- "match": "^\\s*(\\d+\\.|\\* -|[a-zA-Z#]\\.|[iIvVxXmMcC]+\\.|\\(\\d+\\)|\\d+\\)|[*+-])\\s+",
609
+ "match": "^\\s*(\\d+\\.|\\* -|[a-zA-Z#]\\.|[iIvVxXmMcC]+\\.|\\(\\d+\\)|\\d+\\)|[*+\\-])\\s+",
610
610
  "name": "keyword.control"
611
611
  },
612
612
  "literal": {
@@ -637,7 +637,7 @@
637
637
  "while": "^\\1(?=\\s)|^\\s*$"
638
638
  },
639
639
  "macro": {
640
- "match": "\\|[^\\|]+\\|",
640
+ "match": "\\|[^|]+\\|",
641
641
  "name": "entity.name.tag"
642
642
  },
643
643
  "monospaced": {
@@ -646,7 +646,7 @@
646
646
  "name": "string.interpolated"
647
647
  },
648
648
  "options-list": {
649
- "match": "(?:(?:^|,\\s+)(?:[-+]\\w|--?[a-zA-Z][\\w-]+|/\\w+)(?:[ =](?:\\w+|<[^<>]+?>))?)+(?= |\\t|$)",
649
+ "match": "(?:(?:^|,\\s+)(?:[\\-+]\\w|--?[a-zA-Z][\\w\\-]+|/\\w+)(?:[ =](?:\\w+|<[^<>]+?>))?)+(?= |\\t|$)",
650
650
  "name": "variable.parameter"
651
651
  },
652
652
  "raw-html": {
@@ -686,7 +686,7 @@
686
686
  ]
687
687
  },
688
688
  "reference": {
689
- "match": "[\\w-]*[a-zA-Z\\d-]__?\\b",
689
+ "match": "[\\w\\-]*[a-zA-Z\\d\\-]__?\\b",
690
690
  "name": "entity.name.tag"
691
691
  },
692
692
  "replace-include": {
@@ -701,7 +701,7 @@
701
701
  "name": "keyword.control"
702
702
  }
703
703
  },
704
- "match": "^\\s*(\\.{2})\\s+(\\|[^\\|]+\\|)\\s+(replace::)"
704
+ "match": "^\\s*(\\.{2})\\s+(\\|[^|]+\\|)\\s+(replace::)"
705
705
  },
706
706
  "simple-table": {
707
707
  "match": "^[=\\s]+$",
@@ -712,7 +712,7 @@
712
712
  "name": "entity.name.tag"
713
713
  },
714
714
  "table": {
715
- "begin": "^\\s*\\+[=+-]+\\+\\s*$",
715
+ "begin": "^\\s*\\+[=+\\-]+\\+\\s*$",
716
716
  "beginCaptures": {
717
717
  "0": {
718
718
  "name": "keyword.control.table"
@@ -721,13 +721,13 @@
721
721
  "end": "^(?![+|])",
722
722
  "patterns": [
723
723
  {
724
- "match": "[=+|-]",
724
+ "match": "[=+|\\-]",
725
725
  "name": "keyword.control.table"
726
726
  }
727
727
  ]
728
728
  },
729
729
  "title": {
730
- "match": "^(\\*{3,}|#{3,}|\\={3,}|~{3,}|\\+{3,}|-{3,}|`{3,}|\\^{3,}|:{3,}|\"{3,}|_{3,}|'{3,})$",
730
+ "match": "^(\\*{3,}|#{3,}|={3,}|~{3,}|\\+{3,}|-{3,}|`{3,}|\\^{3,}|:{3,}|\"{3,}|_{3,}|'{3,})$",
731
731
  "name": "markup.heading"
732
732
  }
733
733
  },