@shikijs/langs 1.25.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 (637) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +7 -0
  3. package/dist/1c-query.d.mts +3 -0
  4. package/dist/1c-query.mjs +2 -0
  5. package/dist/1c.d.mts +3 -0
  6. package/dist/1c.mjs +2 -0
  7. package/dist/abap.d.mts +3 -0
  8. package/dist/abap.mjs +5 -0
  9. package/dist/actionscript-3.d.mts +3 -0
  10. package/dist/actionscript-3.mjs +5 -0
  11. package/dist/ada.d.mts +3 -0
  12. package/dist/ada.mjs +5 -0
  13. package/dist/adoc.d.mts +3 -0
  14. package/dist/adoc.mjs +2 -0
  15. package/dist/angular-expression.d.mts +3 -0
  16. package/dist/angular-expression.mjs +5 -0
  17. package/dist/angular-html.d.mts +3 -0
  18. package/dist/angular-html.mjs +16 -0
  19. package/dist/angular-inline-style.d.mts +3 -0
  20. package/dist/angular-inline-style.mjs +8 -0
  21. package/dist/angular-inline-template.d.mts +3 -0
  22. package/dist/angular-inline-template.mjs +10 -0
  23. package/dist/angular-let-declaration.d.mts +3 -0
  24. package/dist/angular-let-declaration.mjs +8 -0
  25. package/dist/angular-template-blocks.d.mts +3 -0
  26. package/dist/angular-template-blocks.mjs +10 -0
  27. package/dist/angular-template.d.mts +3 -0
  28. package/dist/angular-template.mjs +8 -0
  29. package/dist/angular-ts.d.mts +3 -0
  30. package/dist/angular-ts.mjs +18 -0
  31. package/dist/apache.d.mts +3 -0
  32. package/dist/apache.mjs +5 -0
  33. package/dist/apex.d.mts +3 -0
  34. package/dist/apex.mjs +5 -0
  35. package/dist/apl.d.mts +3 -0
  36. package/dist/apl.mjs +16 -0
  37. package/dist/applescript.d.mts +3 -0
  38. package/dist/applescript.mjs +5 -0
  39. package/dist/ara.d.mts +3 -0
  40. package/dist/ara.mjs +5 -0
  41. package/dist/asciidoc.d.mts +3 -0
  42. package/dist/asciidoc.mjs +5 -0
  43. package/dist/asm.d.mts +3 -0
  44. package/dist/asm.mjs +5 -0
  45. package/dist/astro.d.mts +3 -0
  46. package/dist/astro.mjs +16 -0
  47. package/dist/awk.d.mts +3 -0
  48. package/dist/awk.mjs +5 -0
  49. package/dist/ballerina.d.mts +3 -0
  50. package/dist/ballerina.mjs +5 -0
  51. package/dist/bash.d.mts +3 -0
  52. package/dist/bash.mjs +2 -0
  53. package/dist/bat.d.mts +3 -0
  54. package/dist/bat.mjs +5 -0
  55. package/dist/batch.d.mts +3 -0
  56. package/dist/batch.mjs +2 -0
  57. package/dist/be.d.mts +3 -0
  58. package/dist/be.mjs +2 -0
  59. package/dist/beancount.d.mts +3 -0
  60. package/dist/beancount.mjs +5 -0
  61. package/dist/berry.d.mts +3 -0
  62. package/dist/berry.mjs +5 -0
  63. package/dist/bibtex.d.mts +3 -0
  64. package/dist/bibtex.mjs +5 -0
  65. package/dist/bicep.d.mts +3 -0
  66. package/dist/bicep.mjs +5 -0
  67. package/dist/blade.d.mts +3 -0
  68. package/dist/blade.mjs +18 -0
  69. package/dist/bsl.d.mts +3 -0
  70. package/dist/bsl.mjs +8 -0
  71. package/dist/c.d.mts +3 -0
  72. package/dist/c.mjs +5 -0
  73. package/dist/cadence.d.mts +3 -0
  74. package/dist/cadence.mjs +5 -0
  75. package/dist/cairo.d.mts +3 -0
  76. package/dist/cairo.mjs +8 -0
  77. package/dist/cdc.d.mts +3 -0
  78. package/dist/cdc.mjs +2 -0
  79. package/dist/clarity.d.mts +3 -0
  80. package/dist/clarity.mjs +5 -0
  81. package/dist/clj.d.mts +3 -0
  82. package/dist/clj.mjs +2 -0
  83. package/dist/clojure.d.mts +3 -0
  84. package/dist/clojure.mjs +5 -0
  85. package/dist/closure-templates.d.mts +3 -0
  86. package/dist/closure-templates.mjs +2 -0
  87. package/dist/cmake.d.mts +3 -0
  88. package/dist/cmake.mjs +5 -0
  89. package/dist/cmd.d.mts +3 -0
  90. package/dist/cmd.mjs +2 -0
  91. package/dist/cobol.d.mts +3 -0
  92. package/dist/cobol.mjs +10 -0
  93. package/dist/codeowners.d.mts +3 -0
  94. package/dist/codeowners.mjs +5 -0
  95. package/dist/codeql.d.mts +3 -0
  96. package/dist/codeql.mjs +5 -0
  97. package/dist/coffee.d.mts +3 -0
  98. package/dist/coffee.mjs +8 -0
  99. package/dist/coffeescript.d.mts +3 -0
  100. package/dist/coffeescript.mjs +2 -0
  101. package/dist/common-lisp.d.mts +3 -0
  102. package/dist/common-lisp.mjs +5 -0
  103. package/dist/console.d.mts +3 -0
  104. package/dist/console.mjs +2 -0
  105. package/dist/coq.d.mts +3 -0
  106. package/dist/coq.mjs +5 -0
  107. package/dist/cpp-macro.d.mts +3 -0
  108. package/dist/cpp-macro.mjs +12 -0
  109. package/dist/cpp.d.mts +3 -0
  110. package/dist/cpp.mjs +14 -0
  111. package/dist/cql.d.mts +3 -0
  112. package/dist/cql.mjs +2 -0
  113. package/dist/crystal.d.mts +3 -0
  114. package/dist/crystal.mjs +18 -0
  115. package/dist/cs.d.mts +3 -0
  116. package/dist/cs.mjs +2 -0
  117. package/dist/csharp.d.mts +3 -0
  118. package/dist/csharp.mjs +5 -0
  119. package/dist/css.d.mts +3 -0
  120. package/dist/css.mjs +5 -0
  121. package/dist/csv.d.mts +3 -0
  122. package/dist/csv.mjs +5 -0
  123. package/dist/cue.d.mts +3 -0
  124. package/dist/cue.mjs +5 -0
  125. package/dist/cypher.d.mts +3 -0
  126. package/dist/cypher.mjs +5 -0
  127. package/dist/d.d.mts +3 -0
  128. package/dist/d.mjs +5 -0
  129. package/dist/dart.d.mts +3 -0
  130. package/dist/dart.mjs +5 -0
  131. package/dist/dax.d.mts +3 -0
  132. package/dist/dax.mjs +5 -0
  133. package/dist/desktop.d.mts +3 -0
  134. package/dist/desktop.mjs +5 -0
  135. package/dist/diff.d.mts +3 -0
  136. package/dist/diff.mjs +5 -0
  137. package/dist/docker.d.mts +3 -0
  138. package/dist/docker.mjs +5 -0
  139. package/dist/dockerfile.d.mts +3 -0
  140. package/dist/dockerfile.mjs +2 -0
  141. package/dist/dotenv.d.mts +3 -0
  142. package/dist/dotenv.mjs +5 -0
  143. package/dist/dream-maker.d.mts +3 -0
  144. package/dist/dream-maker.mjs +5 -0
  145. package/dist/edge.d.mts +3 -0
  146. package/dist/edge.mjs +12 -0
  147. package/dist/elisp.d.mts +3 -0
  148. package/dist/elisp.mjs +2 -0
  149. package/dist/elixir.d.mts +3 -0
  150. package/dist/elixir.mjs +8 -0
  151. package/dist/elm.d.mts +3 -0
  152. package/dist/elm.mjs +8 -0
  153. package/dist/emacs-lisp.d.mts +3 -0
  154. package/dist/emacs-lisp.mjs +5 -0
  155. package/dist/erb.d.mts +3 -0
  156. package/dist/erb.mjs +10 -0
  157. package/dist/erl.d.mts +3 -0
  158. package/dist/erl.mjs +2 -0
  159. package/dist/erlang.d.mts +3 -0
  160. package/dist/erlang.mjs +5 -0
  161. package/dist/es-tag-css.d.mts +3 -0
  162. package/dist/es-tag-css.mjs +12 -0
  163. package/dist/es-tag-glsl.d.mts +3 -0
  164. package/dist/es-tag-glsl.mjs +12 -0
  165. package/dist/es-tag-html.d.mts +3 -0
  166. package/dist/es-tag-html.mjs +12 -0
  167. package/dist/es-tag-sql.d.mts +3 -0
  168. package/dist/es-tag-sql.mjs +10 -0
  169. package/dist/es-tag-xml.d.mts +3 -0
  170. package/dist/es-tag-xml.mjs +8 -0
  171. package/dist/f.d.mts +3 -0
  172. package/dist/f.mjs +2 -0
  173. package/dist/f03.d.mts +3 -0
  174. package/dist/f03.mjs +2 -0
  175. package/dist/f08.d.mts +3 -0
  176. package/dist/f08.mjs +2 -0
  177. package/dist/f18.d.mts +3 -0
  178. package/dist/f18.mjs +2 -0
  179. package/dist/f77.d.mts +3 -0
  180. package/dist/f77.mjs +2 -0
  181. package/dist/f90.d.mts +3 -0
  182. package/dist/f90.mjs +2 -0
  183. package/dist/f95.d.mts +3 -0
  184. package/dist/f95.mjs +2 -0
  185. package/dist/fennel.d.mts +3 -0
  186. package/dist/fennel.mjs +5 -0
  187. package/dist/fish.d.mts +3 -0
  188. package/dist/fish.mjs +5 -0
  189. package/dist/fluent.d.mts +3 -0
  190. package/dist/fluent.mjs +5 -0
  191. package/dist/for.d.mts +3 -0
  192. package/dist/for.mjs +2 -0
  193. package/dist/fortran-fixed-form.d.mts +3 -0
  194. package/dist/fortran-fixed-form.mjs +8 -0
  195. package/dist/fortran-free-form.d.mts +3 -0
  196. package/dist/fortran-free-form.mjs +5 -0
  197. package/dist/fs.d.mts +3 -0
  198. package/dist/fs.mjs +2 -0
  199. package/dist/fsharp.d.mts +3 -0
  200. package/dist/fsharp.mjs +8 -0
  201. package/dist/fsl.d.mts +3 -0
  202. package/dist/fsl.mjs +2 -0
  203. package/dist/ftl.d.mts +3 -0
  204. package/dist/ftl.mjs +2 -0
  205. package/dist/gdresource.d.mts +3 -0
  206. package/dist/gdresource.mjs +10 -0
  207. package/dist/gdscript.d.mts +3 -0
  208. package/dist/gdscript.mjs +5 -0
  209. package/dist/gdshader.d.mts +3 -0
  210. package/dist/gdshader.mjs +5 -0
  211. package/dist/genie.d.mts +3 -0
  212. package/dist/genie.mjs +5 -0
  213. package/dist/gherkin.d.mts +3 -0
  214. package/dist/gherkin.mjs +5 -0
  215. package/dist/git-commit.d.mts +3 -0
  216. package/dist/git-commit.mjs +8 -0
  217. package/dist/git-rebase.d.mts +3 -0
  218. package/dist/git-rebase.mjs +8 -0
  219. package/dist/gjs.d.mts +3 -0
  220. package/dist/gjs.mjs +2 -0
  221. package/dist/gleam.d.mts +3 -0
  222. package/dist/gleam.mjs +5 -0
  223. package/dist/glimmer-js.d.mts +3 -0
  224. package/dist/glimmer-js.mjs +14 -0
  225. package/dist/glimmer-ts.d.mts +3 -0
  226. package/dist/glimmer-ts.mjs +14 -0
  227. package/dist/glsl.d.mts +3 -0
  228. package/dist/glsl.mjs +8 -0
  229. package/dist/gnuplot.d.mts +3 -0
  230. package/dist/gnuplot.mjs +5 -0
  231. package/dist/go.d.mts +3 -0
  232. package/dist/go.mjs +5 -0
  233. package/dist/gql.d.mts +3 -0
  234. package/dist/gql.mjs +2 -0
  235. package/dist/graphql.d.mts +3 -0
  236. package/dist/graphql.mjs +14 -0
  237. package/dist/groovy.d.mts +3 -0
  238. package/dist/groovy.mjs +5 -0
  239. package/dist/gts.d.mts +3 -0
  240. package/dist/gts.mjs +2 -0
  241. package/dist/hack.d.mts +3 -0
  242. package/dist/hack.mjs +10 -0
  243. package/dist/haml.d.mts +3 -0
  244. package/dist/haml.mjs +10 -0
  245. package/dist/handlebars.d.mts +3 -0
  246. package/dist/handlebars.mjs +14 -0
  247. package/dist/haskell.d.mts +3 -0
  248. package/dist/haskell.mjs +5 -0
  249. package/dist/haxe.d.mts +3 -0
  250. package/dist/haxe.mjs +5 -0
  251. package/dist/hbs.d.mts +3 -0
  252. package/dist/hbs.mjs +2 -0
  253. package/dist/hcl.d.mts +3 -0
  254. package/dist/hcl.mjs +5 -0
  255. package/dist/hjson.d.mts +3 -0
  256. package/dist/hjson.mjs +5 -0
  257. package/dist/hlsl.d.mts +3 -0
  258. package/dist/hlsl.mjs +5 -0
  259. package/dist/hs.d.mts +3 -0
  260. package/dist/hs.mjs +2 -0
  261. package/dist/html-derivative.d.mts +3 -0
  262. package/dist/html-derivative.mjs +8 -0
  263. package/dist/html.d.mts +3 -0
  264. package/dist/html.mjs +10 -0
  265. package/dist/http.d.mts +3 -0
  266. package/dist/http.mjs +14 -0
  267. package/dist/hxml.d.mts +3 -0
  268. package/dist/hxml.mjs +8 -0
  269. package/dist/hy.d.mts +3 -0
  270. package/dist/hy.mjs +5 -0
  271. package/dist/imba.d.mts +3 -0
  272. package/dist/imba.mjs +8 -0
  273. package/dist/index.d.mts +1 -0
  274. package/dist/index.mjs +239 -0
  275. package/dist/ini.d.mts +3 -0
  276. package/dist/ini.mjs +5 -0
  277. package/dist/jade.d.mts +3 -0
  278. package/dist/jade.mjs +2 -0
  279. package/dist/java.d.mts +3 -0
  280. package/dist/java.mjs +5 -0
  281. package/dist/javascript.d.mts +3 -0
  282. package/dist/javascript.mjs +5 -0
  283. package/dist/jinja-html.d.mts +3 -0
  284. package/dist/jinja-html.mjs +8 -0
  285. package/dist/jinja.d.mts +3 -0
  286. package/dist/jinja.mjs +8 -0
  287. package/dist/jison.d.mts +3 -0
  288. package/dist/jison.mjs +8 -0
  289. package/dist/jl.d.mts +3 -0
  290. package/dist/jl.mjs +2 -0
  291. package/dist/js.d.mts +3 -0
  292. package/dist/js.mjs +2 -0
  293. package/dist/json.d.mts +3 -0
  294. package/dist/json.mjs +5 -0
  295. package/dist/json5.d.mts +3 -0
  296. package/dist/json5.mjs +5 -0
  297. package/dist/jsonc.d.mts +3 -0
  298. package/dist/jsonc.mjs +5 -0
  299. package/dist/jsonl.d.mts +3 -0
  300. package/dist/jsonl.mjs +5 -0
  301. package/dist/jsonnet.d.mts +3 -0
  302. package/dist/jsonnet.mjs +5 -0
  303. package/dist/jssm.d.mts +3 -0
  304. package/dist/jssm.mjs +5 -0
  305. package/dist/jsx.d.mts +3 -0
  306. package/dist/jsx.mjs +5 -0
  307. package/dist/julia.d.mts +3 -0
  308. package/dist/julia.mjs +16 -0
  309. package/dist/kotlin.d.mts +3 -0
  310. package/dist/kotlin.mjs +5 -0
  311. package/dist/kql.d.mts +3 -0
  312. package/dist/kql.mjs +2 -0
  313. package/dist/kt.d.mts +3 -0
  314. package/dist/kt.mjs +2 -0
  315. package/dist/kts.d.mts +3 -0
  316. package/dist/kts.mjs +2 -0
  317. package/dist/kusto.d.mts +3 -0
  318. package/dist/kusto.mjs +5 -0
  319. package/dist/latex.d.mts +3 -0
  320. package/dist/latex.mjs +8 -0
  321. package/dist/lean.d.mts +3 -0
  322. package/dist/lean.mjs +5 -0
  323. package/dist/lean4.d.mts +3 -0
  324. package/dist/lean4.mjs +2 -0
  325. package/dist/less.d.mts +3 -0
  326. package/dist/less.mjs +5 -0
  327. package/dist/liquid.d.mts +3 -0
  328. package/dist/liquid.mjs +14 -0
  329. package/dist/lisp.d.mts +3 -0
  330. package/dist/lisp.mjs +2 -0
  331. package/dist/lit.d.mts +3 -0
  332. package/dist/lit.mjs +2 -0
  333. package/dist/log.d.mts +3 -0
  334. package/dist/log.mjs +5 -0
  335. package/dist/logo.d.mts +3 -0
  336. package/dist/logo.mjs +5 -0
  337. package/dist/lua.d.mts +3 -0
  338. package/dist/lua.mjs +8 -0
  339. package/dist/luau.d.mts +3 -0
  340. package/dist/luau.mjs +5 -0
  341. package/dist/make.d.mts +3 -0
  342. package/dist/make.mjs +5 -0
  343. package/dist/makefile.d.mts +3 -0
  344. package/dist/makefile.mjs +2 -0
  345. package/dist/markdown-vue.d.mts +3 -0
  346. package/dist/markdown-vue.mjs +5 -0
  347. package/dist/markdown.d.mts +3 -0
  348. package/dist/markdown.mjs +5 -0
  349. package/dist/marko.d.mts +3 -0
  350. package/dist/marko.mjs +14 -0
  351. package/dist/matlab.d.mts +3 -0
  352. package/dist/matlab.mjs +5 -0
  353. package/dist/md.d.mts +3 -0
  354. package/dist/md.mjs +2 -0
  355. package/dist/mdc.d.mts +3 -0
  356. package/dist/mdc.mjs +12 -0
  357. package/dist/mdx.d.mts +3 -0
  358. package/dist/mdx.mjs +5 -0
  359. package/dist/mediawiki.d.mts +3 -0
  360. package/dist/mediawiki.mjs +2 -0
  361. package/dist/mermaid.d.mts +3 -0
  362. package/dist/mermaid.mjs +5 -0
  363. package/dist/mips.d.mts +3 -0
  364. package/dist/mips.mjs +2 -0
  365. package/dist/mipsasm.d.mts +3 -0
  366. package/dist/mipsasm.mjs +5 -0
  367. package/dist/mmd.d.mts +3 -0
  368. package/dist/mmd.mjs +2 -0
  369. package/dist/mojo.d.mts +3 -0
  370. package/dist/mojo.mjs +5 -0
  371. package/dist/move.d.mts +3 -0
  372. package/dist/move.mjs +5 -0
  373. package/dist/nar.d.mts +3 -0
  374. package/dist/nar.mjs +2 -0
  375. package/dist/narrat.d.mts +3 -0
  376. package/dist/narrat.mjs +5 -0
  377. package/dist/nextflow.d.mts +3 -0
  378. package/dist/nextflow.mjs +5 -0
  379. package/dist/nf.d.mts +3 -0
  380. package/dist/nf.mjs +2 -0
  381. package/dist/nginx.d.mts +3 -0
  382. package/dist/nginx.mjs +8 -0
  383. package/dist/nim.d.mts +3 -0
  384. package/dist/nim.mjs +20 -0
  385. package/dist/nix.d.mts +3 -0
  386. package/dist/nix.mjs +5 -0
  387. package/dist/nu.d.mts +3 -0
  388. package/dist/nu.mjs +2 -0
  389. package/dist/nushell.d.mts +3 -0
  390. package/dist/nushell.mjs +5 -0
  391. package/dist/objc.d.mts +3 -0
  392. package/dist/objc.mjs +2 -0
  393. package/dist/objective-c.d.mts +3 -0
  394. package/dist/objective-c.mjs +5 -0
  395. package/dist/objective-cpp.d.mts +3 -0
  396. package/dist/objective-cpp.mjs +5 -0
  397. package/dist/ocaml.d.mts +3 -0
  398. package/dist/ocaml.mjs +5 -0
  399. package/dist/pascal.d.mts +3 -0
  400. package/dist/pascal.mjs +5 -0
  401. package/dist/perl.d.mts +3 -0
  402. package/dist/perl.mjs +16 -0
  403. package/dist/perl6.d.mts +3 -0
  404. package/dist/perl6.mjs +2 -0
  405. package/dist/php.d.mts +3 -0
  406. package/dist/php.mjs +18 -0
  407. package/dist/plsql.d.mts +3 -0
  408. package/dist/plsql.mjs +5 -0
  409. package/dist/po.d.mts +3 -0
  410. package/dist/po.mjs +5 -0
  411. package/dist/polar.d.mts +3 -0
  412. package/dist/polar.mjs +5 -0
  413. package/dist/postcss.d.mts +3 -0
  414. package/dist/postcss.mjs +5 -0
  415. package/dist/pot.d.mts +3 -0
  416. package/dist/pot.mjs +2 -0
  417. package/dist/potx.d.mts +3 -0
  418. package/dist/potx.mjs +2 -0
  419. package/dist/powerquery.d.mts +3 -0
  420. package/dist/powerquery.mjs +5 -0
  421. package/dist/powershell.d.mts +3 -0
  422. package/dist/powershell.mjs +5 -0
  423. package/dist/prisma.d.mts +3 -0
  424. package/dist/prisma.mjs +5 -0
  425. package/dist/prolog.d.mts +3 -0
  426. package/dist/prolog.mjs +5 -0
  427. package/dist/properties.d.mts +3 -0
  428. package/dist/properties.mjs +2 -0
  429. package/dist/proto.d.mts +3 -0
  430. package/dist/proto.mjs +5 -0
  431. package/dist/protobuf.d.mts +3 -0
  432. package/dist/protobuf.mjs +2 -0
  433. package/dist/ps.d.mts +3 -0
  434. package/dist/ps.mjs +2 -0
  435. package/dist/ps1.d.mts +3 -0
  436. package/dist/ps1.mjs +2 -0
  437. package/dist/pug.d.mts +3 -0
  438. package/dist/pug.mjs +12 -0
  439. package/dist/puppet.d.mts +3 -0
  440. package/dist/puppet.mjs +5 -0
  441. package/dist/purescript.d.mts +3 -0
  442. package/dist/purescript.mjs +5 -0
  443. package/dist/py.d.mts +3 -0
  444. package/dist/py.mjs +2 -0
  445. package/dist/python.d.mts +3 -0
  446. package/dist/python.mjs +5 -0
  447. package/dist/ql.d.mts +3 -0
  448. package/dist/ql.mjs +2 -0
  449. package/dist/qml.d.mts +3 -0
  450. package/dist/qml.mjs +8 -0
  451. package/dist/qmldir.d.mts +3 -0
  452. package/dist/qmldir.mjs +5 -0
  453. package/dist/qss.d.mts +3 -0
  454. package/dist/qss.mjs +5 -0
  455. package/dist/r.d.mts +3 -0
  456. package/dist/r.mjs +5 -0
  457. package/dist/racket.d.mts +3 -0
  458. package/dist/racket.mjs +5 -0
  459. package/dist/raku.d.mts +3 -0
  460. package/dist/raku.mjs +5 -0
  461. package/dist/razor.d.mts +3 -0
  462. package/dist/razor.mjs +10 -0
  463. package/dist/rb.d.mts +3 -0
  464. package/dist/rb.mjs +2 -0
  465. package/dist/reg.d.mts +3 -0
  466. package/dist/reg.mjs +5 -0
  467. package/dist/regex.d.mts +3 -0
  468. package/dist/regex.mjs +2 -0
  469. package/dist/regexp.d.mts +3 -0
  470. package/dist/regexp.mjs +5 -0
  471. package/dist/rel.d.mts +3 -0
  472. package/dist/rel.mjs +5 -0
  473. package/dist/riscv.d.mts +3 -0
  474. package/dist/riscv.mjs +5 -0
  475. package/dist/rs.d.mts +3 -0
  476. package/dist/rs.mjs +2 -0
  477. package/dist/rst.d.mts +3 -0
  478. package/dist/rst.mjs +22 -0
  479. package/dist/ruby.d.mts +3 -0
  480. package/dist/ruby.mjs +30 -0
  481. package/dist/rust.d.mts +3 -0
  482. package/dist/rust.mjs +5 -0
  483. package/dist/sas.d.mts +3 -0
  484. package/dist/sas.mjs +8 -0
  485. package/dist/sass.d.mts +3 -0
  486. package/dist/sass.mjs +5 -0
  487. package/dist/scala.d.mts +3 -0
  488. package/dist/scala.mjs +5 -0
  489. package/dist/scheme.d.mts +3 -0
  490. package/dist/scheme.mjs +5 -0
  491. package/dist/scss.d.mts +3 -0
  492. package/dist/scss.mjs +8 -0
  493. package/dist/sdbl.d.mts +3 -0
  494. package/dist/sdbl.mjs +5 -0
  495. package/dist/sh.d.mts +3 -0
  496. package/dist/sh.mjs +2 -0
  497. package/dist/shader.d.mts +3 -0
  498. package/dist/shader.mjs +2 -0
  499. package/dist/shaderlab.d.mts +3 -0
  500. package/dist/shaderlab.mjs +8 -0
  501. package/dist/shell.d.mts +3 -0
  502. package/dist/shell.mjs +2 -0
  503. package/dist/shellscript.d.mts +3 -0
  504. package/dist/shellscript.mjs +5 -0
  505. package/dist/shellsession.d.mts +3 -0
  506. package/dist/shellsession.mjs +8 -0
  507. package/dist/smalltalk.d.mts +3 -0
  508. package/dist/smalltalk.mjs +5 -0
  509. package/dist/solidity.d.mts +3 -0
  510. package/dist/solidity.mjs +5 -0
  511. package/dist/soy.d.mts +3 -0
  512. package/dist/soy.mjs +8 -0
  513. package/dist/sparql.d.mts +3 -0
  514. package/dist/sparql.mjs +8 -0
  515. package/dist/spl.d.mts +3 -0
  516. package/dist/spl.mjs +2 -0
  517. package/dist/splunk.d.mts +3 -0
  518. package/dist/splunk.mjs +5 -0
  519. package/dist/sql.d.mts +3 -0
  520. package/dist/sql.mjs +5 -0
  521. package/dist/ssh-config.d.mts +3 -0
  522. package/dist/ssh-config.mjs +5 -0
  523. package/dist/stata.d.mts +3 -0
  524. package/dist/stata.mjs +8 -0
  525. package/dist/styl.d.mts +3 -0
  526. package/dist/styl.mjs +2 -0
  527. package/dist/stylus.d.mts +3 -0
  528. package/dist/stylus.mjs +5 -0
  529. package/dist/svelte.d.mts +3 -0
  530. package/dist/svelte.mjs +14 -0
  531. package/dist/swift.d.mts +3 -0
  532. package/dist/swift.mjs +5 -0
  533. package/dist/system-verilog.d.mts +3 -0
  534. package/dist/system-verilog.mjs +5 -0
  535. package/dist/systemd.d.mts +3 -0
  536. package/dist/systemd.mjs +5 -0
  537. package/dist/talon.d.mts +3 -0
  538. package/dist/talon.mjs +2 -0
  539. package/dist/talonscript.d.mts +3 -0
  540. package/dist/talonscript.mjs +5 -0
  541. package/dist/tasl.d.mts +3 -0
  542. package/dist/tasl.mjs +5 -0
  543. package/dist/tcl.d.mts +3 -0
  544. package/dist/tcl.mjs +5 -0
  545. package/dist/templ.d.mts +3 -0
  546. package/dist/templ.mjs +12 -0
  547. package/dist/terraform.d.mts +3 -0
  548. package/dist/terraform.mjs +5 -0
  549. package/dist/tex.d.mts +3 -0
  550. package/dist/tex.mjs +8 -0
  551. package/dist/tf.d.mts +3 -0
  552. package/dist/tf.mjs +2 -0
  553. package/dist/tfvars.d.mts +3 -0
  554. package/dist/tfvars.mjs +2 -0
  555. package/dist/toml.d.mts +3 -0
  556. package/dist/toml.mjs +5 -0
  557. package/dist/ts-tags.d.mts +3 -0
  558. package/dist/ts-tags.mjs +18 -0
  559. package/dist/ts.d.mts +3 -0
  560. package/dist/ts.mjs +2 -0
  561. package/dist/tsp.d.mts +3 -0
  562. package/dist/tsp.mjs +2 -0
  563. package/dist/tsv.d.mts +3 -0
  564. package/dist/tsv.mjs +5 -0
  565. package/dist/tsx.d.mts +3 -0
  566. package/dist/tsx.mjs +5 -0
  567. package/dist/turtle.d.mts +3 -0
  568. package/dist/turtle.mjs +5 -0
  569. package/dist/twig.d.mts +3 -0
  570. package/dist/twig.mjs +18 -0
  571. package/dist/typ.d.mts +3 -0
  572. package/dist/typ.mjs +2 -0
  573. package/dist/typescript.d.mts +3 -0
  574. package/dist/typescript.mjs +5 -0
  575. package/dist/typespec.d.mts +3 -0
  576. package/dist/typespec.mjs +5 -0
  577. package/dist/typst.d.mts +3 -0
  578. package/dist/typst.mjs +5 -0
  579. package/dist/v.d.mts +3 -0
  580. package/dist/v.mjs +5 -0
  581. package/dist/vala.d.mts +3 -0
  582. package/dist/vala.mjs +5 -0
  583. package/dist/vb.d.mts +3 -0
  584. package/dist/vb.mjs +5 -0
  585. package/dist/verilog.d.mts +3 -0
  586. package/dist/verilog.mjs +5 -0
  587. package/dist/vhdl.d.mts +3 -0
  588. package/dist/vhdl.mjs +5 -0
  589. package/dist/vim.d.mts +3 -0
  590. package/dist/vim.mjs +2 -0
  591. package/dist/viml.d.mts +3 -0
  592. package/dist/viml.mjs +5 -0
  593. package/dist/vimscript.d.mts +3 -0
  594. package/dist/vimscript.mjs +2 -0
  595. package/dist/vue-directives.d.mts +3 -0
  596. package/dist/vue-directives.mjs +5 -0
  597. package/dist/vue-html.d.mts +3 -0
  598. package/dist/vue-html.mjs +10 -0
  599. package/dist/vue-interpolations.d.mts +3 -0
  600. package/dist/vue-interpolations.mjs +5 -0
  601. package/dist/vue-sfc-style-variable-injection.d.mts +3 -0
  602. package/dist/vue-sfc-style-variable-injection.mjs +8 -0
  603. package/dist/vue.d.mts +3 -0
  604. package/dist/vue.mjs +26 -0
  605. package/dist/vy.d.mts +3 -0
  606. package/dist/vy.mjs +2 -0
  607. package/dist/vyper.d.mts +3 -0
  608. package/dist/vyper.mjs +5 -0
  609. package/dist/wasm.d.mts +3 -0
  610. package/dist/wasm.mjs +5 -0
  611. package/dist/wenyan.d.mts +3 -0
  612. package/dist/wenyan.mjs +5 -0
  613. package/dist/wgsl.d.mts +3 -0
  614. package/dist/wgsl.mjs +5 -0
  615. package/dist/wiki.d.mts +3 -0
  616. package/dist/wiki.mjs +2 -0
  617. package/dist/wikitext.d.mts +3 -0
  618. package/dist/wikitext.mjs +5 -0
  619. package/dist/wl.d.mts +3 -0
  620. package/dist/wl.mjs +2 -0
  621. package/dist/wolfram.d.mts +3 -0
  622. package/dist/wolfram.mjs +5 -0
  623. package/dist/xml.d.mts +3 -0
  624. package/dist/xml.mjs +8 -0
  625. package/dist/xsl.d.mts +3 -0
  626. package/dist/xsl.mjs +8 -0
  627. package/dist/yaml.d.mts +3 -0
  628. package/dist/yaml.mjs +5 -0
  629. package/dist/yml.d.mts +3 -0
  630. package/dist/yml.mjs +2 -0
  631. package/dist/zenscript.d.mts +3 -0
  632. package/dist/zenscript.mjs +5 -0
  633. package/dist/zig.d.mts +3 -0
  634. package/dist/zig.mjs +5 -0
  635. package/dist/zsh.d.mts +3 -0
  636. package/dist/zsh.mjs +2 -0
  637. package/package.json +354 -0
@@ -0,0 +1,5 @@
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Mermaid\",\"fileTypes\":[],\"injectionSelector\":\"L:text.html.markdown\",\"name\":\"mermaid\",\"patterns\":[{\"include\":\"#mermaid-code-block\"},{\"include\":\"#mermaid-code-block-with-attributes\"},{\"include\":\"#mermaid-ado-code-block\"}],\"repository\":{\"mermaid\":{\"patterns\":[{\"begin\":\"^\\\\s*(architecture-beta)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Architecture Diagram\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"4\":{\"name\":\"string\"},\"5\":{\"name\":\"keyword.control.mermaid\"},\"6\":{\"name\":\"string\"},\"7\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"8\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"9\":{\"name\":\"string\"},\"10\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"11\":{\"name\":\"keyword.control.mermaid\"},\"12\":{\"name\":\"variable\"}},\"comment\":\"(group|service)(group id)(icon name)?(title)(in)?(parent)?\",\"match\":\"(?i)\\\\s*(group|service)\\\\s+([\\\\w-]+)\\\\s*(\\\\()?([\\\\w\\\\s-]+)?(:)?([\\\\w\\\\s-]+)?(\\\\))?\\\\s*(\\\\[)?([\\\\w\\\\s-]+)?\\\\s*(\\\\])?\\\\s*(in)?\\\\s*([\\\\w-]+)?\"},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"3\":{\"name\":\"variable\"},\"4\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"5\":{\"name\":\"keyword.control.mermaid\"},\"6\":{\"name\":\"entity.name.function.mermaid\"},\"7\":{\"name\":\"keyword.control.mermaid\"},\"8\":{\"name\":\"entity.name.function.mermaid\"},\"9\":{\"name\":\"keyword.control.mermaid\"},\"10\":{\"name\":\"variable\"},\"11\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"12\":{\"name\":\"variable\"},\"13\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"}},\"comment\":\"(service id)(group id)?:(T|B|L|R) <?-->? (T|B|L|R):(service id)(group id)?\",\"match\":\"(?i)\\\\s*([\\\\w-]+)\\\\s*(\\\\{)?\\\\s*(group)?(\\\\})?\\\\s*(:)\\\\s*(T|B|L|R)\\\\s+(<?-->?)\\\\s+(T|B|L|R)\\\\s*(:)\\\\s*([\\\\w-]+)\\\\s*(\\\\{)?\\\\s*(group)?(\\\\})?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"variable\"}},\"comment\":\"(junction)(junction id)(in)?(group)\",\"match\":\"(?i)\\\\s*(junction)\\\\s+([\\\\w-]+)\\\\s*(in)?\\\\s*([\\\\w-]+)?\"}]},{\"begin\":\"^\\\\s*(classDiagram)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Class Diagram\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.class.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"entity.name.type.class.mermaid\"},\"6\":{\"name\":\"keyword.control.mermaid\"},\"7\":{\"name\":\"string\"}},\"comment\":\"(class name) (\\\"multiplicity relationship\\\")? (relationship) (\\\"multiplicity relationship\\\")? (class name) :? (labelText)?\",\"match\":\"(?i)([\\\\w-]+)\\\\s(\\\"(?:\\\\d+|\\\\*|0..\\\\d+|1..\\\\d+|1..\\\\*)\\\")?\\\\s?(--o|--\\\\*|<--|-->|<\\\\.\\\\.|\\\\.\\\\.>|<\\\\|\\\\.\\\\.|\\\\.\\\\.\\\\|>|<\\\\|--|--\\\\|>|--\\\\*|--|\\\\.\\\\.|\\\\*--|o--)\\\\s(\\\"(?:\\\\d+|\\\\*|0..\\\\d+|1..\\\\d+|1..\\\\*)\\\")?\\\\s?([\\\\w-]+)\\\\s?(:)?\\\\s(.*)$\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.class.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"entity.name.function.mermaid\"},\"5\":{\"name\":\"punctuation.parenthesis.open.mermaid\"},\"6\":{\"name\":\"storage.type.mermaid\"},\"7\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"8\":{\"name\":\"storage.type.mermaid\"},\"9\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"10\":{\"name\":\"entity.name.variable.parameter.mermaid\"},\"11\":{\"name\":\"punctuation.parenthesis.closed.mermaid\"},\"12\":{\"name\":\"keyword.control.mermaid\"},\"13\":{\"name\":\"storage.type.mermaid\"},\"14\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"15\":{\"name\":\"storage.type.mermaid\"},\"16\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"}},\"comment\":\"(class name) : (visibility)?(function)( (function param/generic param)? )(classifier)? (return/generic return)?$\",\"match\":\"(?i)([\\\\w-]+)\\\\s?(:)\\\\s([+~#-])?([\\\\w-]+)(\\\\()([\\\\w-]+)?(~)?([\\\\w-]+)?(~)?\\\\s?([\\\\w-]+)?(\\\\))([*$]{0,2})\\\\s?([\\\\w-]+)?(~)?([\\\\w-]+)?(~)?$\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.class.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"storage.type.mermaid\"},\"5\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"6\":{\"name\":\"storage.type.mermaid\"},\"7\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"8\":{\"name\":\"entity.name.variable.field.mermaid\"}},\"comment\":\"(class name) : (visibility)?(datatype/generic data type) (attribute name)$\",\"match\":\"(?i)([\\\\w-]+)\\\\s?(:)\\\\s([+~#-])?([\\\\w-]+)(~)?([\\\\w-]+)?(~)?\\\\s([\\\\w-]+)?$\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"2\":{\"name\":\"storage.type.mermaid\"},\"3\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"4\":{\"name\":\"entity.name.type.class.mermaid\"}},\"comment\":\"<<(Annotation)>> (class name)\",\"match\":\"(?i)(<<)([\\\\w-]+)(>>)\\\\s?([\\\\w-]+)?\"},{\"begin\":\"(?i)(class)\\\\s+([\\\\w-]+)(~)?([\\\\w-]+)?(~)?\\\\s?({)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.type.class.mermaid\"},\"3\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"4\":{\"name\":\"storage.type.mermaid\"},\"5\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"6\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"class (class name) ~?(generic type)?~? ({)\",\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"begin\":\"(?i)\\\\s([+~#-])?([\\\\w-]+)(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"},\"3\":{\"name\":\"punctuation.parenthesis.open.mermaid\"}},\"comment\":\"(visibility)?(function)( (function param/generic param)? )(classifier)? (return/generic return)?$\",\"end\":\"(?i)(\\\\))([*$]{0,2})\\\\s?([\\\\w-]+)?(~)?([\\\\w-]+)?(~)?$\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.parenthesis.closed.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"storage.type.mermaid\"},\"4\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"5\":{\"name\":\"storage.type.mermaid\"},\"6\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"storage.type.mermaid\"},\"2\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"3\":{\"name\":\"storage.type.mermaid\"},\"4\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"5\":{\"name\":\"entity.name.variable.parameter.mermaid\"}},\"comment\":\"(TBD)\",\"match\":\"(?i)\\\\s*,?\\\\s*([\\\\w-]+)?(~)?([\\\\w-]+)?(~)?\\\\s?([\\\\w-]+)?\"}]},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"storage.type.mermaid\"},\"3\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"4\":{\"name\":\"storage.type.mermaid\"},\"5\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"6\":{\"name\":\"entity.name.variable.field.mermaid\"}},\"comment\":\"(visibility)?(datatype/generic data type) (attribute name)$\",\"match\":\"(?i)\\\\s([+~#-])?([\\\\w-]+)(~)?([\\\\w-]+)?(~)?\\\\s([\\\\w-]+)?$\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"2\":{\"name\":\"storage.type.mermaid\"},\"3\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"},\"4\":{\"name\":\"entity.name.type.class.mermaid\"}},\"comment\":\"<<(Annotation)>> (class name)\",\"match\":\"(?i)(<<)([\\\\w-]+)(>>)\\\\s?([\\\\w-]+)?\"}]},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.type.class.mermaid\"},\"3\":{\"name\":\"punctuation.definition.typeparameters.begin.mermaid\"},\"4\":{\"name\":\"storage.type.mermaid\"},\"5\":{\"name\":\"punctuation.definition.typeparameters.end.mermaid\"}},\"comment\":\"class (class name) ~?(generic type)?~?\",\"match\":\"(?i)(class)\\\\s+([\\\\w-]+)(~)?([\\\\w-]+)?(~)?\"}]},{\"begin\":\"^\\\\s*(erDiagram)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Entity Relationship Diagram\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"},\"4\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(entity)\",\"match\":\"(?i)^\\\\s*([\\\\w-]+)\\\\s*(\\\\[)?\\\\s*((?:[\\\\w-]+)|(?:\\\"[\\\\w\\\\s-]+\\\"))?\\\\s*(\\\\])?$\"},{\"begin\":\"(?i)\\\\s+([\\\\w-]+)\\\\s*(\\\\[)?\\\\s*((?:[\\\\w-]+)|(?:\\\"[\\\\w\\\\s-]+\\\"))?\\\\s*(\\\\])?\\\\s*({)\",\"beginCaptures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(entity) {\",\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"storage.type.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"string\"}},\"comment\":\"(type) (name) (PK|FK)? (\\\"comment\\\")?\",\"match\":\"(?i)\\\\s*([\\\\w-]+)\\\\s+([\\\\w-]+)\\\\s+(PK|FK)?\\\\s*(\\\"[\\\"($&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*\\\")?\\\\s*\"},{\"match\":\"\\\\%%.*\",\"name\":\"comment\"}]},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"variable\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"string\"}},\"comment\":\"(entity) (relationship) (entity) : (label)\",\"match\":\"(?i)\\\\s*([\\\\w-]+)\\\\s*((?:\\\\|o|\\\\|\\\\||}o|}\\\\||one or (?:zero|more|many)|zero or (?:one|more|many)|many\\\\((?:0|1)\\\\)|only one|0\\\\+|1\\\\+?)(?:..|--)(?:o\\\\||\\\\|\\\\||o{|\\\\|{|one or (?:zero|more|many)|zero or (?:one|more|many)|many\\\\((?:0|1)\\\\)|only one|0\\\\+|1\\\\+?))\\\\s*([\\\\w-]+)\\\\s*(:)\\\\s*((?:\\\"[\\\\w\\\\s]*\\\")|(?:[\\\\w-]+))\"}]},{\"begin\":\"^\\\\s*(gantt)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Gantt Diagram\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"}},\"match\":\"(?i)^\\\\s*(dateFormat)\\\\s+([\\\\w\\\\-\\\\.]+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"}},\"match\":\"(?i)^\\\\s*(axisFormat)\\\\s+([\\\\w\\\\%\\\\/\\\\\\\\\\\\-\\\\.]+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)(tickInterval)\\\\s+(([1-9]\\\\d*)(millisecond|second|minute|hour|day|week|month))\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s*(title)\\\\s+(\\\\s*[\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s*(excludes)\\\\s+((?:[\\\\d\\\\-,\\\\s]+|monday|tuesday|wednesday|thursday|friday|saturday|sunday|weekends)+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s+(todayMarker)\\\\s+(.*)$\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s*(section)\\\\s+(\\\\s*[\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"},{\"begin\":\"(?i)^\\\\s(.*)(:)\",\"beginCaptures\":{\"1\":{\"name\":\"string\"},\"2\":{\"name\":\"keyword.control.mermaid\"}},\"end\":\"$\",\"patterns\":[{\"match\":\"(crit|done|active|after)\",\"name\":\"entity.name.function.mermaid\"},{\"match\":\"\\\\%%.*\",\"name\":\"comment\"}]}]},{\"begin\":\"^\\\\s*(gitGraph)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Git Graph\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"begin\":\"(?i)^\\\\s*(commit)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"commit\",\"end\":\"$\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(id)(:) (\\\"id\\\")\",\"match\":\"(?i)\\\\s*(id)(:)\\\\s?(\\\"[^\\\"\\\\n]*\\\")\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"entity.name.function.mermaid\"}},\"comment\":\"(type)(:) (COMMIT_TYPE)\",\"match\":\"(?i)\\\\s*(type)(:)\\\\s?(NORMAL|REVERSE|HIGHLIGHT)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(tag)(:) (\\\"tag\\\")\",\"match\":\"(?i)\\\\s*(tag)(:)\\\\s?(\\\"[($&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*\\\")\"}]},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"}},\"comment\":\"(checkout) (branch-name)\",\"match\":\"(?i)^\\\\s*(checkout)\\\\s*([^\\\\s\\\"]*)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"constant.numeric.decimal.mermaid\"}},\"comment\":\"(branch) (branch-name) (order)?(:) (number)\",\"match\":\"(?i)^\\\\s*(branch)\\\\s*([^\\\\s\\\"]*)\\\\s*(?:(order)(:)\\\\s?(\\\\d+))?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"string\"}},\"comment\":\"(merge) (branch-name) (tag: \\\"tag-name\\\")?\",\"match\":\"(?i)^\\\\s*(merge)\\\\s*([^\\\\s\\\"]*)\\\\s*(?:(tag)(:)\\\\s?(\\\"[^\\\"\\\\n]*\\\"))?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"string\"}},\"comment\":\"(cherry-pick) (id)(:)(\\\"commit-id\\\")\",\"match\":\"(?i)^\\\\s*(cherry-pick)\\\\s+(id)(:)\\\\s*(\\\"[^\\\"\\\\n]*\\\")\"}]},{\"begin\":\"^\\\\s*(graph|flowchart)\\\\s+([\\\\p{Letter} 0-9]+)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"}},\"comment\":\"Graph\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"string\"},\"5\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"\",\"match\":\"(?i)^\\\\s*(subgraph)\\\\s+(\\\\w+)(\\\\[)(\\\"?[\\\\w\\\\s*+%=\\\\\\\\/:\\\\.\\\\-'`,&^#$!?<>]*\\\"?)(\\\\])\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"}},\"match\":\"^\\\\s*(subgraph)\\\\s+([\\\\p{Letter} 0-9<>]+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"}},\"match\":\"^(?i)\\\\s*(direction)\\\\s+(RB|BT|RL|TD|LR)\"},{\"match\":\"\\\\b(end)\\\\b\",\"name\":\"keyword.control.mermaid\"},{\"begin\":\"(?i)(\\\\b(?:(?!--|==)[-\\\\w])+\\\\b\\\\s*)(\\\\(\\\\[|\\\\[\\\\[|\\\\[\\\\(|\\\\[|\\\\(+|>|\\\\{|\\\\(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(Entity)(Edge/Shape)(Text)(Edge/Shape)\",\"end\":\"(?i)(\\\\]\\\\)|\\\\]\\\\]|\\\\)\\\\]|\\\\]|\\\\)+|\\\\}|\\\\)\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"patterns\":[{\"begin\":\"\\\\s*(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(\\\"multi-line text\\\")\",\"end\":\"(\\\")\",\"endCaptures\":{\"1\":{\"name\":\"string\"}},\"patterns\":[{\"begin\":\"(?i)([^\\\"]*)\",\"beginCaptures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"capture inner text between quotes\",\"end\":\"(?=\\\")\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"comment\"}},\"match\":\"([^\\\"]*)\"}]}]},{\"captures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(single line text)\",\"match\":\"(?i)\\\\s*([$&%\\\\^/#.,?!;:*+<>_\\\\'\\\\\\\\\\\\w\\\\s]+)\"}]},{\"begin\":\"(?i)\\\\s*((?:-{2,5}|={2,5})[xo>]?\\\\|)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(Graph Link)(\\\"Multiline text\\\")(Graph Link)\",\"end\":\"(?i)(\\\\|)\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"patterns\":[{\"begin\":\"\\\\s*(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(\\\"multi-line text\\\")\",\"end\":\"(\\\")\",\"endCaptures\":{\"1\":{\"name\":\"string\"}},\"patterns\":[{\"begin\":\"(?i)([^\\\"]*)\",\"beginCaptures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"capture inner text between quotes\",\"end\":\"(?=\\\")\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"comment\"}},\"match\":\"([^\\\"]*)\"}]}]},{\"captures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(single line text)\",\"match\":\"(?i)\\\\s*([$&%\\\\^/#.,?!;:*+<>_\\\\'\\\\\\\\\\\\w\\\\s]+)\"}]},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"},\"3\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(Graph Link Start Arrow)(Text)(Graph Link End Arrow)\",\"match\":\"(?i)\\\\s*([xo<]?(?:-{2,5}|={2,5}|-\\\\.{1,3}|-\\\\.))((?:(?!--|==)[\\\\w\\\\s*+%=\\\\\\\\/:\\\\.\\\\-'`,\\\"&^#$!?<>\\\\[\\\\]])*)((?:-{2,5}|={2,5}|\\\\.{1,3}-|\\\\.-)[xo>]?)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(Graph Link)\",\"match\":\"(?i)\\\\s*([ox<]?(?:-.{1,3}-|-{1,3}|={1,3})[ox>]?)\"},{\"comment\":\"Entity\",\"match\":\"(\\\\b(?:(?!--|==)[-\\\\w])+\\\\b\\\\s*)\",\"name\":\"variable\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(Class)(Node(s))(ClassName)\",\"match\":\"(?i)\\\\s*(class)\\\\s+(\\\\b[-,\\\\w]+)\\\\s+(\\\\b\\\\w+\\\\b)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(ClassDef)(ClassName)(Styles)\",\"match\":\"(?i)\\\\s*(classDef)\\\\s+(\\\\b\\\\w+\\\\b)\\\\s+(\\\\b[-,:;#\\\\w]+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"variable\"},\"4\":{\"name\":\"string\"}},\"comment\":\"(Click)(Entity)(Link)?(Tooltip)\",\"match\":\"(?i)\\\\s*(click)\\\\s+(\\\\b[-\\\\w]+\\\\b\\\\s*)(\\\\b\\\\w+\\\\b)?\\\\s(\\\"*.*\\\")\"}]},{\"begin\":\"^\\\\s*(pie)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Pie Chart\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s*(title)\\\\s+(\\\\s*[\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"},{\"begin\":\"(?i)\\\\s(.*)(:)\",\"beginCaptures\":{\"1\":{\"name\":\"string\"},\"2\":{\"name\":\"keyword.control.mermaid\"}},\"end\":\"$\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"}]}]},{\"begin\":\"^\\\\s*(quadrantChart)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Quadrant Chart\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s*(title)\\\\s*([\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"},{\"begin\":\"(?i)^\\\\s*([xy]-axis)\\\\s+((?:(?!-->)[$&%/#.,?!*+=\\\\'\\\\\\\\\\\\-\\\\w\\\\s])*)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"comment\":\"(x|y-axis) (text) (-->)? (text)?\",\"end\":\"$\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"comment\":\"(-->) (text)\",\"match\":\"(?i)\\\\s*(-->)\\\\s*([$&%/#.,?!*+=\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"}]},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s*(quadrant-[1234])\\\\s*([\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"},{\"captures\":{\"1\":{\"name\":\"string\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"constant.numeric.decimal.mermaid\"},\"5\":{\"name\":\"keyword.control.mermaid\"},\"6\":{\"name\":\"constant.numeric.decimal.mermaid\"},\"7\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(text)(:) ([)(decimal)(,) (decimal)(])\",\"match\":\"(?i)\\\\s*([$&%/#.,?!*+=\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\\\\s*(:)\\\\s*(\\\\[)\\\\s*(\\\\d\\\\.\\\\d+)\\\\s*(,)\\\\s*(\\\\d\\\\.\\\\d+)\\\\s*(\\\\])\"}]},{\"begin\":\"^\\\\s*(requirementDiagram)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Requirement Diagram\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"begin\":\"(?i)^\\\\s*((?:functional|interface|performance|physical)?requirement|designConstraint)\\\\s*([\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\\\\s*({)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(requirement) (name) ({)\",\"end\":\"(?i)\\\\s*(})\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"}},\"comment\":\"(id:) (variable id)\",\"match\":\"(?i)\\\\s*(id:)\\\\s*([$&%\\\\^/#.,?!;:*+<>_\\\\'\\\\\\\\\\\\w\\\\s]+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"comment\":\"(text:) (text string)\",\"match\":\"(?i)\\\\s*(text:)\\\\s*([$&%\\\\^/#.,?!;:*+<>_\\\\'\\\\\\\\\\\\w\\\\s]+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"}},\"comment\":\"(risk:) (risk option)\",\"match\":\"(?i)\\\\s*(risk:)\\\\s*(low|medium|high)\\\\s*$\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"}},\"comment\":\"(verifyMethod)(:) (method)\",\"match\":\"(?i)\\\\s*(verifymethod:)\\\\s*(analysis|inspection|test|demonstration)\\\\s*$\"}]},{\"begin\":\"(?i)^\\\\s*(element)\\\\s*([\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\\\\s*({)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(element) (name) ({)\",\"end\":\"(?i)\\\\s*(})\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"}},\"comment\":\"(type:) (user type)\",\"match\":\"(?i)\\\\s*(type:)\\\\s*([\\\"$&%\\\\^/#.,?!;:*+<>_\\\\'\\\\\\\\\\\\w\\\\s]+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"}},\"comment\":\"(docref:) (user ref)\",\"match\":\"(?i)\\\\s*(docref:)\\\\s*([$&%\\\\^/#.,?!;:*+<>_\\\\'\\\\\\\\\\\\w\\\\s]+)\"}]},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"variable\"}},\"comment\":\"(source) (-) (type) (->) (destination)\",\"match\":\"(?i)^\\\\s*([\\\\w]+)\\\\s*(-)\\\\s*(contains|copies|derives|satisfies|verifies|refines|traces)\\\\s*(->)\\\\s*([\\\\w]+)\\\\s*$\"},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"variable\"}},\"comment\":\"(destination) (<-) (type) (-) (source)\",\"match\":\"(?i)^\\\\s*([\\\\w]+)\\\\s*(<-)\\\\s*(contains|copies|derives|satisfies|verifies|refines|traces)\\\\s*(-)\\\\s*([\\\\w]+)\\\\s*$\"}]},{\"begin\":\"^\\\\s*(sequenceDiagram)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"Sequence Diagram\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"(\\\\%%|#).*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(title)(title text)\",\"match\":\"(?i)(title)\\\\s*(:)?\\\\s+(\\\\s*[\\\"()$&%\\\\^/#.,?!:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"string\"}},\"comment\":\"(participant)(Actor)(as)?(Label)?\",\"match\":\"(?i)\\\\s*(participant|actor)\\\\s+((?:(?! as )[\\\"()$&%\\\\^/#.?!*=<>\\\\'\\\\\\\\\\\\w\\\\s])+)\\\\s*(as)?\\\\s([\\\"()$&%\\\\^/#.,?!*=<>\\\\'\\\\\\\\\\\\w\\\\s]+)?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"}},\"comment\":\"(activate/deactivate)(Actor)\",\"match\":\"(?i)\\\\s*((?:de)?activate)\\\\s+(\\\\b[\\\"()$&%^/#.?!*=<>'\\\\\\\\\\\\w\\\\s]+\\\\b\\\\)?\\\\s*)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"},\"3\":{\"name\":\"variable\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"variable\"},\"6\":{\"name\":\"keyword.control.mermaid\"},\"7\":{\"name\":\"string\"}},\"comment\":\"(Note)(direction)(Actor)(,)?(Actor)?(:)(Message)\",\"match\":\"(?i)\\\\s*(Note)\\\\s+((?:left|right)\\\\sof|over)\\\\s+(\\\\b[\\\"()$&%^/#.?!*=<>'\\\\\\\\\\\\w\\\\s]+\\\\b\\\\)?\\\\s*)(,)?(\\\\b[\\\"()$&%^/#.?!*=<>'\\\\\\\\\\\\w\\\\s]+\\\\b\\\\)?\\\\s*)?(:)(?:\\\\s+([^;#]*))?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"comment\":\"(loop)(loop text)\",\"match\":\"(?i)\\\\s*(loop)(?:\\\\s+([^;#]*))?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(end)\",\"match\":\"\\\\s*(end)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"comment\":\"(alt/else/option/par/and/autonumber/critical/opt)(text)\",\"match\":\"(?i)\\\\s*(alt|else|option|par|and|rect|autonumber|critical|opt)(?:\\\\s+([^#;]*))?$\"},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"variable\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"string\"}},\"comment\":\"(Actor)(Arrow)(Actor)(:)(Message)\",\"match\":\"(?i)\\\\s*(\\\\b[\\\"()$&%^/#.?!*=<>'\\\\\\\\\\\\w\\\\s]+\\\\b\\\\)?)\\\\s*(-?-(?:>|x|\\\\))>?[+-]?)\\\\s*([\\\"()$&%^/#.?!*=<>'\\\\\\\\\\\\w\\\\s]+\\\\b\\\\)?)\\\\s*(:)\\\\s*([^;#]*)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"entity.name.function.mermaid\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(box transparent text)\",\"match\":\"(?i)\\\\s*(box)\\\\s+(transparent)(?:\\\\s+([^;#]*))?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"comment\":\"(box text)\",\"match\":\"(?i)\\\\s*(box)(?:\\\\s+([^;#]*))?\"}]},{\"begin\":\"^\\\\s*(stateDiagram(?:-v2)?)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"State Diagram\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"}\",\"match\":\"\\\\s+(})\\\\s+\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"--\",\"match\":\"\\\\s+(--)\\\\s+\"},{\"comment\":\"(state)\",\"match\":\"^\\\\s*([\\\\w-]+)$\",\"name\":\"variable\"},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(state) : (description)\",\"match\":\"(?i)([\\\\w-]+)\\\\s+(:)\\\\s+(\\\\s*[-\\\\w\\\\s]+\\\\b)\"},{\"begin\":\"(?i)^\\\\s*(state)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"state\",\"end\":\"$\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"string\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"variable\"}},\"comment\":\"\\\"(description)\\\" as (state)\",\"match\":\"(?i)\\\\s*(\\\"[-\\\\w\\\\s]+\\\\b\\\")\\\\s+(as)\\\\s+([\\\\w-]+)\"},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(state name) {\",\"match\":\"(?i)\\\\s*([\\\\w-]+)\\\\s+({)\"},{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(state name) <<fork|join>>\",\"match\":\"(?i)\\\\s*([\\\\w-]+)\\\\s+(<<(?:fork|join)>>)\"}]},{\"begin\":\"(?i)([\\\\w-]+)\\\\s+(-->)\",\"beginCaptures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(state) -->\",\"end\":\"$\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"}},\"comment\":\"(state) (:)? (transition text)?\",\"match\":\"(?i)\\\\s+([\\\\w-]+)\\\\s*(:)?\\\\s*([^\\\\n:]+)?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"string\"}},\"comment\":\"[*] (:)? (transition text)?\",\"match\":\"(?i)(\\\\[\\\\*\\\\])\\\\s*(:)?\\\\s*([^\\\\n:]+)?\"}]},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"variable\"},\"4\":{\"name\":\"keyword.control.mermaid\"},\"5\":{\"name\":\"string\"}},\"comment\":\"[*] --> (state) (:)? (transition text)?\",\"match\":\"(?i)(\\\\[\\\\*\\\\])\\\\s+(-->)\\\\s+([\\\\w-]+)\\\\s*(:)?\\\\s*([^\\\\n:]+)?\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"},\"3\":{\"name\":\"keyword.control.mermaid\"},\"4\":{\"name\":\"string\"}},\"comment\":\"note left|right of (state name)\",\"match\":\"(?i)^\\\\s*(note (?:left|right) of)\\\\s+([\\\\w-]+)\\\\s+(:)\\\\s*([^\\\\n:]+)\"},{\"begin\":\"(?i)^\\\\s*(note (?:left|right) of)\\\\s+([\\\\w-]+)(.|\\\\n)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"variable\"}},\"comment\":\"note left|right of (state name) (note text) end note\",\"contentName\":\"string\",\"end\":\"(?i)(end note)\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}}}]},{\"begin\":\"^\\\\s*(journey)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"User Journey\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s*(title|section)\\\\s+(\\\\s*[\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"},{\"begin\":\"(?i)\\\\s*([\\\"()$&%\\\\^/.,?!*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\\\\s*(:)\\\\s*(\\\\d+)\\\\s*(:)\",\"beginCaptures\":{\"1\":{\"name\":\"string\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"constant.numeric.decimal.mermaid\"},\"4\":{\"name\":\"keyword.control.mermaid\"}},\"end\":\"$\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable\"}},\"comment\":\"(taskName)\",\"match\":\"(?i)\\\\s*,?\\\\s*([^,#\\\\n]+)\"}]}]},{\"begin\":\"^\\\\s*(xychart(?:-beta)?(?:\\\\s+horizontal)?)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"XY Chart\",\"end\":\"(^|\\\\G)(?=\\\\s*[`:~]{3,}\\\\s*$)\",\"patterns\":[{\"match\":\"\\\\%%.*\",\"name\":\"comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"string\"}},\"match\":\"(?i)^\\\\s*(title)\\\\s+(\\\\s*[\\\"()$&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*)\"},{\"begin\":\"(?i)^\\\\s*(x-axis)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(x-axis)\",\"end\":\"$\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.numeric.decimal.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"constant.numeric.decimal.mermaid\"}},\"comment\":\"(decimal) (-->) (decimal)\",\"match\":\"(?i)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)\\\\s*(-->)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)\"},{\"captures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(\\\"text\\\")\",\"match\":\"(?i)\\\\s+(\\\"[($&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*\\\")\"},{\"captures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(text)\",\"match\":\"(?i)\\\\s+([($&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w]*)\"},{\"begin\":\"\\\\s*(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"([)(text)(,)(text)*(])\",\"end\":\"\\\\s*(\\\\])\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.numeric.decimal.mermaid\"}},\"comment\":\"(decimal)\",\"match\":\"(?i)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)\"},{\"captures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(\\\"text\\\")\",\"match\":\"(?i)\\\\s*(\\\"[($&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*\\\")\"},{\"captures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(text)\",\"match\":\"(?i)\\\\s*([($&%\\\\^/#.?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(,)\",\"match\":\"(?i)\\\\s*(,)\"}]}]},{\"begin\":\"(?i)^\\\\s*(y-axis)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(y-axis)\",\"end\":\"$\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.numeric.decimal.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"},\"3\":{\"name\":\"constant.numeric.decimal.mermaid\"}},\"comment\":\"(decimal) (-->) (decimal)\",\"match\":\"(?i)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)\\\\s*(-->)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)\"},{\"captures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(\\\"text\\\")\",\"match\":\"(?i)\\\\s+(\\\"[($&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w\\\\s]*\\\")\"},{\"captures\":{\"1\":{\"name\":\"string\"}},\"comment\":\"(text)\",\"match\":\"(?i)\\\\s+([($&%\\\\^/#.,?!;:*+=<>\\\\'\\\\\\\\\\\\-\\\\w]*)\"}]},{\"begin\":\"(?i)^\\\\s*(line|bar)\\\\s*(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"},\"2\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(line|bar) ([)(decimal)+(])\",\"end\":\"\\\\s*(\\\\])\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.numeric.decimal.mermaid\"}},\"comment\":\"(decimal)\",\"match\":\"(?i)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.mermaid\"}},\"comment\":\"(,)\",\"match\":\"(?i)\\\\s*(,)\"}]}]}]},\"mermaid-ado-code-block\":{\"begin\":\"(?i)\\\\s*:::\\\\s*mermaid\\\\s*$\",\"contentName\":\"meta.embedded.block.mermaid\",\"end\":\"\\\\s*:::\\\\s*\",\"patterns\":[{\"include\":\"#mermaid\"}]},\"mermaid-code-block\":{\"begin\":\"(?i)(?<=[`~])mermaid(\\\\s+[^`~]*)?$\",\"contentName\":\"meta.embedded.block.mermaid\",\"end\":\"(^|\\\\G)(?=\\\\s*[`~]{3,}\\\\s*$)\",\"patterns\":[{\"include\":\"#mermaid\"}]},\"mermaid-code-block-with-attributes\":{\"begin\":\"(?i)(?<=[`~])\\\\{\\\\s*\\\\.?mermaid(\\\\s+[^`~]*)?$\",\"contentName\":\"meta.embedded.block.mermaid\",\"end\":\"(^|\\\\G)(?=\\\\s*[`~]{3,}\\\\s*$)\",\"patterns\":[{\"include\":\"#mermaid\"}]}},\"scopeName\":\"markdown.mermaid.codeblock\",\"aliases\":[\"mmd\"]}"))
2
+
3
+ export default [
4
+ lang
5
+ ]
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/mips.mjs ADDED
@@ -0,0 +1,2 @@
1
+ /* Alias mips for mipsasm */
2
+ export { default } from './mipsasm.mjs'
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
@@ -0,0 +1,5 @@
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"MIPS Assembly\",\"fileTypes\":[\"s\",\"mips\",\"spim\",\"asm\"],\"name\":\"mipsasm\",\"patterns\":[{\"comment\":\"ok actually this are instructions, but one also could call them funtions…\",\"match\":\"\\\\b(mul|abs|div|divu|mulo|mulou|neg|negu|not|rem|remu|rol|ror|li|seq|sge|sgeu|sgt|sgtu|sle|sleu|sne|b|beqz|bge|bgeu|bgt|bgtu|ble|bleu|blt|bltu|bnez|la|ld|ulh|ulhu|ulw|sd|ush|usw|move|mfc1\\\\.d|l\\\\.d|l\\\\.s|s\\\\.d|s\\\\.s)\\\\b\",\"name\":\"support.function.pseudo.mips\"},{\"match\":\"\\\\b(abs\\\\.d|abs\\\\.s|add|add\\\\.d|add\\\\.s|addi|addiu|addu|and|andi|bc1f|bc1t|beq|bgez|bgezal|bgtz|blez|bltz|bltzal|bne|break|c\\\\.eq\\\\.d|c\\\\.eq\\\\.s|c\\\\.le\\\\.d|c\\\\.le\\\\.s|c\\\\.lt\\\\.d|c\\\\.lt\\\\.s|ceil\\\\.w\\\\.d|ceil\\\\.w\\\\.s|clo|clz|cvt\\\\.d\\\\.s|cvt\\\\.d\\\\.w|cvt\\\\.s\\\\.d|cvt\\\\.s\\\\.w|cvt\\\\.w\\\\.d|cvt\\\\.w\\\\.s|div|div\\\\.d|div\\\\.s|divu|eret|floor\\\\.w\\\\.d|floor\\\\.w\\\\.s|j|jal|jalr|jr|lb|lbu|lh|lhu|ll|lui|lw|lwc1|lwl|lwr|madd|maddu|mfc0|mfc1|mfhi|mflo|mov\\\\.d|mov\\\\.s|movf|movf\\\\.d|movf\\\\.s|movn|movn\\\\.d|movn\\\\.s|movt|movt\\\\.d|movt\\\\.s|movz|movz\\\\.d|movz\\\\.s|msub|mtc0|mtc1|mthi|mtlo|mul|mul\\\\.d|mul\\\\.s|mult|multu|neg\\\\.d|neg\\\\.s|nop|nor|or|ori|round\\\\.w\\\\.d|round\\\\.w\\\\.s|sb|sc|sdc1|sh|sll|sllv|slt|slti|sltiu|sltu|sqrt\\\\.d|sqrt\\\\.s|sra|srav|srl|srlv|sub|sub\\\\.d|sub\\\\.s|subu|sw|swc1|swl|swr|syscall|teq|teqi|tge|tgei|tgeiu|tgeu|tlt|tlti|tltiu|tltu|trunc\\\\.w\\\\.d|trunc\\\\.w\\\\.s|xor|xori)\\\\b\",\"name\":\"support.function.mips\"},{\"match\":\"\\\\.(ascii|asciiz|byte|data|double|float|half|kdata|ktext|space|text|word|set\\\\s*(noat|at))\\\\b\",\"name\":\"storage.type.mips\"},{\"match\":\"\\\\.(align|extern||globl)\\\\b\",\"name\":\"storage.modifier.mips\"},{\"captures\":{\"1\":{\"name\":\"entity.name.function.label.mips\"}},\"match\":\"\\\\b([A-Za-z0-9_]+):\",\"name\":\"meta.function.label.mips\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.mips\"}},\"match\":\"(\\\\$)(0|[2-9]|1\\\\d|2[0-5]|2[89]|3[0-1])\\\\b\",\"name\":\"variable.other.register.usable.by-number.mips\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.mips\"}},\"match\":\"(\\\\$)(zero|v[01]|a[0-3]|t\\\\d|s[0-7]|gp|sp|fp|ra)\\\\b\",\"name\":\"variable.other.register.usable.by-name.mips\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.mips\"}},\"match\":\"(\\\\$)(at|k[01]|1|2[67])\\\\b\",\"name\":\"variable.other.register.reserved.mips\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.mips\"}},\"match\":\"(\\\\$)f(\\\\d|1\\\\d|2\\\\d|3[0-1])\\\\b\",\"name\":\"variable.other.register.usable.floating-point.mips\"},{\"match\":\"\\\\b\\\\d+\\\\.\\\\d+\\\\b\",\"name\":\"constant.numeric.float.mips\"},{\"match\":\"\\\\b(\\\\d+|0(x|X)[a-fA-F0-9]+)\\\\b\",\"name\":\"constant.numeric.integer.mips\"},{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.mips\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.mips\"}},\"name\":\"string.quoted.double.mips\",\"patterns\":[{\"match\":\"\\\\\\\\[rnt\\\\\\\\\\\"]\",\"name\":\"constant.character.escape.mips\"}]},{\"begin\":\"(^[ \\\\t]+)?(?=#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.mips\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.mips\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.number-sign.mips\"}]}],\"scopeName\":\"source.mips\",\"aliases\":[\"mips\"]}"))
2
+
3
+ export default [
4
+ lang
5
+ ]
package/dist/mmd.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/mmd.mjs ADDED
@@ -0,0 +1,2 @@
1
+ /* Alias mmd for mermaid */
2
+ export { default } from './mermaid.mjs'
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/mojo.mjs ADDED
@@ -0,0 +1,5 @@
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Mojo\",\"name\":\"mojo\",\"patterns\":[{\"include\":\"#statement\"},{\"include\":\"#expression\"}],\"repository\":{\"annotated-parameter\":{\"begin\":\"\\\\b([A-Za-z_]\\\\w*)\\\\s*(:)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.parameter.function.language.python\"},\"2\":{\"name\":\"punctuation.separator.annotation.python\"}},\"end\":\"(,)|(?=\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.separator.parameters.python\"}},\"patterns\":[{\"include\":\"#expression\"},{\"match\":\"=(?!=)\",\"name\":\"keyword.operator.assignment.python\"}]},\"assignment-operator\":{\"match\":\"<<=|>>=|//=|\\\\*\\\\*=|\\\\+=|-=|/=|@=|\\\\*=|%=|~=|\\\\^=|&=|\\\\|=|=(?!=)\",\"name\":\"keyword.operator.assignment.python\"},\"backticks\":{\"begin\":\"\\\\`\",\"end\":\"(?:\\\\`|(?<!\\\\\\\\)(\\\\n))\",\"name\":\"string.quoted.single.python\"},\"builtin-callables\":{\"patterns\":[{\"include\":\"#illegal-names\"},{\"include\":\"#illegal-object-name\"},{\"include\":\"#builtin-exceptions\"},{\"include\":\"#builtin-functions\"},{\"include\":\"#builtin-types\"}]},\"builtin-exceptions\":{\"match\":\"(?<!\\\\.)\\\\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|Windows|ZeroDivision|ModuleNotFound)Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|KeyboardInterrupt|GeneratorExit|(Base)?Exception)\\\\b\",\"name\":\"support.type.exception.python\"},\"builtin-functions\":{\"patterns\":[{\"match\":\"(?<!\\\\.)\\\\b(__import__|abs|aiter|all|any|anext|ascii|bin|breakpoint|callable|chr|compile|copyright|credits|delattr|dir|divmod|enumerate|eval|exec|exit|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|license|locals|map|max|memoryview|min|next|oct|open|ord|pow|print|quit|range|reload|repr|reversed|round|setattr|sorted|sum|vars|zip)\\\\b\",\"name\":\"support.function.builtin.python\"},{\"match\":\"(?<!\\\\.)\\\\b(file|reduce|intern|raw_input|unicode|cmp|basestring|execfile|long|xrange)\\\\b\",\"name\":\"variable.legacy.builtin.python\"}]},\"builtin-possible-callables\":{\"patterns\":[{\"include\":\"#builtin-callables\"},{\"include\":\"#magic-names\"}]},\"builtin-types\":{\"match\":\"(?<!\\\\.)\\\\b(__mlir_attr|__mlir_op|__mlir_type|bool|bytearray|bytes|classmethod|complex|dict|float|frozenset|int|list|object|property|set|slice|staticmethod|str|tuple|type|super)\\\\b\",\"name\":\"support.type.python\"},\"call-wrapper-inheritance\":{\"begin\":\"\\\\b(?=([A-Za-z_]\\\\w*)\\\\s*(\\\\())\",\"comment\":\"same as a function call, but in inheritance context\",\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.arguments.end.python\"}},\"name\":\"meta.function-call.python\",\"patterns\":[{\"include\":\"#inheritance-name\"},{\"include\":\"#function-arguments\"}]},\"class-declaration\":{\"patterns\":[{\"begin\":\"\\\\s*(class|struct|trait)\\\\s+(?=[A-Za-z_]\\\\w*\\\\s*(:|\\\\())\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.python\"}},\"end\":\"(:)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.section.class.begin.python\"}},\"name\":\"meta.class.python\",\"patterns\":[{\"include\":\"#class-name\"},{\"include\":\"#class-inheritance\"}]}]},\"class-inheritance\":{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.inheritance.begin.python\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.inheritance.end.python\"}},\"name\":\"meta.class.inheritance.python\",\"patterns\":[{\"match\":\"(\\\\*\\\\*|\\\\*)\",\"name\":\"keyword.operator.unpacking.arguments.python\"},{\"match\":\",\",\"name\":\"punctuation.separator.inheritance.python\"},{\"match\":\"=(?!=)\",\"name\":\"keyword.operator.assignment.python\"},{\"match\":\"\\\\bmetaclass\\\\b\",\"name\":\"support.type.metaclass.python\"},{\"include\":\"#illegal-names\"},{\"include\":\"#class-kwarg\"},{\"include\":\"#call-wrapper-inheritance\"},{\"include\":\"#expression-base\"},{\"include\":\"#member-access-class\"},{\"include\":\"#inheritance-identifier\"}]},\"class-kwarg\":{\"captures\":{\"1\":{\"name\":\"entity.other.inherited-class.python variable.parameter.class.python\"},\"2\":{\"name\":\"keyword.operator.assignment.python\"}},\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\s*(=)(?!=)\"},\"class-name\":{\"patterns\":[{\"include\":\"#illegal-object-name\"},{\"include\":\"#builtin-possible-callables\"},{\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\b\",\"name\":\"entity.name.type.class.python\"}]},\"codetags\":{\"captures\":{\"1\":{\"name\":\"keyword.codetag.notation.python\"}},\"match\":\"(?:\\\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\\\b)\"},\"comments\":{\"patterns\":[{\"begin\":\"(?:\\\\#\\\\s*(type:)\\\\s*+(?!$|\\\\#))\",\"beginCaptures\":{\"0\":{\"name\":\"meta.typehint.comment.python\"},\"1\":{\"name\":\"comment.typehint.directive.notation.python\"}},\"contentName\":\"meta.typehint.comment.python\",\"end\":\"(?:$|(?=\\\\#))\",\"name\":\"comment.line.number-sign.python\",\"patterns\":[{\"match\":\"\\\\Gignore(?=\\\\s*(?:$|\\\\#))\",\"name\":\"comment.typehint.ignore.notation.python\"},{\"match\":\"(?<!\\\\.)\\\\b(bool|bytes|float|int|object|str|List|Dict|Iterable|Sequence|Set|FrozenSet|Callable|Union|Tuple|Any|None)\\\\b\",\"name\":\"comment.typehint.type.notation.python\"},{\"match\":\"([\\\\[\\\\](),\\\\.=\\\\*]|(->))\",\"name\":\"comment.typehint.punctuation.notation.python\"},{\"match\":\"([A-Za-z_]\\\\w*)\",\"name\":\"comment.typehint.variable.notation.python\"}]},{\"include\":\"#comments-base\"}]},\"comments-base\":{\"begin\":\"(\\\\#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.python\"}},\"end\":\"($)\",\"name\":\"comment.line.number-sign.python\",\"patterns\":[{\"include\":\"#codetags\"}]},\"comments-string-double-three\":{\"begin\":\"(\\\\#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.python\"}},\"end\":\"($|(?=\\\"\\\"\\\"))\",\"name\":\"comment.line.number-sign.python\",\"patterns\":[{\"include\":\"#codetags\"}]},\"comments-string-single-three\":{\"begin\":\"(\\\\#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.python\"}},\"end\":\"($|(?='''))\",\"name\":\"comment.line.number-sign.python\",\"patterns\":[{\"include\":\"#codetags\"}]},\"curly-braces\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.dict.begin.python\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.dict.end.python\"}},\"patterns\":[{\"match\":\":\",\"name\":\"punctuation.separator.dict.python\"},{\"include\":\"#expression\"}]},\"decorator\":{\"begin\":\"^\\\\s*((@))\\\\s*(?=[A-Za-z_]\\\\w*)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.decorator.python\"},\"2\":{\"name\":\"punctuation.definition.decorator.python\"}},\"end\":\"(\\\\))(?:(.*?)(?=\\\\s*(?:\\\\#|$)))|(?=\\\\n|\\\\#)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.arguments.end.python\"},\"2\":{\"name\":\"invalid.illegal.decorator.python\"}},\"name\":\"meta.function.decorator.python\",\"patterns\":[{\"include\":\"#decorator-name\"},{\"include\":\"#function-arguments\"}]},\"decorator-name\":{\"patterns\":[{\"include\":\"#builtin-callables\"},{\"include\":\"#illegal-object-name\"},{\"captures\":{\"2\":{\"name\":\"punctuation.separator.period.python\"}},\"match\":\"([A-Za-z_]\\\\w*)|(\\\\.)\",\"name\":\"entity.name.function.decorator.python\"},{\"include\":\"#line-continuation\"},{\"captures\":{\"1\":{\"name\":\"invalid.illegal.decorator.python\"}},\"match\":\"\\\\s*([^(A-Za-z\\\\s_\\\\.#\\\\\\\\].*?)(?=\\\\#|$)\",\"name\":\"invalid.illegal.decorator.python\"}]},\"double-one-regexp-character-set\":{\"patterns\":[{\"match\":\"\\\\[\\\\^?\\\\](?!.*?\\\\])\"},{\"begin\":\"(\\\\[)(\\\\^)?(\\\\])?\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.character.set.begin.regexp constant.other.set.regexp\"},\"2\":{\"name\":\"keyword.operator.negation.regexp\"},\"3\":{\"name\":\"constant.character.set.regexp\"}},\"end\":\"(\\\\]|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.character.set.end.regexp constant.other.set.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.character.set.regexp\",\"patterns\":[{\"include\":\"#regexp-charecter-set-escapes\"},{\"match\":\"[^\\\\n]\",\"name\":\"constant.character.set.regexp\"}]}]},\"double-one-regexp-comments\":{\"begin\":\"\\\\(\\\\?#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.comment.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.comment.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"comment.regexp\",\"patterns\":[{\"include\":\"#codetags\"}]},\"double-one-regexp-conditional\":{\"begin\":\"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+[0-9A-Za-z]+)?|\\\\d+)\\\\)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.conditional.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.conditional.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"double-one-regexp-expression\":{\"patterns\":[{\"include\":\"#regexp-base-expression\"},{\"include\":\"#double-one-regexp-character-set\"},{\"include\":\"#double-one-regexp-comments\"},{\"include\":\"#regexp-flags\"},{\"include\":\"#double-one-regexp-named-group\"},{\"include\":\"#regexp-backreference\"},{\"include\":\"#double-one-regexp-lookahead\"},{\"include\":\"#double-one-regexp-lookahead-negative\"},{\"include\":\"#double-one-regexp-lookbehind\"},{\"include\":\"#double-one-regexp-lookbehind-negative\"},{\"include\":\"#double-one-regexp-conditional\"},{\"include\":\"#double-one-regexp-parentheses-non-capturing\"},{\"include\":\"#double-one-regexp-parentheses\"}]},\"double-one-regexp-lookahead\":{\"begin\":\"(\\\\()\\\\?=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookahead.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookahead.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"double-one-regexp-lookahead-negative\":{\"begin\":\"(\\\\()\\\\?!\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookahead.negative.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookahead.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"double-one-regexp-lookbehind\":{\"begin\":\"(\\\\()\\\\?<=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookbehind.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookbehind.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"double-one-regexp-lookbehind-negative\":{\"begin\":\"(\\\\()\\\\?<!\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookbehind.negative.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookbehind.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"double-one-regexp-named-group\":{\"begin\":\"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+[0-9A-Za-z]+)?>)\",\"beginCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp\"},\"2\":{\"name\":\"entity.name.tag.named.group.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.named.regexp\",\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"double-one-regexp-parentheses\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"double-one-regexp-parentheses-non-capturing\":{\"begin\":\"\\\\(\\\\?:\",\"beginCaptures\":{\"0\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"double-three-regexp-character-set\":{\"patterns\":[{\"match\":\"\\\\[\\\\^?\\\\](?!.*?\\\\])\"},{\"begin\":\"(\\\\[)(\\\\^)?(\\\\])?\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.character.set.begin.regexp constant.other.set.regexp\"},\"2\":{\"name\":\"keyword.operator.negation.regexp\"},\"3\":{\"name\":\"constant.character.set.regexp\"}},\"end\":\"(\\\\]|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.character.set.end.regexp constant.other.set.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.character.set.regexp\",\"patterns\":[{\"include\":\"#regexp-charecter-set-escapes\"},{\"match\":\"[^\\\\n]\",\"name\":\"constant.character.set.regexp\"}]}]},\"double-three-regexp-comments\":{\"begin\":\"\\\\(\\\\?#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.comment.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.comment.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"comment.regexp\",\"patterns\":[{\"include\":\"#codetags\"}]},\"double-three-regexp-conditional\":{\"begin\":\"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+[0-9A-Za-z]+)?|\\\\d+)\\\\)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.conditional.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.conditional.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-three-regexp-expression\"},{\"include\":\"#comments-string-double-three\"}]},\"double-three-regexp-expression\":{\"patterns\":[{\"include\":\"#regexp-base-expression\"},{\"include\":\"#double-three-regexp-character-set\"},{\"include\":\"#double-three-regexp-comments\"},{\"include\":\"#regexp-flags\"},{\"include\":\"#double-three-regexp-named-group\"},{\"include\":\"#regexp-backreference\"},{\"include\":\"#double-three-regexp-lookahead\"},{\"include\":\"#double-three-regexp-lookahead-negative\"},{\"include\":\"#double-three-regexp-lookbehind\"},{\"include\":\"#double-three-regexp-lookbehind-negative\"},{\"include\":\"#double-three-regexp-conditional\"},{\"include\":\"#double-three-regexp-parentheses-non-capturing\"},{\"include\":\"#double-three-regexp-parentheses\"},{\"include\":\"#comments-string-double-three\"}]},\"double-three-regexp-lookahead\":{\"begin\":\"(\\\\()\\\\?=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookahead.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookahead.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-three-regexp-expression\"},{\"include\":\"#comments-string-double-three\"}]},\"double-three-regexp-lookahead-negative\":{\"begin\":\"(\\\\()\\\\?!\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookahead.negative.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookahead.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-three-regexp-expression\"},{\"include\":\"#comments-string-double-three\"}]},\"double-three-regexp-lookbehind\":{\"begin\":\"(\\\\()\\\\?<=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookbehind.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookbehind.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-three-regexp-expression\"},{\"include\":\"#comments-string-double-three\"}]},\"double-three-regexp-lookbehind-negative\":{\"begin\":\"(\\\\()\\\\?<!\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookbehind.negative.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookbehind.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-three-regexp-expression\"},{\"include\":\"#comments-string-double-three\"}]},\"double-three-regexp-named-group\":{\"begin\":\"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+[0-9A-Za-z]+)?>)\",\"beginCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp\"},\"2\":{\"name\":\"entity.name.tag.named.group.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.named.regexp\",\"patterns\":[{\"include\":\"#double-three-regexp-expression\"},{\"include\":\"#comments-string-double-three\"}]},\"double-three-regexp-parentheses\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-three-regexp-expression\"},{\"include\":\"#comments-string-double-three\"}]},\"double-three-regexp-parentheses-non-capturing\":{\"begin\":\"\\\\(\\\\?:\",\"beginCaptures\":{\"0\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\"\\\"\\\"))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#double-three-regexp-expression\"},{\"include\":\"#comments-string-double-three\"}]},\"ellipsis\":{\"match\":\"\\\\.\\\\.\\\\.\",\"name\":\"constant.other.ellipsis.python\"},\"escape-sequence\":{\"match\":\"\\\\\\\\(x[0-9A-Fa-f]{2}|[0-7]{1,3}|[\\\\\\\\\\\"'abfnrtv])\",\"name\":\"constant.character.escape.python\"},\"escape-sequence-unicode\":{\"patterns\":[{\"match\":\"\\\\\\\\(u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8}|N\\\\{[\\\\w\\\\s]+?\\\\})\",\"name\":\"constant.character.escape.python\"}]},\"expression\":{\"comment\":\"All valid Python expressions\",\"patterns\":[{\"include\":\"#expression-base\"},{\"include\":\"#member-access\"},{\"comment\":\"Tokenize identifiers to help linters\",\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\b\"}]},\"expression-bare\":{\"comment\":\"valid Python expressions w/o comments and line continuation\",\"patterns\":[{\"include\":\"#backticks\"},{\"include\":\"#literal\"},{\"include\":\"#regexp\"},{\"include\":\"#string\"},{\"include\":\"#lambda\"},{\"include\":\"#generator\"},{\"include\":\"#illegal-operator\"},{\"include\":\"#operator\"},{\"include\":\"#curly-braces\"},{\"include\":\"#item-access\"},{\"include\":\"#list\"},{\"include\":\"#odd-function-call\"},{\"include\":\"#round-braces\"},{\"include\":\"#function-call\"},{\"include\":\"#builtin-functions\"},{\"include\":\"#builtin-types\"},{\"include\":\"#builtin-exceptions\"},{\"include\":\"#magic-names\"},{\"include\":\"#special-names\"},{\"include\":\"#illegal-names\"},{\"include\":\"#special-variables\"},{\"include\":\"#ellipsis\"},{\"include\":\"#punctuation\"},{\"include\":\"#line-continuation\"}]},\"expression-base\":{\"comment\":\"valid Python expressions with comments and line continuation\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expression-bare\"},{\"include\":\"#line-continuation\"}]},\"f-expression\":{\"comment\":\"All valid Python expressions, except comments and line continuation\",\"patterns\":[{\"include\":\"#expression-bare\"},{\"include\":\"#member-access\"},{\"comment\":\"Tokenize identifiers to help linters\",\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\b\"}]},\"fregexp-base-expression\":{\"patterns\":[{\"include\":\"#fregexp-quantifier\"},{\"include\":\"#fstring-formatting-braces\"},{\"match\":\"\\\\{.*?\\\\}\"},{\"include\":\"#regexp-base-common\"}]},\"fregexp-quantifier\":{\"match\":\"\\\\{\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)\\\\}\\\\}\",\"name\":\"keyword.operator.quantifier.regexp\"},\"fstring-fnorm-quoted-multi-line\":{\"begin\":\"(\\\\b[fF])([bBuU])?('''|\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"string.interpolated.python string.quoted.multi.python storage.type.string.python\"},\"2\":{\"name\":\"invalid.illegal.prefix.python\"},\"3\":{\"name\":\"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python\"}},\"end\":\"(\\\\3)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.fstring.python\",\"patterns\":[{\"include\":\"#fstring-guts\"},{\"include\":\"#fstring-illegal-multi-brace\"},{\"include\":\"#fstring-multi-brace\"},{\"include\":\"#fstring-multi-core\"}]},\"fstring-fnorm-quoted-single-line\":{\"begin\":\"(\\\\b[fF])([bBuU])?((['\\\"]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.interpolated.python string.quoted.single.python storage.type.string.python\"},\"2\":{\"name\":\"invalid.illegal.prefix.python\"},\"3\":{\"name\":\"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python\"}},\"end\":\"(\\\\3)|((?<!\\\\\\\\)\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.fstring.python\",\"patterns\":[{\"include\":\"#fstring-guts\"},{\"include\":\"#fstring-illegal-single-brace\"},{\"include\":\"#fstring-single-brace\"},{\"include\":\"#fstring-single-core\"}]},\"fstring-formatting\":{\"patterns\":[{\"include\":\"#fstring-formatting-braces\"},{\"include\":\"#fstring-formatting-singe-brace\"}]},\"fstring-formatting-braces\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"},\"2\":{\"name\":\"invalid.illegal.brace.python\"},\"3\":{\"name\":\"constant.character.format.placeholder.other.python\"}},\"comment\":\"empty braces are illegal\",\"match\":\"({)(\\\\s*?)(})\"},{\"match\":\"({{|}})\",\"name\":\"constant.character.escape.python\"}]},\"fstring-formatting-singe-brace\":{\"match\":\"(}(?!}))\",\"name\":\"invalid.illegal.brace.python\"},\"fstring-guts\":{\"patterns\":[{\"include\":\"#escape-sequence-unicode\"},{\"include\":\"#escape-sequence\"},{\"include\":\"#string-line-continuation\"},{\"include\":\"#fstring-formatting\"}]},\"fstring-illegal-multi-brace\":{\"patterns\":[{\"include\":\"#impossible\"}]},\"fstring-illegal-single-brace\":{\"begin\":\"(\\\\{)(?=[^\\\\n}]*$\\\\n?)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"}},\"comment\":\"it is illegal to have a multiline brace inside a single-line string\",\"end\":\"(\\\\})|(?=\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"}},\"patterns\":[{\"include\":\"#fstring-terminator-single\"},{\"include\":\"#f-expression\"}]},\"fstring-multi-brace\":{\"begin\":\"(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"}},\"comment\":\"value interpolation using { ... }\",\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"}},\"patterns\":[{\"include\":\"#fstring-terminator-multi\"},{\"include\":\"#f-expression\"}]},\"fstring-multi-core\":{\"match\":\"(.+?)(($\\\\n?)|(?=[\\\\\\\\}{]|'''|\\\"\\\"\\\"))|\\\\n\",\"name\":\"string.interpolated.python string.quoted.multi.python\"},\"fstring-normf-quoted-multi-line\":{\"begin\":\"(\\\\b[bBuU])([fF])('''|\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"invalid.illegal.prefix.python\"},\"2\":{\"name\":\"string.interpolated.python string.quoted.multi.python storage.type.string.python\"},\"3\":{\"name\":\"punctuation.definition.string.begin.python string.quoted.multi.python\"}},\"end\":\"(\\\\3)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.fstring.python\",\"patterns\":[{\"include\":\"#fstring-guts\"},{\"include\":\"#fstring-illegal-multi-brace\"},{\"include\":\"#fstring-multi-brace\"},{\"include\":\"#fstring-multi-core\"}]},\"fstring-normf-quoted-single-line\":{\"begin\":\"(\\\\b[bBuU])([fF])((['\\\"]))\",\"beginCaptures\":{\"1\":{\"name\":\"invalid.illegal.prefix.python\"},\"2\":{\"name\":\"string.interpolated.python string.quoted.single.python storage.type.string.python\"},\"3\":{\"name\":\"punctuation.definition.string.begin.python string.quoted.single.python\"}},\"end\":\"(\\\\3)|((?<!\\\\\\\\)\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.fstring.python\",\"patterns\":[{\"include\":\"#fstring-guts\"},{\"include\":\"#fstring-illegal-single-brace\"},{\"include\":\"#fstring-single-brace\"},{\"include\":\"#fstring-single-core\"}]},\"fstring-raw-guts\":{\"patterns\":[{\"include\":\"#string-consume-escape\"},{\"include\":\"#fstring-formatting\"}]},\"fstring-raw-multi-core\":{\"match\":\"(.+?)(($\\\\n?)|(?=[\\\\\\\\}{]|'''|\\\"\\\"\\\"))|\\\\n\",\"name\":\"string.interpolated.python string.quoted.raw.multi.python\"},\"fstring-raw-quoted-multi-line\":{\"begin\":\"(\\\\b(?:[rR][fF]|[fF][rR]))('''|\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"string.interpolated.python string.quoted.raw.multi.python storage.type.string.python\"},\"2\":{\"name\":\"punctuation.definition.string.begin.python string.quoted.raw.multi.python\"}},\"end\":\"(\\\\2)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.multi.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.fstring.python\",\"patterns\":[{\"include\":\"#fstring-raw-guts\"},{\"include\":\"#fstring-illegal-multi-brace\"},{\"include\":\"#fstring-multi-brace\"},{\"include\":\"#fstring-raw-multi-core\"}]},\"fstring-raw-quoted-single-line\":{\"begin\":\"(\\\\b(?:[rR][fF]|[fF][rR]))((['\\\"]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.interpolated.python string.quoted.raw.single.python storage.type.string.python\"},\"2\":{\"name\":\"punctuation.definition.string.begin.python string.quoted.raw.single.python\"}},\"end\":\"(\\\\2)|((?<!\\\\\\\\)\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.single.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.fstring.python\",\"patterns\":[{\"include\":\"#fstring-raw-guts\"},{\"include\":\"#fstring-illegal-single-brace\"},{\"include\":\"#fstring-single-brace\"},{\"include\":\"#fstring-raw-single-core\"}]},\"fstring-raw-single-core\":{\"match\":\"(.+?)(($\\\\n?)|(?=[\\\\\\\\}{]|(['\\\"])|((?<!\\\\\\\\)\\\\n)))|\\\\n\",\"name\":\"string.interpolated.python string.quoted.raw.single.python\"},\"fstring-single-brace\":{\"begin\":\"(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"}},\"comment\":\"value interpolation using { ... }\",\"end\":\"(\\\\})|(?=\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"}},\"patterns\":[{\"include\":\"#fstring-terminator-single\"},{\"include\":\"#f-expression\"}]},\"fstring-single-core\":{\"match\":\"(.+?)(($\\\\n?)|(?=[\\\\\\\\}{]|(['\\\"])|((?<!\\\\\\\\)\\\\n)))|\\\\n\",\"name\":\"string.interpolated.python string.quoted.single.python\"},\"fstring-terminator-multi\":{\"patterns\":[{\"match\":\"(=(![rsa])?)(?=})\",\"name\":\"storage.type.format.python\"},{\"match\":\"(=?![rsa])(?=})\",\"name\":\"storage.type.format.python\"},{\"captures\":{\"1\":{\"name\":\"storage.type.format.python\"},\"2\":{\"name\":\"storage.type.format.python\"}},\"match\":\"((?:=?)(?:![rsa])?)(:\\\\w?[<>=^]?[-+ ]?\\\\#?\\\\d*,?(\\\\.\\\\d+)?[bcdeEfFgGnosxX%]?)(?=})\"},{\"include\":\"#fstring-terminator-multi-tail\"}]},\"fstring-terminator-multi-tail\":{\"begin\":\"((?:=?)(?:![rsa])?)(:)(?=.*?{)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.format.python\"},\"2\":{\"name\":\"storage.type.format.python\"}},\"end\":\"(?=})\",\"patterns\":[{\"include\":\"#fstring-illegal-multi-brace\"},{\"include\":\"#fstring-multi-brace\"},{\"match\":\"([bcdeEfFgGnosxX%])(?=})\",\"name\":\"storage.type.format.python\"},{\"match\":\"(\\\\.\\\\d+)\",\"name\":\"storage.type.format.python\"},{\"match\":\"(,)\",\"name\":\"storage.type.format.python\"},{\"match\":\"(\\\\d+)\",\"name\":\"storage.type.format.python\"},{\"match\":\"(\\\\#)\",\"name\":\"storage.type.format.python\"},{\"match\":\"([-+ ])\",\"name\":\"storage.type.format.python\"},{\"match\":\"([<>=^])\",\"name\":\"storage.type.format.python\"},{\"match\":\"(\\\\w)\",\"name\":\"storage.type.format.python\"}]},\"fstring-terminator-single\":{\"patterns\":[{\"match\":\"(=(![rsa])?)(?=})\",\"name\":\"storage.type.format.python\"},{\"match\":\"(=?![rsa])(?=})\",\"name\":\"storage.type.format.python\"},{\"captures\":{\"1\":{\"name\":\"storage.type.format.python\"},\"2\":{\"name\":\"storage.type.format.python\"}},\"match\":\"((?:=?)(?:![rsa])?)(:\\\\w?[<>=^]?[-+ ]?\\\\#?\\\\d*,?(\\\\.\\\\d+)?[bcdeEfFgGnosxX%]?)(?=})\"},{\"include\":\"#fstring-terminator-single-tail\"}]},\"fstring-terminator-single-tail\":{\"begin\":\"((?:=?)(?:![rsa])?)(:)(?=.*?{)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.format.python\"},\"2\":{\"name\":\"storage.type.format.python\"}},\"end\":\"(?=})|(?=\\\\n)\",\"patterns\":[{\"include\":\"#fstring-illegal-single-brace\"},{\"include\":\"#fstring-single-brace\"},{\"match\":\"([bcdeEfFgGnosxX%])(?=})\",\"name\":\"storage.type.format.python\"},{\"match\":\"(\\\\.\\\\d+)\",\"name\":\"storage.type.format.python\"},{\"match\":\"(,)\",\"name\":\"storage.type.format.python\"},{\"match\":\"(\\\\d+)\",\"name\":\"storage.type.format.python\"},{\"match\":\"(\\\\#)\",\"name\":\"storage.type.format.python\"},{\"match\":\"([-+ ])\",\"name\":\"storage.type.format.python\"},{\"match\":\"([<>=^])\",\"name\":\"storage.type.format.python\"},{\"match\":\"(\\\\w)\",\"name\":\"storage.type.format.python\"}]},\"function-arguments\":{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.arguments.begin.python\"}},\"contentName\":\"meta.function-call.arguments.python\",\"end\":\"(?=\\\\))(?!\\\\)\\\\s*\\\\()\",\"patterns\":[{\"match\":\"(,)\",\"name\":\"punctuation.separator.arguments.python\"},{\"captures\":{\"1\":{\"name\":\"keyword.operator.unpacking.arguments.python\"}},\"match\":\"(?:(?<=[,(])|^)\\\\s*(\\\\*{1,2})\"},{\"include\":\"#lambda-incomplete\"},{\"include\":\"#illegal-names\"},{\"captures\":{\"1\":{\"name\":\"variable.parameter.function-call.python\"},\"2\":{\"name\":\"keyword.operator.assignment.python\"}},\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\s*(=)(?!=)\"},{\"match\":\"=(?!=)\",\"name\":\"keyword.operator.assignment.python\"},{\"include\":\"#expression\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.arguments.end.python\"},\"2\":{\"name\":\"punctuation.definition.arguments.begin.python\"}},\"match\":\"\\\\s*(\\\\))\\\\s*(\\\\()\"}]},\"function-call\":{\"begin\":\"\\\\b(?=([A-Za-z_]\\\\w*)\\\\s*(\\\\())\",\"comment\":\"Regular function call of the type \\\"name(args)\\\"\",\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.arguments.end.python\"}},\"name\":\"meta.function-call.python\",\"patterns\":[{\"include\":\"#special-variables\"},{\"include\":\"#function-name\"},{\"include\":\"#function-arguments\"}]},\"function-declaration\":{\"begin\":\"\\\\s*(?:\\\\b(async)\\\\s+)?\\\\b(def|fn)\\\\s+(?=[A-Za-z_][\\\\w]*\\\\s*[(\\\\[])\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.async.python\"},\"2\":{\"name\":\"storage.type.function.python\"}},\"end\":\"(:|(?=[#'\\\"\\\\n]))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.section.function.begin.python\"}},\"name\":\"meta.function.python\",\"patterns\":[{\"include\":\"#function-modifier\"},{\"include\":\"#function-def-name\"},{\"include\":\"#parameters\"},{\"include\":\"#meta_parameters\"},{\"include\":\"#line-continuation\"},{\"include\":\"#return-annotation\"}]},\"function-def-name\":{\"patterns\":[{\"include\":\"#illegal-object-name\"},{\"include\":\"#builtin-possible-callables\"},{\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\b\",\"name\":\"entity.name.function.python\"}]},\"function-modifier\":{\"match\":\"(raises|capturing)\",\"name\":\"storage.modifier\"},\"function-name\":{\"patterns\":[{\"include\":\"#builtin-possible-callables\"},{\"comment\":\"Some color schemas support meta.function-call.generic scope\",\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\b\",\"name\":\"meta.function-call.generic.python\"}]},\"generator\":{\"begin\":\"\\\\bfor\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.flow.python\"}},\"comment\":\"Match \\\"for ... in\\\" construct used in generators and for loops to\\ncorrectly identify the \\\"in\\\" as a control flow keyword.\\n\",\"end\":\"\\\\bin\\\\b\",\"endCaptures\":{\"0\":{\"name\":\"keyword.control.flow.python\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"illegal-names\":{\"captures\":{\"1\":{\"name\":\"keyword.control.flow.python\"},\"2\":{\"name\":\"storage.type.function.python\"},\"3\":{\"name\":\"keyword.control.import.python\"}},\"match\":\"\\\\b(?:(and|assert|async|await|break|class|struct|trait|continue|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\\\.)lambda|lambda(?=\\\\s*[\\\\.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(def|fn|capturing|raises)|(as|import))\\\\b\"},\"illegal-object-name\":{\"comment\":\"It's illegal to name class or function \\\"True\\\"\",\"match\":\"\\\\b(True|False|None)\\\\b\",\"name\":\"keyword.illegal.name.python\"},\"illegal-operator\":{\"patterns\":[{\"match\":\"&&|\\\\|\\\\||--|\\\\+\\\\+\",\"name\":\"invalid.illegal.operator.python\"},{\"match\":\"[?$]\",\"name\":\"invalid.illegal.operator.python\"},{\"comment\":\"We don't want `!` to flash when we're typing `!=`\",\"match\":\"!\\\\b\",\"name\":\"invalid.illegal.operator.python\"}]},\"import\":{\"comment\":\"Import statements used to correctly mark `from`, `import`, and `as`\\n\",\"patterns\":[{\"begin\":\"\\\\b(?<!\\\\.)(from)\\\\b(?=.+import)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.import.python\"}},\"end\":\"$|(?=import)\",\"patterns\":[{\"match\":\"\\\\.+\",\"name\":\"punctuation.separator.period.python\"},{\"include\":\"#expression\"}]},{\"begin\":\"\\\\b(?<!\\\\.)(import)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.import.python\"}},\"end\":\"$\",\"patterns\":[{\"match\":\"\\\\b(?<!\\\\.)as\\\\b\",\"name\":\"keyword.control.import.python\"},{\"include\":\"#expression\"}]}]},\"impossible\":{\"comment\":\"This is a special rule that should be used where no match is desired. It is not a good idea to match something like '1{0}' because in some cases that can result in infinite loops in token generation. So the rule instead matches and impossible expression to allow a match to fail and move to the next token.\",\"match\":\"$.^\"},\"inheritance-identifier\":{\"captures\":{\"1\":{\"name\":\"entity.other.inherited-class.python\"}},\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\b\"},\"inheritance-name\":{\"patterns\":[{\"include\":\"#lambda-incomplete\"},{\"include\":\"#builtin-possible-callables\"},{\"include\":\"#inheritance-identifier\"}]},\"item-access\":{\"patterns\":[{\"begin\":\"\\\\b(?=[A-Za-z_]\\\\w*\\\\s*\\\\[)\",\"end\":\"(\\\\])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.arguments.end.python\"}},\"name\":\"meta.item-access.python\",\"patterns\":[{\"include\":\"#item-name\"},{\"include\":\"#item-index\"},{\"include\":\"#expression\"}]}]},\"item-index\":{\"begin\":\"(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.arguments.begin.python\"}},\"contentName\":\"meta.item-access.arguments.python\",\"end\":\"(?=\\\\])\",\"patterns\":[{\"match\":\":\",\"name\":\"punctuation.separator.slice.python\"},{\"include\":\"#expression\"}]},\"item-name\":{\"patterns\":[{\"include\":\"#special-variables\"},{\"include\":\"#builtin-functions\"},{\"include\":\"#special-names\"},{\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\b\",\"name\":\"meta.indexed-name.python\"}]},\"lambda\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.flow.python\"}},\"match\":\"((?<=\\\\.)lambda|lambda(?=\\\\s*[\\\\.=]))\"},{\"captures\":{\"1\":{\"name\":\"storage.type.function.lambda.python\"}},\"match\":\"\\\\b(lambda)\\\\s*?(?=[,\\\\n]|$)\"},{\"begin\":\"\\\\b(lambda)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.lambda.python\"}},\"contentName\":\"meta.function.lambda.parameters.python\",\"end\":\"(:)|(\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.section.function.lambda.begin.python\"}},\"name\":\"meta.lambda-function.python\",\"patterns\":[{\"match\":\"\\\\b(owned|borrowed|inout)\\\\b\",\"name\":\"storage.modifier\"},{\"match\":\"/\",\"name\":\"keyword.operator.positional.parameter.python\"},{\"match\":\"(\\\\*\\\\*|\\\\*)\",\"name\":\"keyword.operator.unpacking.parameter.python\"},{\"include\":\"#lambda-nested-incomplete\"},{\"include\":\"#illegal-names\"},{\"captures\":{\"1\":{\"name\":\"variable.parameter.function.language.python\"},\"2\":{\"name\":\"punctuation.separator.parameters.python\"}},\"match\":\"([A-Za-z_]\\\\w*)\\\\s*(?:(,)|(?=:|$))\"},{\"include\":\"#comments\"},{\"include\":\"#backticks\"},{\"include\":\"#lambda-parameter-with-default\"},{\"include\":\"#line-continuation\"},{\"include\":\"#illegal-operator\"}]}]},\"lambda-incomplete\":{\"match\":\"\\\\blambda(?=\\\\s*[,)])\",\"name\":\"storage.type.function.lambda.python\"},\"lambda-nested-incomplete\":{\"match\":\"\\\\blambda(?=\\\\s*[:,)])\",\"name\":\"storage.type.function.lambda.python\"},\"lambda-parameter-with-default\":{\"begin\":\"\\\\b([A-Za-z_]\\\\w*)\\\\s*(=)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.parameter.function.language.python\"},\"2\":{\"name\":\"keyword.operator.python\"}},\"end\":\"(,)|(?=:|$)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.separator.parameters.python\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"line-continuation\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.separator.continuation.line.python\"},\"2\":{\"name\":\"invalid.illegal.line.continuation.python\"}},\"match\":\"(\\\\\\\\)\\\\s*(\\\\S.*$\\\\n?)\"},{\"begin\":\"(\\\\\\\\)\\\\s*$\\\\n?\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.continuation.line.python\"}},\"end\":\"(?=^\\\\s*$)|(?!(\\\\s*[rR]?(\\\\'\\\\'\\\\'|\\\\\\\"\\\\\\\"\\\\\\\"|\\\\'|\\\\\\\"))|(\\\\G$))\",\"patterns\":[{\"include\":\"#regexp\"},{\"include\":\"#string\"}]}]},\"list\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.list.begin.python\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.list.end.python\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"literal\":{\"patterns\":[{\"match\":\"\\\\b(True|False|None|NotImplemented|Ellipsis)\\\\b\",\"name\":\"constant.language.python\"},{\"include\":\"#number\"}]},\"loose-default\":{\"begin\":\"(=)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.python\"}},\"end\":\"(,)|(?=\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.separator.parameters.python\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"magic-function-names\":{\"captures\":{\"1\":{\"name\":\"support.function.magic.python\"}},\"comment\":\"these methods have magic interpretation by python and are generally called\\nindirectly through syntactic constructs\\n\",\"match\":\"\\\\b(__(?:abs|add|aenter|aexit|aiter|and|anext|await|bool|call|ceil|class_getitem|cmp|coerce|complex|contains|copy|deepcopy|del|delattr|delete|delitem|delslice|dir|div|divmod|enter|eq|exit|float|floor|floordiv|format|ge|get|getattr|getattribute|getinitargs|getitem|getnewargs|getslice|getstate|gt|hash|hex|iadd|iand|idiv|ifloordiv||ilshift|imod|imul|index|init|instancecheck|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|le|len|long|lshift|lt|missing|mod|mul|ne|neg|new|next|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|reduce|reduce_ex|repr|reversed|rfloordiv||rlshift|rmod|rmul|ror|round|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|set_name|setslice|setstate|sizeof|str|sub|subclasscheck|truediv|trunc|unicode|xor|matmul|rmatmul|imatmul|init_subclass|set_name|fspath|bytes|prepare|length_hint)__)\\\\b\"},\"magic-names\":{\"patterns\":[{\"include\":\"#magic-function-names\"},{\"include\":\"#magic-variable-names\"}]},\"magic-variable-names\":{\"captures\":{\"1\":{\"name\":\"support.variable.magic.python\"}},\"comment\":\"magic variables which a class/module may have.\",\"match\":\"\\\\b(__(?:all|annotations|bases|builtins|class|struct|trait|closure|code|debug|defaults|dict|doc|file|func|globals|kwdefaults|match_args|members|metaclass|methods|module|mro|mro_entries|name|qualname|post_init|self|signature|slots|subclasses|version|weakref|wrapped|classcell|spec|path|package|future|traceback)__)\\\\b\"},\"member-access\":{\"begin\":\"(\\\\.)\\\\s*(?!\\\\.)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.period.python\"}},\"end\":\"(?<=\\\\S)(?=\\\\W)|(^|(?<=\\\\s))(?=[^\\\\\\\\\\\\w\\\\s])|$\",\"name\":\"meta.member.access.python\",\"patterns\":[{\"include\":\"#function-call\"},{\"include\":\"#member-access-base\"},{\"include\":\"#member-access-attribute\"}]},\"member-access-attribute\":{\"comment\":\"Highlight attribute access in otherwise non-specialized cases.\",\"match\":\"\\\\b([A-Za-z_]\\\\w*)\\\\b\",\"name\":\"meta.attribute.python\"},\"member-access-base\":{\"patterns\":[{\"include\":\"#magic-names\"},{\"include\":\"#illegal-names\"},{\"include\":\"#illegal-object-name\"},{\"include\":\"#special-names\"},{\"include\":\"#line-continuation\"},{\"include\":\"#item-access\"}]},\"member-access-class\":{\"begin\":\"(\\\\.)\\\\s*(?!\\\\.)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.period.python\"}},\"end\":\"(?<=\\\\S)(?=\\\\W)|$\",\"name\":\"meta.member.access.python\",\"patterns\":[{\"include\":\"#call-wrapper-inheritance\"},{\"include\":\"#member-access-base\"},{\"include\":\"#inheritance-identifier\"}]},\"meta_parameters\":{\"begin\":\"(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.python\"}},\"end\":\"(\\\\])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.end.python\"}},\"name\":\"meta.function.parameters.python\",\"patterns\":[{\"begin\":\"\\\\b([A-Za-z_]\\\\w*)\\\\s*(:)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.parameter.function.language.python\"},\"2\":{\"name\":\"punctuation.separator.annotation.python\"}},\"end\":\"(,)|(?=\\\\])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.separator.parameters.python\"}},\"patterns\":[{\"include\":\"#expression\"}]},{\"include\":\"#comments\"}]},\"number\":{\"name\":\"constant.numeric.python\",\"patterns\":[{\"include\":\"#number-float\"},{\"include\":\"#number-dec\"},{\"include\":\"#number-hex\"},{\"include\":\"#number-oct\"},{\"include\":\"#number-bin\"},{\"include\":\"#number-long\"},{\"match\":\"\\\\b\\\\d+\\\\w+\",\"name\":\"invalid.illegal.name.python\"}]},\"number-bin\":{\"captures\":{\"1\":{\"name\":\"storage.type.number.python\"}},\"match\":\"(?<![\\\\w\\\\.])(0[bB])(_?[01])+\\\\b\",\"name\":\"constant.numeric.bin.python\"},\"number-dec\":{\"captures\":{\"1\":{\"name\":\"storage.type.imaginary.number.python\"},\"2\":{\"name\":\"invalid.illegal.dec.python\"}},\"match\":\"(?<![\\\\w\\\\.])(?:[1-9](?:_?\\\\d)*|0+|\\\\d(?:_?\\\\d)*([jJ])|0(\\\\d+)(?![eE\\\\.]))\\\\b\",\"name\":\"constant.numeric.dec.python\"},\"number-float\":{\"captures\":{\"1\":{\"name\":\"storage.type.imaginary.number.python\"}},\"match\":\"(?<!\\\\w)(?:(?:\\\\.\\\\d(?:_?\\\\d)*|\\\\d(?:_?\\\\d)*\\\\.\\\\d(?:_?\\\\d)*|\\\\d(?:_?\\\\d)*\\\\.)(?:[eE][+-]?\\\\d(?:_?\\\\d)*)?|\\\\d(?:_?\\\\d)*(?:[eE][+-]?\\\\d(?:_?\\\\d)*))([jJ])?\\\\b\",\"name\":\"constant.numeric.float.python\"},\"number-hex\":{\"captures\":{\"1\":{\"name\":\"storage.type.number.python\"}},\"match\":\"(?<![\\\\w\\\\.])(0[xX])(_?[0-9a-fA-F])+\\\\b\",\"name\":\"constant.numeric.hex.python\"},\"number-long\":{\"captures\":{\"2\":{\"name\":\"storage.type.number.python\"}},\"comment\":\"this is to support python2 syntax for long ints\",\"match\":\"(?<![\\\\w\\\\.])([1-9]\\\\d*|0)([lL])\\\\b\",\"name\":\"constant.numeric.bin.python\"},\"number-oct\":{\"captures\":{\"1\":{\"name\":\"storage.type.number.python\"}},\"match\":\"(?<![\\\\w\\\\.])(0[oO])(_?[0-7])+\\\\b\",\"name\":\"constant.numeric.oct.python\"},\"odd-function-call\":{\"begin\":\"(?<=\\\\]|\\\\))\\\\s*(?=\\\\()\",\"comment\":\"A bit obscured function call where there may have been an\\narbitrary number of other operations to get the function.\\nE.g. \\\"arr[idx](args)\\\"\\n\",\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.arguments.end.python\"}},\"patterns\":[{\"include\":\"#function-arguments\"}]},\"operator\":{\"captures\":{\"1\":{\"name\":\"keyword.operator.logical.python\"},\"2\":{\"name\":\"keyword.control.flow.python\"},\"3\":{\"name\":\"keyword.operator.bitwise.python\"},\"4\":{\"name\":\"keyword.operator.arithmetic.python\"},\"5\":{\"name\":\"keyword.operator.comparison.python\"},\"6\":{\"name\":\"keyword.operator.assignment.python\"}},\"match\":\"\\\\b(?<!\\\\.)(?:(and|or|not|in|is)|(for|if|else|await|(?:yield(?:\\\\s+from)?)))(?!\\\\s*:)\\\\b|(<<|>>|&|\\\\||\\\\^|~)|(\\\\*\\\\*|\\\\*|\\\\+|-|%|//|/|@)|(!=|==|>=|<=|<|>)|(:=)\"},\"parameter-special\":{\"captures\":{\"1\":{\"name\":\"variable.parameter.function.language.python\"},\"2\":{\"name\":\"variable.parameter.function.language.special.self.python\"},\"3\":{\"name\":\"variable.parameter.function.language.special.cls.python\"},\"4\":{\"name\":\"punctuation.separator.parameters.python\"}},\"match\":\"\\\\b((self)|(cls))\\\\b\\\\s*(?:(,)|(?=\\\\)))\"},\"parameters\":{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.python\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.end.python\"}},\"name\":\"meta.function.parameters.python\",\"patterns\":[{\"match\":\"\\\\b(owned|borrowed|inout)\\\\b\",\"name\":\"storage.modifier\"},{\"match\":\"/\",\"name\":\"keyword.operator.positional.parameter.python\"},{\"match\":\"(\\\\*\\\\*|\\\\*)\",\"name\":\"keyword.operator.unpacking.parameter.python\"},{\"include\":\"#lambda-incomplete\"},{\"include\":\"#illegal-names\"},{\"include\":\"#illegal-object-name\"},{\"include\":\"#parameter-special\"},{\"captures\":{\"1\":{\"name\":\"variable.parameter.function.language.python\"},\"2\":{\"name\":\"punctuation.separator.parameters.python\"}},\"match\":\"([A-Za-z_]\\\\w*)\\\\s*(?:(,)|(?=[)#\\\\n=]))\"},{\"include\":\"#comments\"},{\"include\":\"#loose-default\"},{\"include\":\"#annotated-parameter\"}]},\"punctuation\":{\"patterns\":[{\"match\":\":\",\"name\":\"punctuation.separator.colon.python\"},{\"match\":\",\",\"name\":\"punctuation.separator.element.python\"}]},\"regexp\":{\"patterns\":[{\"include\":\"#regexp-single-three-line\"},{\"include\":\"#regexp-double-three-line\"},{\"include\":\"#regexp-single-one-line\"},{\"include\":\"#regexp-double-one-line\"}]},\"regexp-backreference\":{\"captures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp\"},\"2\":{\"name\":\"entity.name.tag.named.backreference.regexp\"},\"3\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp\"}},\"match\":\"(\\\\()(\\\\?P=\\\\w+(?:\\\\s+[0-9A-Za-z]+)?)(\\\\))\",\"name\":\"meta.backreference.named.regexp\"},\"regexp-backreference-number\":{\"captures\":{\"1\":{\"name\":\"entity.name.tag.backreference.regexp\"}},\"match\":\"(\\\\\\\\[1-9]\\\\d?)\",\"name\":\"meta.backreference.regexp\"},\"regexp-base-common\":{\"patterns\":[{\"match\":\"\\\\.\",\"name\":\"support.other.match.any.regexp\"},{\"match\":\"\\\\^\",\"name\":\"support.other.match.begin.regexp\"},{\"match\":\"\\\\$\",\"name\":\"support.other.match.end.regexp\"},{\"match\":\"[+*?]\\\\??\",\"name\":\"keyword.operator.quantifier.regexp\"},{\"match\":\"\\\\|\",\"name\":\"keyword.operator.disjunction.regexp\"},{\"include\":\"#regexp-escape-sequence\"}]},\"regexp-base-expression\":{\"patterns\":[{\"include\":\"#regexp-quantifier\"},{\"include\":\"#regexp-base-common\"}]},\"regexp-charecter-set-escapes\":{\"patterns\":[{\"match\":\"\\\\\\\\[abfnrtv\\\\\\\\]\",\"name\":\"constant.character.escape.regexp\"},{\"include\":\"#regexp-escape-special\"},{\"match\":\"\\\\\\\\([0-7]{1,3})\",\"name\":\"constant.character.escape.regexp\"},{\"include\":\"#regexp-escape-character\"},{\"include\":\"#regexp-escape-unicode\"},{\"include\":\"#regexp-escape-catchall\"}]},\"regexp-double-one-line\":{\"begin\":\"\\\\b(([uU]r)|([bB]r)|(r[bB]?))(\\\")\",\"beginCaptures\":{\"2\":{\"name\":\"invalid.deprecated.prefix.python\"},\"3\":{\"name\":\"storage.type.string.python\"},\"4\":{\"name\":\"storage.type.string.python\"},\"5\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\")|(?<!\\\\\\\\)(\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.regexp.quoted.single.python\",\"patterns\":[{\"include\":\"#double-one-regexp-expression\"}]},\"regexp-double-three-line\":{\"begin\":\"\\\\b(([uU]r)|([bB]r)|(r[bB]?))(\\\"\\\"\\\")\",\"beginCaptures\":{\"2\":{\"name\":\"invalid.deprecated.prefix.python\"},\"3\":{\"name\":\"storage.type.string.python\"},\"4\":{\"name\":\"storage.type.string.python\"},\"5\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\"\\\"\\\")\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.regexp.quoted.multi.python\",\"patterns\":[{\"include\":\"#double-three-regexp-expression\"}]},\"regexp-escape-catchall\":{\"match\":\"\\\\\\\\(.|\\\\n)\",\"name\":\"constant.character.escape.regexp\"},\"regexp-escape-character\":{\"match\":\"\\\\\\\\(x[0-9A-Fa-f]{2}|0[0-7]{1,2}|[0-7]{3})\",\"name\":\"constant.character.escape.regexp\"},\"regexp-escape-sequence\":{\"patterns\":[{\"include\":\"#regexp-escape-special\"},{\"include\":\"#regexp-escape-character\"},{\"include\":\"#regexp-escape-unicode\"},{\"include\":\"#regexp-backreference-number\"},{\"include\":\"#regexp-escape-catchall\"}]},\"regexp-escape-special\":{\"match\":\"\\\\\\\\([AbBdDsSwWZ])\",\"name\":\"support.other.escape.special.regexp\"},\"regexp-escape-unicode\":{\"match\":\"\\\\\\\\(u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})\",\"name\":\"constant.character.unicode.regexp\"},\"regexp-flags\":{\"match\":\"\\\\(\\\\?[aiLmsux]+\\\\)\",\"name\":\"storage.modifier.flag.regexp\"},\"regexp-quantifier\":{\"match\":\"\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)\\\\}\",\"name\":\"keyword.operator.quantifier.regexp\"},\"regexp-single-one-line\":{\"begin\":\"\\\\b(([uU]r)|([bB]r)|(r[bB]?))(\\\\')\",\"beginCaptures\":{\"2\":{\"name\":\"invalid.deprecated.prefix.python\"},\"3\":{\"name\":\"storage.type.string.python\"},\"4\":{\"name\":\"storage.type.string.python\"},\"5\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\')|(?<!\\\\\\\\)(\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.regexp.quoted.single.python\",\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"regexp-single-three-line\":{\"begin\":\"\\\\b(([uU]r)|([bB]r)|(r[bB]?))(\\\\'\\\\'\\\\')\",\"beginCaptures\":{\"2\":{\"name\":\"invalid.deprecated.prefix.python\"},\"3\":{\"name\":\"storage.type.string.python\"},\"4\":{\"name\":\"storage.type.string.python\"},\"5\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\'\\\\'\\\\')\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.regexp.quoted.multi.python\",\"patterns\":[{\"include\":\"#single-three-regexp-expression\"}]},\"return-annotation\":{\"begin\":\"(->)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.annotation.result.python\"}},\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#expression\"}]},\"round-braces\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.parenthesis.begin.python\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.parenthesis.end.python\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"semicolon\":{\"patterns\":[{\"match\":\"\\\\;$\",\"name\":\"invalid.deprecated.semicolon.python\"}]},\"single-one-regexp-character-set\":{\"patterns\":[{\"match\":\"\\\\[\\\\^?\\\\](?!.*?\\\\])\"},{\"begin\":\"(\\\\[)(\\\\^)?(\\\\])?\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.character.set.begin.regexp constant.other.set.regexp\"},\"2\":{\"name\":\"keyword.operator.negation.regexp\"},\"3\":{\"name\":\"constant.character.set.regexp\"}},\"end\":\"(\\\\]|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.character.set.end.regexp constant.other.set.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.character.set.regexp\",\"patterns\":[{\"include\":\"#regexp-charecter-set-escapes\"},{\"match\":\"[^\\\\n]\",\"name\":\"constant.character.set.regexp\"}]}]},\"single-one-regexp-comments\":{\"begin\":\"\\\\(\\\\?#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.comment.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.comment.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"comment.regexp\",\"patterns\":[{\"include\":\"#codetags\"}]},\"single-one-regexp-conditional\":{\"begin\":\"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+[0-9A-Za-z]+)?|\\\\d+)\\\\)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.conditional.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.conditional.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"single-one-regexp-expression\":{\"patterns\":[{\"include\":\"#regexp-base-expression\"},{\"include\":\"#single-one-regexp-character-set\"},{\"include\":\"#single-one-regexp-comments\"},{\"include\":\"#regexp-flags\"},{\"include\":\"#single-one-regexp-named-group\"},{\"include\":\"#regexp-backreference\"},{\"include\":\"#single-one-regexp-lookahead\"},{\"include\":\"#single-one-regexp-lookahead-negative\"},{\"include\":\"#single-one-regexp-lookbehind\"},{\"include\":\"#single-one-regexp-lookbehind-negative\"},{\"include\":\"#single-one-regexp-conditional\"},{\"include\":\"#single-one-regexp-parentheses-non-capturing\"},{\"include\":\"#single-one-regexp-parentheses\"}]},\"single-one-regexp-lookahead\":{\"begin\":\"(\\\\()\\\\?=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookahead.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookahead.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"single-one-regexp-lookahead-negative\":{\"begin\":\"(\\\\()\\\\?!\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookahead.negative.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookahead.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"single-one-regexp-lookbehind\":{\"begin\":\"(\\\\()\\\\?<=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookbehind.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookbehind.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"single-one-regexp-lookbehind-negative\":{\"begin\":\"(\\\\()\\\\?<!\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookbehind.negative.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookbehind.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"single-one-regexp-named-group\":{\"begin\":\"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+[0-9A-Za-z]+)?>)\",\"beginCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp\"},\"2\":{\"name\":\"entity.name.tag.named.group.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.named.regexp\",\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"single-one-regexp-parentheses\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"single-one-regexp-parentheses-non-capturing\":{\"begin\":\"\\\\(\\\\?:\",\"beginCaptures\":{\"0\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'))|((?=(?<!\\\\\\\\)\\\\n))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-one-regexp-expression\"}]},\"single-three-regexp-character-set\":{\"patterns\":[{\"match\":\"\\\\[\\\\^?\\\\](?!.*?\\\\])\"},{\"begin\":\"(\\\\[)(\\\\^)?(\\\\])?\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.character.set.begin.regexp constant.other.set.regexp\"},\"2\":{\"name\":\"keyword.operator.negation.regexp\"},\"3\":{\"name\":\"constant.character.set.regexp\"}},\"end\":\"(\\\\]|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.character.set.end.regexp constant.other.set.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.character.set.regexp\",\"patterns\":[{\"include\":\"#regexp-charecter-set-escapes\"},{\"match\":\"[^\\\\n]\",\"name\":\"constant.character.set.regexp\"}]}]},\"single-three-regexp-comments\":{\"begin\":\"\\\\(\\\\?#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.comment.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.comment.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"comment.regexp\",\"patterns\":[{\"include\":\"#codetags\"}]},\"single-three-regexp-conditional\":{\"begin\":\"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+[0-9A-Za-z]+)?|\\\\d+)\\\\)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.conditional.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.conditional.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-three-regexp-expression\"},{\"include\":\"#comments-string-single-three\"}]},\"single-three-regexp-expression\":{\"patterns\":[{\"include\":\"#regexp-base-expression\"},{\"include\":\"#single-three-regexp-character-set\"},{\"include\":\"#single-three-regexp-comments\"},{\"include\":\"#regexp-flags\"},{\"include\":\"#single-three-regexp-named-group\"},{\"include\":\"#regexp-backreference\"},{\"include\":\"#single-three-regexp-lookahead\"},{\"include\":\"#single-three-regexp-lookahead-negative\"},{\"include\":\"#single-three-regexp-lookbehind\"},{\"include\":\"#single-three-regexp-lookbehind-negative\"},{\"include\":\"#single-three-regexp-conditional\"},{\"include\":\"#single-three-regexp-parentheses-non-capturing\"},{\"include\":\"#single-three-regexp-parentheses\"},{\"include\":\"#comments-string-single-three\"}]},\"single-three-regexp-lookahead\":{\"begin\":\"(\\\\()\\\\?=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookahead.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookahead.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-three-regexp-expression\"},{\"include\":\"#comments-string-single-three\"}]},\"single-three-regexp-lookahead-negative\":{\"begin\":\"(\\\\()\\\\?!\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookahead.negative.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookahead.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-three-regexp-expression\"},{\"include\":\"#comments-string-single-three\"}]},\"single-three-regexp-lookbehind\":{\"begin\":\"(\\\\()\\\\?<=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookbehind.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookbehind.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-three-regexp-expression\"},{\"include\":\"#comments-string-single-three\"}]},\"single-three-regexp-lookbehind-negative\":{\"begin\":\"(\\\\()\\\\?<!\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.lookbehind.negative.regexp\"},\"1\":{\"name\":\"punctuation.parenthesis.lookbehind.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-three-regexp-expression\"},{\"include\":\"#comments-string-single-three\"}]},\"single-three-regexp-named-group\":{\"begin\":\"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+[0-9A-Za-z]+)?>)\",\"beginCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp\"},\"2\":{\"name\":\"entity.name.tag.named.group.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"meta.named.regexp\",\"patterns\":[{\"include\":\"#single-three-regexp-expression\"},{\"include\":\"#comments-string-single-three\"}]},\"single-three-regexp-parentheses\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-three-regexp-expression\"},{\"include\":\"#comments-string-single-three\"}]},\"single-three-regexp-parentheses-non-capturing\":{\"begin\":\"\\\\(\\\\?:\",\"beginCaptures\":{\"0\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp\"}},\"end\":\"(\\\\)|(?=\\\\'\\\\'\\\\'))\",\"endCaptures\":{\"1\":{\"name\":\"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"patterns\":[{\"include\":\"#single-three-regexp-expression\"},{\"include\":\"#comments-string-single-three\"}]},\"special-names\":{\"match\":\"\\\\b(_*[A-Z][_\\\\d]*[A-Z])[A-Z\\\\d]*(_\\\\w*)?\\\\b\",\"name\":\"constant.other.caps.python\"},\"special-variables\":{\"captures\":{\"1\":{\"name\":\"variable.language.special.self.python\"},\"2\":{\"name\":\"variable.language.special.cls.python\"}},\"match\":\"\\\\b(?<!\\\\.)(?:(self)|(cls))\\\\b\"},\"statement\":{\"patterns\":[{\"include\":\"#import\"},{\"include\":\"#class-declaration\"},{\"include\":\"#function-declaration\"},{\"include\":\"#generator\"},{\"include\":\"#statement-keyword\"},{\"include\":\"#assignment-operator\"},{\"include\":\"#decorator\"},{\"include\":\"#semicolon\"}]},\"statement-keyword\":{\"patterns\":[{\"match\":\"\\\\b((async\\\\s+)?\\\\s*(def|fn))\\\\b\",\"name\":\"storage.type.function.python\"},{\"comment\":\"if `as` is eventually followed by `:` or line continuation\\nit's probably control flow like:\\n with foo as bar, \\\\\\n Foo as Bar:\\n try:\\n do_stuff()\\n except Exception as e:\\n pass\\n\",\"match\":\"\\\\b(?<!\\\\.)as\\\\b(?=.*[:\\\\\\\\])\",\"name\":\"keyword.control.flow.python\"},{\"comment\":\"other legal use of `as` is in an import\",\"match\":\"\\\\b(?<!\\\\.)as\\\\b\",\"name\":\"keyword.control.import.python\"},{\"match\":\"\\\\b(?<!\\\\.)(async|continue|del|assert|break|finally|for|from|elif|else|if|except|pass|raise|return|try|while|with)\\\\b\",\"name\":\"keyword.control.flow.python\"},{\"match\":\"\\\\b(?<!\\\\.)(global|nonlocal)\\\\b\",\"name\":\"storage.modifier.declaration.python\"},{\"match\":\"\\\\b(?<!\\\\.)(class|struct|trait)\\\\b\",\"name\":\"storage.type.class.python\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.flow.python\"}},\"match\":\"^\\\\s*(case|match)(?=\\\\s*([-+\\\\w\\\\d(\\\\[{'\\\":#]|$))\\\\b\"},{\"captures\":{\"1\":{\"name\":\"storage.modifier.declaration.python\"},\"2\":{\"name\":\"variable.other.python\"}},\"match\":\"\\\\b(var|let|alias) \\\\s*([A-Za-z_]\\\\w*)\\\\b\"}]},\"string\":{\"patterns\":[{\"include\":\"#string-quoted-multi-line\"},{\"include\":\"#string-quoted-single-line\"},{\"include\":\"#string-bin-quoted-multi-line\"},{\"include\":\"#string-bin-quoted-single-line\"},{\"include\":\"#string-raw-quoted-multi-line\"},{\"include\":\"#string-raw-quoted-single-line\"},{\"include\":\"#string-raw-bin-quoted-multi-line\"},{\"include\":\"#string-raw-bin-quoted-single-line\"},{\"include\":\"#fstring-fnorm-quoted-multi-line\"},{\"include\":\"#fstring-fnorm-quoted-single-line\"},{\"include\":\"#fstring-normf-quoted-multi-line\"},{\"include\":\"#fstring-normf-quoted-single-line\"},{\"include\":\"#fstring-raw-quoted-multi-line\"},{\"include\":\"#fstring-raw-quoted-single-line\"}]},\"string-bin-quoted-multi-line\":{\"begin\":\"(\\\\b[bB])('''|\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.string.python\"},\"2\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\2)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.quoted.binary.multi.python\",\"patterns\":[{\"include\":\"#string-entity\"}]},\"string-bin-quoted-single-line\":{\"begin\":\"(\\\\b[bB])((['\\\"]))\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.string.python\"},\"2\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\2)|((?<!\\\\\\\\)\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.quoted.binary.single.python\",\"patterns\":[{\"include\":\"#string-entity\"}]},\"string-brace-formatting\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"},\"3\":{\"name\":\"storage.type.format.python\"},\"4\":{\"name\":\"storage.type.format.python\"}},\"match\":\"({{|}}|(?:{\\\\w*(\\\\.[A-Za-z_]\\\\w*|\\\\[[^\\\\]'\\\"]+\\\\])*(![rsa])?(:\\\\w?[<>=^]?[-+ ]?\\\\#?\\\\d*,?(\\\\.\\\\d+)?[bcdeEfFgGnosxX%]?)?}))\",\"name\":\"meta.format.brace.python\"},{\"captures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"},\"3\":{\"name\":\"storage.type.format.python\"},\"4\":{\"name\":\"storage.type.format.python\"}},\"match\":\"({\\\\w*(\\\\.[A-Za-z_]\\\\w*|\\\\[[^\\\\]'\\\"]+\\\\])*(![rsa])?(:)[^'\\\"{}\\\\n]*(?:\\\\{[^'\\\"}\\\\n]*?\\\\}[^'\\\"{}\\\\n]*)*})\",\"name\":\"meta.format.brace.python\"}]},\"string-consume-escape\":{\"match\":\"\\\\\\\\['\\\"\\\\n\\\\\\\\]\"},\"string-entity\":{\"patterns\":[{\"include\":\"#escape-sequence\"},{\"include\":\"#string-line-continuation\"},{\"include\":\"#string-formatting\"}]},\"string-formatting\":{\"captures\":{\"1\":{\"name\":\"constant.character.format.placeholder.other.python\"}},\"match\":\"(%(\\\\([\\\\w\\\\s]*\\\\))?[-+#0 ]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([hlL])?[diouxXeEfFgGcrsab%])\",\"name\":\"meta.format.percent.python\"},\"string-line-continuation\":{\"match\":\"\\\\\\\\$\",\"name\":\"constant.language.python\"},\"string-mojo-code-block\":{\"begin\":\"^(\\\\s*\\\\`{3,})(mojo)$\",\"beginCaptures\":{\"1\":{\"name\":\"string.quoted.single.python\"},\"2\":{\"name\":\"string.quoted.single.python\"}},\"contentName\":\"source.mojo\",\"end\":\"^(\\\\1)$\",\"endCaptures\":{\"1\":{\"name\":\"string.quoted.single.python\"}},\"name\":\"meta.embedded.block.mojo\",\"patterns\":[{\"include\":\"source.mojo\"}]},\"string-multi-bad-brace1-formatting-raw\":{\"begin\":\"(?=\\\\{%(.*?(?!'''|\\\"\\\"\\\"))%\\\\})\",\"comment\":\"template using {% ... %}\",\"end\":\"(?='''|\\\"\\\"\\\")\",\"patterns\":[{\"include\":\"#string-consume-escape\"}]},\"string-multi-bad-brace1-formatting-unicode\":{\"begin\":\"(?=\\\\{%(.*?(?!'''|\\\"\\\"\\\"))%\\\\})\",\"comment\":\"template using {% ... %}\",\"end\":\"(?='''|\\\"\\\"\\\")\",\"patterns\":[{\"include\":\"#escape-sequence-unicode\"},{\"include\":\"#escape-sequence\"},{\"include\":\"#string-line-continuation\"}]},\"string-multi-bad-brace2-formatting-raw\":{\"begin\":\"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\\"\\\"\\\")[^!:\\\\.\\\\[}\\\\w]).*?(?!'''|\\\"\\\"\\\")\\\\})\",\"comment\":\"odd format or format-like syntax\",\"end\":\"(?='''|\\\"\\\"\\\")\",\"patterns\":[{\"include\":\"#string-consume-escape\"},{\"include\":\"#string-formatting\"}]},\"string-multi-bad-brace2-formatting-unicode\":{\"begin\":\"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\\"\\\"\\\")[^!:\\\\.\\\\[}\\\\w]).*?(?!'''|\\\"\\\"\\\")\\\\})\",\"comment\":\"odd format or format-like syntax\",\"end\":\"(?='''|\\\"\\\"\\\")\",\"patterns\":[{\"include\":\"#escape-sequence-unicode\"},{\"include\":\"#string-entity\"}]},\"string-quoted-multi-line\":{\"begin\":\"(?:\\\\b([rR])(?=[uU]))?([uU])?('''|\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"invalid.illegal.prefix.python\"},\"2\":{\"name\":\"storage.type.string.python\"},\"3\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\3)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.quoted.multi.python\",\"patterns\":[{\"include\":\"#string-multi-bad-brace1-formatting-unicode\"},{\"include\":\"#string-multi-bad-brace2-formatting-unicode\"},{\"include\":\"#string-unicode-guts\"}]},\"string-quoted-single-line\":{\"begin\":\"(?:\\\\b([rR])(?=[uU]))?([uU])?((['\\\"]))\",\"beginCaptures\":{\"1\":{\"name\":\"invalid.illegal.prefix.python\"},\"2\":{\"name\":\"storage.type.string.python\"},\"3\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\3)|((?<!\\\\\\\\)\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.quoted.single.python\",\"patterns\":[{\"include\":\"#string-single-bad-brace1-formatting-unicode\"},{\"include\":\"#string-single-bad-brace2-formatting-unicode\"},{\"include\":\"#string-unicode-guts\"}]},\"string-raw-bin-guts\":{\"patterns\":[{\"include\":\"#string-consume-escape\"},{\"include\":\"#string-formatting\"}]},\"string-raw-bin-quoted-multi-line\":{\"begin\":\"(\\\\b(?:R[bB]|[bB]R))('''|\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.string.python\"},\"2\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\2)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.quoted.raw.binary.multi.python\",\"patterns\":[{\"include\":\"#string-raw-bin-guts\"}]},\"string-raw-bin-quoted-single-line\":{\"begin\":\"(\\\\b(?:R[bB]|[bB]R))((['\\\"]))\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.string.python\"},\"2\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\2)|((?<!\\\\\\\\)\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.quoted.raw.binary.single.python\",\"patterns\":[{\"include\":\"#string-raw-bin-guts\"}]},\"string-raw-guts\":{\"patterns\":[{\"include\":\"#string-consume-escape\"},{\"include\":\"#string-formatting\"},{\"include\":\"#string-brace-formatting\"}]},\"string-raw-quoted-multi-line\":{\"begin\":\"\\\\b(([uU]R)|(R))('''|\\\"\\\"\\\")\",\"beginCaptures\":{\"2\":{\"name\":\"invalid.deprecated.prefix.python\"},\"3\":{\"name\":\"storage.type.string.python\"},\"4\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\4)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.quoted.raw.multi.python\",\"patterns\":[{\"include\":\"#string-multi-bad-brace1-formatting-raw\"},{\"include\":\"#string-multi-bad-brace2-formatting-raw\"},{\"include\":\"#string-raw-guts\"}]},\"string-raw-quoted-single-line\":{\"begin\":\"\\\\b(([uU]R)|(R))((['\\\"]))\",\"beginCaptures\":{\"2\":{\"name\":\"invalid.deprecated.prefix.python\"},\"3\":{\"name\":\"storage.type.string.python\"},\"4\":{\"name\":\"punctuation.definition.string.begin.python\"}},\"end\":\"(\\\\4)|((?<!\\\\\\\\)\\\\n)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.python\"},\"2\":{\"name\":\"invalid.illegal.newline.python\"}},\"name\":\"string.quoted.raw.single.python\",\"patterns\":[{\"include\":\"#string-single-bad-brace1-formatting-raw\"},{\"include\":\"#string-single-bad-brace2-formatting-raw\"},{\"include\":\"#string-raw-guts\"}]},\"string-single-bad-brace1-formatting-raw\":{\"begin\":\"(?=\\\\{%(.*?(?!(['\\\"])|((?<!\\\\\\\\)\\\\n)))%\\\\})\",\"comment\":\"template using {% ... %}\",\"end\":\"(?=(['\\\"])|((?<!\\\\\\\\)\\\\n))\",\"patterns\":[{\"include\":\"#string-consume-escape\"}]},\"string-single-bad-brace1-formatting-unicode\":{\"begin\":\"(?=\\\\{%(.*?(?!(['\\\"])|((?<!\\\\\\\\)\\\\n)))%\\\\})\",\"comment\":\"template using {% ... %}\",\"end\":\"(?=(['\\\"])|((?<!\\\\\\\\)\\\\n))\",\"patterns\":[{\"include\":\"#escape-sequence-unicode\"},{\"include\":\"#escape-sequence\"},{\"include\":\"#string-line-continuation\"}]},\"string-single-bad-brace2-formatting-raw\":{\"begin\":\"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!(['\\\"])|((?<!\\\\\\\\)\\\\n))[^!:\\\\.\\\\[}\\\\w]).*?(?!(['\\\"])|((?<!\\\\\\\\)\\\\n))\\\\})\",\"comment\":\"odd format or format-like syntax\",\"end\":\"(?=(['\\\"])|((?<!\\\\\\\\)\\\\n))\",\"patterns\":[{\"include\":\"#string-consume-escape\"},{\"include\":\"#string-formatting\"}]},\"string-single-bad-brace2-formatting-unicode\":{\"begin\":\"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!(['\\\"])|((?<!\\\\\\\\)\\\\n))[^!:\\\\.\\\\[}\\\\w]).*?(?!(['\\\"])|((?<!\\\\\\\\)\\\\n))\\\\})\",\"comment\":\"odd format or format-like syntax\",\"end\":\"(?=(['\\\"])|((?<!\\\\\\\\)\\\\n))\",\"patterns\":[{\"include\":\"#escape-sequence-unicode\"},{\"include\":\"#string-entity\"}]},\"string-unicode-guts\":{\"patterns\":[{\"include\":\"#string-mojo-code-block\"},{\"include\":\"#escape-sequence-unicode\"},{\"include\":\"#string-entity\"},{\"include\":\"#string-brace-formatting\"}]}},\"scopeName\":\"source.mojo\"}"))
2
+
3
+ export default [
4
+ lang
5
+ ]
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/move.mjs ADDED
@@ -0,0 +1,5 @@
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Move\",\"name\":\"move\",\"patterns\":[{\"include\":\"#address\"},{\"include\":\"#comments\"},{\"include\":\"#module\"},{\"include\":\"#script\"},{\"include\":\"#annotation\"},{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}],\"repository\":{\"=== DEPRECATED_BELOW ===\":{},\"abilities\":{\"comment\":\"Ability\",\"match\":\"\\\\b(store|key|drop|copy)\\\\b\",\"name\":\"support.type.ability.move\"},\"address\":{\"begin\":\"\\\\b(address)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.address.keyword.move\"}},\"comment\":\"Address block\",\"end\":\"(?<=})\",\"name\":\"meta.address_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=address)\",\"comment\":\"Address value/const\",\"end\":\"(?=[{])\",\"name\":\"meta.address.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"comment\":\"Named Address\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"include\":\"#module\"}]},\"annotation\":{\"begin\":\"#\\\\[\",\"end\":\"\\\\]\",\"name\":\"support.constant.annotation.move\",\"patterns\":[{\"comment\":\"Annotation name\",\"match\":\"\\\\b(\\\\w+)\\\\s*(?==)\",\"name\":\"meta.annotation.name.move\"},{\"begin\":\"=\",\"comment\":\"Annotation value\",\"end\":\"(?=[,\\\\]])\",\"name\":\"meta.annotation.value.move\",\"patterns\":[{\"include\":\"#literals\"}]}]},\"as\":{\"comment\":\"Keyword as (highlighted)\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},\"as-import\":{\"comment\":\"Keyword as in import statement; not highlighted\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"meta.import.as.move\"},\"block\":{\"begin\":\"{\",\"comment\":\"Block expression or definition\",\"end\":\"}\",\"name\":\"meta.block.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"block-comments\":{\"patterns\":[{\"begin\":\"/\\\\*[\\\\*!](?![\\\\*/])\",\"comment\":\"Block documentation comment\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.move\"},{\"begin\":\"/\\\\*\",\"comment\":\"Block comment\",\"end\":\"\\\\*/\",\"name\":\"comment.block.move\"}]},\"capitalized\":{\"comment\":\"MyType - capitalized type name\",\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.use.move\"},\"comments\":{\"name\":\"meta.comments.move\",\"patterns\":[{\"include\":\"#doc-comments\"},{\"include\":\"#line-comments\"},{\"include\":\"#block-comments\"}]},\"const\":{\"begin\":\"\\\\b(const)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.const.move\"}},\"end\":\";\",\"name\":\"meta.const.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#primitives\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"match\":\"\\\\b([A-Z][A-Z_0-9]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"}]},\"control\":{\"comment\":\"Control flow\",\"match\":\"\\\\b(return|while|loop|if|else|break|continue|abort)\\\\b\",\"name\":\"keyword.control.move\"},\"doc-comments\":{\"begin\":\"///\",\"comment\":\"Documentation comment\",\"end\":\"$\",\"name\":\"comment.block.documentation.move\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"markup.underline.link.move\"}},\"comment\":\"Escaped member / link\",\"match\":\"`(\\\\w+)`\"}]},\"entry\":{\"comment\":\"entry\",\"match\":\"\\\\b(entry)\\\\b\",\"name\":\"storage.modifier.visibility.entry.move\"},\"enum\":{\"begin\":\"\\\\b(enum)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.enum.move\"}},\"comment\":\"Enum syntax\",\"end\":\"(?<=})\",\"name\":\"meta.enum.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#type_param\"},{\"comment\":\"Enum name (ident)\",\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"begin\":\"{\",\"end\":\"}\",\"name\":\"meta.enum.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b(?=\\\\s*\\\\()\",\"name\":\"entity.name.function.enum.move\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.enum.tuple.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"begin\":\"{\",\"end\":\"}\",\"name\":\"meta.enum.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]}]}]},\"error_const\":{\"match\":\"\\\\b(E[A-Z][A-Za-z0-9_]*)\\\\b\",\"name\":\"variable.other.error.const.move\"},\"escaped_identifier\":{\"begin\":\"`\",\"comment\":\"Escaped variable\",\"end\":\"`\",\"name\":\"variable.language.escaped.move\"},\"expr\":{\"comment\":\"Aggregate Expression\",\"name\":\"meta.expression.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#packed_field\"},{\"include\":\"#import\"},{\"include\":\"#as\"},{\"include\":\"#mut\"},{\"include\":\"#let\"},{\"include\":\"#types\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#move_copy\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#label\"},{\"include\":\"#macro_call\"},{\"include\":\"#local_call\"},{\"include\":\"#method_call\"},{\"include\":\"#path_access\"},{\"include\":\"#match_expression\"},{\"match\":\"\\\\$(?=[a-z])\",\"name\":\"keyword.operator.macro.dollar.move\"},{\"match\":\"(?<=[$])[a-z][A-Z_0-9a-z]*\",\"name\":\"variable.other.meta.move\"},{\"comment\":\"ALL_CONST_CAPS\",\"match\":\"\\\\b([A-Z][A-Z_]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"},{\"comment\":\"CustomType\",\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"include\":\"#paren\"},{\"include\":\"#block\"}]},\"expr_generic\":{\"begin\":\"<(?=([\\\\sa-z_,0-9A-Z<>]+>))\",\"comment\":\"< angle brackets >\",\"end\":\">\",\"name\":\"meta.expression.generic.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"},{\"include\":\"#capitalized\"},{\"include\":\"#expr_generic\"}]},\"friend\":{\"begin\":\"\\\\b(friend)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.friend.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"comment\":\"Name of the imported module\",\"match\":\"\\\\b([a-zA-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.module.move\"}]},\"fun\":{\"patterns\":[{\"include\":\"#fun_signature\"},{\"include\":\"#block\"}]},\"fun_body\":{\"begin\":\"{\",\"comment\":\"Function body\",\"end\":\"(?<=})\",\"name\":\"meta.fun_body.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"fun_call\":{\"begin\":\"\\\\b(\\\\w+)\\\\s*(?:<[\\\\w\\\\s,]+>)?\\\\s*[(]\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Function call\",\"end\":\"[)]\",\"name\":\"meta.fun_call.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#move_copy\"},{\"include\":\"#literals\"},{\"include\":\"#fun_call\"},{\"include\":\"#block\"},{\"include\":\"#mut\"},{\"include\":\"#as\"}]},\"fun_signature\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"comment\":\"Function signature\",\"end\":\"(?=[;{])\",\"name\":\"meta.fun_signature.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"},{\"begin\":\"(?<=\\\\bfun)\",\"comment\":\"Function name\",\"end\":\"(?=[<(])\",\"name\":\"meta.function_name.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]},{\"include\":\"#type_param\"},{\"begin\":\"[(]\",\"comment\":\"Parentheses\",\"end\":\"[)]\",\"name\":\"meta.parentheses.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"}]},{\"comment\":\"Keyword acquires\",\"match\":\"\\\\b(acquires)\\\\b\",\"name\":\"storage.modifier\"}]},\"has\":{\"comment\":\"Has Abilities\",\"match\":\"\\\\b(has)\\\\b\",\"name\":\"keyword.control.ability.has.move\"},\"has_ability\":{\"begin\":\"(?<=[})])\\\\s+(has)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.has.ability.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#abilities\"}]},\"ident\":{\"match\":\"\\\\b([a-zA-Z][A-Z_a-z0-9]*)\\\\b\",\"name\":\"meta.identifier.move\"},\"import\":{\"begin\":\"\\\\b(use)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.import.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#use_fun\"},{\"include\":\"#address_literal\"},{\"include\":\"#as-import\"},{\"comment\":\"Uppercase entities\",\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"begin\":\"{\",\"comment\":\"Module members\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#as-import\"},{\"comment\":\"Uppercase entities\",\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"comment\":\"Name of the imported module\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"meta.entity.name.type.module.move\"}]},\"inline\":{\"comment\":\"inline\",\"match\":\"\\\\b(inline)\\\\b\",\"name\":\"storage.modifier.visibility.inline.move\"},\"label\":{\"comment\":\"Label\",\"match\":\"'[a-z][a-z_0-9]*\",\"name\":\"string.quoted.single.label.move\"},\"let\":{\"comment\":\"Keyword let\",\"match\":\"\\\\b(let)\\\\b\",\"name\":\"keyword.control.move\"},\"line-comments\":{\"begin\":\"//\",\"comment\":\"Single-line comment\",\"end\":\"$\",\"name\":\"comment.line.double-slash.move\"},\"literals\":{\"comment\":\"Literals supported in Move\",\"name\":\"meta.literal.move\",\"patterns\":[{\"comment\":\"base16 address literal\",\"match\":\"@0x[A-F0-9a-f]+\",\"name\":\"support.constant.address.base16.move\"},{\"comment\":\"named address literal @[ident]\",\"match\":\"@[a-zA-Z][a-zA-Z_0-9]*\",\"name\":\"support.constant.address.name.move\"},{\"comment\":\"Hex literal\",\"match\":\"0x[_a-fA-F0-9]+(?:u(?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.hex.move\"},{\"comment\":\"Numeric literal\",\"match\":\"(?<!(?:\\\\w|(?:(?<!\\\\.)\\\\.)))\\\\d[_0-9]*(?:\\\\.(?!\\\\.)(?:\\\\d[_0-9]*)?)?(?:[eE][+\\\\-]?[_0-9]+)?(?:[u](?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.move\"},{\"begin\":\"\\\\bb\\\"\",\"comment\":\"vector ascii bytestring literal\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.ascii.move\",\"patterns\":[{\"comment\":\"character escape\",\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.move\"},{\"comment\":\"Special symbol escape\",\"match\":\"\\\\\\\\[nrt\\\\0\\\"]\",\"name\":\"constant.character.escape.move\"},{\"comment\":\"HEX Escape\",\"match\":\"\\\\\\\\x[a-fA-F0-9][A-Fa-f0-9]\",\"name\":\"constant.character.escape.hex.move\"},{\"comment\":\"ASCII Character\",\"match\":\"[\\\\x00-\\\\x7F]\",\"name\":\"string.quoted.double.raw.move\"}]},{\"begin\":\"x\\\"\",\"comment\":\"vector hex literal\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.hex.move\",\"patterns\":[{\"comment\":\"vector hex literal\",\"match\":\"[A-Fa-f0-9]+\",\"name\":\"constant.character.move\"}]},{\"comment\":\"bool literal\",\"match\":\"\\\\b(?:true|false)\\\\b\",\"name\":\"constant.language.boolean.move\"},{\"begin\":\"vector\\\\[\",\"comment\":\"vector literal (macro?)\",\"end\":\"\\\\]\",\"name\":\"meta.vector.literal.macro.move\",\"patterns\":[{\"include\":\"#expr\"}]}]},\"local_call\":{\"comment\":\"call to a local / imported fun\",\"match\":\"\\\\b([a-z][_a-z0-9]*)(?=[<(])\",\"name\":\"entity.name.function.call.local.move\"},\"macro\":{\"begin\":\"\\\\b(macro)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.macro.move\"}},\"comment\":\"macro fun [ident] {}\",\"end\":\"(?<=})\",\"name\":\"meta.macro.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#fun\"}]},\"macro_call\":{\"captures\":{\"2\":{\"name\":\"support.function.macro.move\"}},\"comment\":\"Macro fun call\",\"match\":\"(\\\\b|\\\\.)([a-z][A-Za-z0-9_]*)!\",\"name\":\"meta.macro.call\"},\"match_expression\":{\"begin\":\"\\\\b(match)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.match.move\"}},\"comment\":\"enum pattern matching\",\"end\":\"(?<=})\",\"name\":\"meta.match.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#types\"},{\"begin\":\"{\",\"comment\":\"Block expression or definition\",\"end\":\"}\",\"name\":\"meta.match.block.move\",\"patterns\":[{\"comment\":\"arrow operator\",\"match\":\"\\\\b(=>)\\\\b\",\"name\":\"operator.match.move\"},{\"include\":\"#expr\"}]},{\"include\":\"#expr\"}]},\"method_call\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.call.path.move\"}},\"comment\":\"<expr>.[ident]<>?() call\",\"match\":\"\\\\.([a-z][_a-z0-9]*)(?=[<(])\",\"name\":\"meta.path.call.move\"},\"module\":{\"begin\":\"\\\\b(module)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"comment\":\"Module definition\",\"end\":\"(?<=[;}])\",\"name\":\"meta.module.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=\\\\b(module)\\\\b)\",\"comment\":\"Module name\",\"end\":\"(?=[;{])\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\b(module))\",\"comment\":\"Module namespace / address\",\"end\":\"(?=[(::){])\",\"name\":\"constant.other.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]},{\"begin\":\"(?<=::)\",\"comment\":\"Module name\",\"end\":\"(?=[\\\\s;{])\",\"name\":\"entity.name.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]}]},{\"begin\":\"{\",\"comment\":\"Module scope\",\"end\":\"}\",\"name\":\"meta.module_scope.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}]}]},\"module_access\":{\"captures\":{\"1\":{\"name\":\"meta.entity.name.type.accessed.module.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Use of module type or method\",\"match\":\"\\\\b(\\\\w+)::(\\\\w+)\\\\b\",\"name\":\"meta.module_access.move\"},\"module_label\":{\"begin\":\"^\\\\s*(module)\\\\b\",\"comment\":\"Module label, inline module definition\",\"end\":\";\\\\s*$\",\"name\":\"meta.module.label.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\bmodule\\\\b)\",\"comment\":\"Module namespace / address\",\"end\":\"(?=[(::){])\",\"name\":\"constant.other.move\"},{\"begin\":\"(?<=::)\",\"comment\":\"Module name\",\"end\":\"(?=[\\\\s{])\",\"name\":\"entity.name.type.move\"}]},\"move_copy\":{\"comment\":\"Keywords move and copy\",\"match\":\"\\\\b(move|copy)\\\\b\",\"name\":\"variable.language.move\"},\"mut\":{\"comment\":\"Mutable reference and let mut\",\"match\":\"\\\\b(mut)\\\\b\",\"name\":\"storage.modifier.mut.move\"},\"native\":{\"comment\":\"native\",\"match\":\"\\\\b(native)\\\\b\",\"name\":\"storage.modifier.visibility.native.move\"},\"packed_field\":{\"comment\":\"[ident]: \",\"match\":\"[a-z][a-z0-9_]+\\\\s*:\\\\s*(?=\\\\s)\",\"name\":\"meta.struct.field.move\"},\"paren\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.paren.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"path_access\":{\"comment\":\"<expr>.[ident] access\",\"match\":\"\\\\.[a-z][_a-z0-9]*\\\\b\",\"name\":\"meta.path.access.move\"},\"phantom\":{\"comment\":\"Keyword phantom inside type parameters\",\"match\":\"\\\\b(phantom)\\\\b\",\"name\":\"keyword.control.phantom.move\"},\"primitives\":{\"comment\":\"Primitive types\",\"match\":\"\\\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\\\b\",\"name\":\"support.type.primitives.move\"},\"public\":{\"comment\":\"public\",\"match\":\"\\\\b(public)\\\\b\",\"name\":\"storage.modifier.visibility.public.move\"},\"public-scope\":{\"begin\":\"(?<=\\\\b(public))\\\\s*\\\\(\",\"comment\":\"public (friend/script/package)\",\"end\":\"\\\\)\",\"name\":\"meta.public.scoped.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(friend|script|package)\\\\b\",\"name\":\"keyword.control.public.scope.move\"}]},\"resource_methods\":{\"comment\":\"Methods to work with resource\",\"match\":\"\\\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\\\b\",\"name\":\"support.function.typed.move\"},\"script\":{\"begin\":\"\\\\b(script)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.script.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.script.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"{\",\"comment\":\"Script scope\",\"end\":\"}\",\"name\":\"meta.script_scope.move\",\"patterns\":[{\"include\":\"#const\"},{\"include\":\"#comments\"},{\"include\":\"#import\"},{\"include\":\"#fun\"}]}]},\"self_access\":{\"captures\":{\"1\":{\"name\":\"variable.language.self.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Use of Self\",\"match\":\"\\\\b(Self)::(\\\\w+)\\\\b\",\"name\":\"meta.self_access.move\"},\"spec\":{\"begin\":\"\\\\b(spec)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.spec.move\"}},\"end\":\"(?<=[;}])\",\"name\":\"meta.spec.move\",\"patterns\":[{\"comment\":\"Spec target\",\"match\":\"\\\\b(module|schema|struct|fun)\",\"name\":\"storage.modifier.spec.target.move\"},{\"comment\":\"Spec define inline\",\"match\":\"\\\\b(define)\",\"name\":\"storage.modifier.spec.define.move\"},{\"comment\":\"Target name\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"},{\"begin\":\"{\",\"comment\":\"Spec block\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#spec_define\"},{\"include\":\"#spec_keywords\"},{\"include\":\"#control\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]}]},\"spec_block\":{\"begin\":\"{\",\"comment\":\"Spec block\",\"end\":\"}\",\"name\":\"meta.spec_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]},\"spec_define\":{\"begin\":\"\\\\b(define)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.move.spec\"}},\"comment\":\"Spec define keyword\",\"end\":\"(?=[;{])\",\"name\":\"meta.spec_define.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_types\"},{\"include\":\"#types\"},{\"begin\":\"(?<=\\\\bdefine)\",\"comment\":\"Function name\",\"end\":\"(?=[(])\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]}]},\"spec_keywords\":{\"match\":\"\\\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\\\b\",\"name\":\"keyword.control.move.spec\"},\"spec_types\":{\"comment\":\"Spec-only types\",\"match\":\"\\\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\\\b\",\"name\":\"support.type.vector.move\"},\"struct\":{\"begin\":\"\\\\b(struct)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\"(?<=[};)])\",\"name\":\"meta.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"comment\":\"Struct name (ident)\",\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.struct.move\"},{\"begin\":\"\\\\(\",\"comment\":\"Positional fields\",\"end\":\"\\\\)\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#type_param\"},{\"begin\":\"\\\\(\",\"comment\":\"Simple struct\",\"end\":\"(?<=[)])\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"}]},{\"begin\":\"{\",\"comment\":\"Struct body\",\"end\":\"}\",\"name\":\"meta.struct.body.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#has_ability\"}]},\"struct_pack\":{\"begin\":\"(?<=[A-Za-z0-9_>])\\\\s*{\",\"comment\":\"Struct { field: value... }; identified as generic / ident followed by curly's\",\"end\":\"}\",\"name\":\"meta.struct.pack.move\",\"patterns\":[{\"include\":\"#comments\"}]},\"type_param\":{\"begin\":\"<\",\"comment\":\"Generic type param\",\"end\":\">\",\"name\":\"meta.generic_param.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#phantom\"},{\"include\":\"#capitalized\"},{\"include\":\"#module_access\"},{\"include\":\"#abilities\"}]},\"types\":{\"comment\":\"Built-in types + vector\",\"name\":\"meta.types.move\",\"patterns\":[{\"include\":\"#primitives\"},{\"include\":\"#vector\"}]},\"use_fun\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"comment\":\"use { fun } internals\",\"end\":\"(?=;)\",\"name\":\"meta.import.fun.move\",\"patterns\":[{\"include\":\"#comments\"},{\"comment\":\"as keyword\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},{\"comment\":\"Self keyword\",\"match\":\"\\\\b(Self)\\\\b\",\"name\":\"variable.language.self.use.fun.move\"},{\"comment\":\"Function name\",\"match\":\"\\\\b(_______[a-z][a-z_0-9]+)\\\\b\",\"name\":\"entity.name.function.use.move\"},{\"include\":\"#types\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#capitalized\"}]},\"vector\":{\"comment\":\"vector type\",\"match\":\"\\\\b(vector)\\\\b\",\"name\":\"support.type.vector.move\"}},\"scopeName\":\"source.move\"}"))
2
+
3
+ export default [
4
+ lang
5
+ ]
package/dist/nar.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/nar.mjs ADDED
@@ -0,0 +1,2 @@
1
+ /* Alias nar for narrat */
2
+ export { default } from './narrat.mjs'
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
@@ -0,0 +1,5 @@
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Narrat Language\",\"name\":\"narrat\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expression\"}],\"repository\":{\"commands\":{\"patterns\":[{\"match\":\"\\\\b(set|var)\\\\b\",\"name\":\"keyword.commands.variables.narrat\"},{\"match\":\"\\\\b(talk|think)\\\\b\",\"name\":\"keyword.commands.text.narrat\"},{\"match\":\"\\\\b(jump|run|wait|return|save|save_prompt)\",\"name\":\"keyword.commands.flow.narrat\"},{\"match\":\"\\\\b(log|clear_dialog)\\\\b\",\"name\":\"keyword.commands.helpers.narrat\"},{\"match\":\"\\\\b(set_screen|empty_layer|set_button)\",\"name\":\"keyword.commands.screens.narrat\"},{\"match\":\"\\\\b(play|pause|stop)\\\\b\",\"name\":\"keyword.commands.audio.narrat\"},{\"match\":\"\\\\b(notify|enable_notifications|disable_notifications)\\\\b\",\"name\":\"keyword.commands.notifications.narrat\"},{\"match\":\"\\\\b(set_stat|get_stat_value|add_stat)\",\"name\":\"keyword.commands.stats.narrat\"},{\"match\":\"\\\\b(neg|abs|random|random_float|random_from_args|min|max|clamp|floor|round|ceil|sqrt|^)\\\\b\",\"name\":\"keyword.commands.math.narrat\"},{\"match\":\"\\\\b(concat|join)\\\\b\",\"name\":\"keyword.commands.string.narrat\"},{\"match\":\"\\\\b(text_field)\\\\b\",\"name\":\"keyword.commands.text_field.narrat\"},{\"match\":\"\\\\b(add_level|set_level|add_xp|roll|get_level|get_xp)\\\\b\",\"name\":\"keyword.commands.skills.narrat\"},{\"match\":\"\\\\b(add_item|remove_item|enable_interaction|disable_interaction|has_item?|item_amount?)\",\"name\":\"keyword.commands.inventory.narrat\"},{\"match\":\"\\\\b(start_quest|start_objective|complete_objective|complete_quest|quest_started?|objective_started?|quest_completed?|objective_completed?)\",\"name\":\"keyword.commands.quests.narrat\"}]},\"comments\":{\"patterns\":[{\"match\":\"\\\\/\\\\/.*$\",\"name\":\"comment.line.narrat\"}]},\"expression\":{\"patterns\":[{\"include\":\"#keywords\"},{\"include\":\"#commands\"},{\"include\":\"#operators\"},{\"include\":\"#primitives\"},{\"include\":\"#strings\"},{\"include\":\"#paren-expression\"}]},\"interpolation\":{\"patterns\":[{\"match\":\"(\\\\w|\\\\.)+\",\"name\":\"variable.interpolation.narrat\"}]},\"keywords\":{\"patterns\":[{\"match\":\"\\\\b(if|else|choice)\\\\b\",\"name\":\"keyword.control.narrat\"},{\"match\":\"\\\\$[\\\\w|\\\\.]+\\\\b\",\"name\":\"variable.value.narrat\"},{\"match\":\"^\\\\w+(?=(\\\\s|\\\\w)*:)\",\"name\":\"entity.name.function.narrat\"},{\"match\":\"^\\\\w+(?!(\\\\s|\\\\w)*:)\",\"name\":\"invalid.label.narrat\"},{\"match\":\"(?<=\\\\w)[^^](\\\\b\\\\w+\\\\b)(?=(\\\\s|\\\\w)*:)\",\"name\":\"entity.other.attribute-name\"}]},\"operators\":{\"patterns\":[{\"match\":\"(&&|\\\\|\\\\||!=|==|>=|<=|<|>|!|\\\\?)\\\\s\",\"name\":\"keyword.operator.logic.narrat\"},{\"match\":\"(\\\\+|-|\\\\*|\\\\/)\\\\s\",\"name\":\"keyword.operator.arithmetic.narrat\"}]},\"paren-expression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.paren.open\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.paren.close\"}},\"name\":\"expression.group\",\"patterns\":[{\"include\":\"#expression\"}]},\"primitives\":{\"patterns\":[{\"match\":\"\\\\b\\\\d+\\\\b\",\"name\":\"constant.numeric.narrat\"},{\"match\":\"\\\\btrue\\\\b\",\"name\":\"constant.language.true.narrat\"},{\"match\":\"\\\\bfalse\\\\b\",\"name\":\"constant.language.false.narrat\"},{\"match\":\"\\\\bnull\\\\b\",\"name\":\"constant.language.null.narrat\"},{\"match\":\"\\\\bundefined\\\\b\",\"name\":\"constant.language.undefined.narrat\"}]},\"strings\":{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.narrat\",\"patterns\":[{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.narrat\"},{\"begin\":\"%{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.template.open\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.template.close.narrat\"}},\"name\":\"expression.template\",\"patterns\":[{\"include\":\"#expression\"},{\"include\":\"#interpolation\"}]}]}},\"scopeName\":\"source.narrat\",\"aliases\":[\"nar\"]}"))
2
+
3
+ export default [
4
+ lang
5
+ ]
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs