@shikijs/langs-precompiled 1.26.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 +15 -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 +19 -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 +7 -0
  35. package/dist/apl.d.mts +3 -0
  36. package/dist/apl.mjs +17 -0
  37. package/dist/applescript.d.mts +3 -0
  38. package/dist/applescript.mjs +7 -0
  39. package/dist/ara.d.mts +3 -0
  40. package/dist/ara.mjs +7 -0
  41. package/dist/asciidoc.d.mts +3 -0
  42. package/dist/asciidoc.mjs +7 -0
  43. package/dist/asm.d.mts +3 -0
  44. package/dist/asm.mjs +7 -0
  45. package/dist/astro.d.mts +3 -0
  46. package/dist/astro.mjs +17 -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 +19 -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 +7 -0
  73. package/dist/cadence.d.mts +3 -0
  74. package/dist/cadence.mjs +7 -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 +7 -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 +7 -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 +13 -0
  109. package/dist/cpp.d.mts +3 -0
  110. package/dist/cpp.mjs +15 -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 +19 -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 +3 -0
  119. package/dist/css.d.mts +3 -0
  120. package/dist/css.mjs +7 -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 +7 -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 +9 -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 +7 -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 +7 -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 +7 -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 +15 -0
  225. package/dist/glimmer-ts.d.mts +3 -0
  226. package/dist/glimmer-ts.mjs +15 -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 +7 -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 +15 -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 +3 -0
  243. package/dist/haml.d.mts +3 -0
  244. package/dist/haml.mjs +11 -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 +7 -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 +11 -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 +9 -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 +7 -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 +7 -0
  281. package/dist/javascript.d.mts +3 -0
  282. package/dist/javascript.mjs +7 -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 +7 -0
  307. package/dist/julia.d.mts +3 -0
  308. package/dist/julia.mjs +17 -0
  309. package/dist/kotlin.d.mts +3 -0
  310. package/dist/kotlin.mjs +7 -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 +7 -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 +7 -0
  337. package/dist/lua.d.mts +3 -0
  338. package/dist/lua.mjs +9 -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 +7 -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 +7 -0
  347. package/dist/markdown.d.mts +3 -0
  348. package/dist/markdown.mjs +7 -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 +7 -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 +13 -0
  357. package/dist/mdx.d.mts +3 -0
  358. package/dist/mdx.mjs +7 -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 +7 -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 +7 -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 +7 -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 +21 -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 +7 -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 +7 -0
  395. package/dist/objective-cpp.d.mts +3 -0
  396. package/dist/objective-cpp.mjs +7 -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 +7 -0
  401. package/dist/perl.d.mts +3 -0
  402. package/dist/perl.mjs +17 -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 +19 -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 +7 -0
  411. package/dist/polar.d.mts +3 -0
  412. package/dist/polar.mjs +7 -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 +7 -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 +3 -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 +7 -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 +7 -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 +7 -0
  461. package/dist/razor.d.mts +3 -0
  462. package/dist/razor.mjs +3 -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 +7 -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 +31 -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 +7 -0
  489. package/dist/scheme.d.mts +3 -0
  490. package/dist/scheme.mjs +7 -0
  491. package/dist/scss.d.mts +3 -0
  492. package/dist/scss.mjs +9 -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 +7 -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 +7 -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 +7 -0
  521. package/dist/ssh-config.d.mts +3 -0
  522. package/dist/ssh-config.mjs +7 -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 +7 -0
  529. package/dist/svelte.d.mts +3 -0
  530. package/dist/svelte.mjs +15 -0
  531. package/dist/swift.d.mts +3 -0
  532. package/dist/swift.mjs +3 -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 +13 -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 +9 -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 +7 -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 +7 -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 +19 -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 +7 -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 +7 -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 +7 -0
  585. package/dist/verilog.d.mts +3 -0
  586. package/dist/verilog.mjs +7 -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 +11 -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 +27 -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 +7 -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 +7 -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 +7 -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 +7 -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 +358 -0
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
@@ -0,0 +1,8 @@
1
+ import diff from './diff.mjs'
2
+
3
+ const lang = Object.freeze({displayName:"Git Commit Message",name:"git-commit",patterns:[{begin:/(?=(?<=^|\n(?!$))diff --git)/dgv,comment:"diff presented at the end of the commit message when using commit -v.",contentName:"source.diff",end:/$/dgv,name:"meta.embedded.diff.git-commit",patterns:[{include:"source.diff"}]},{begin:/(?<=^|\n(?!$))(?!#)/dgv,comment:"User supplied message",end:/(?<=^|\n(?!$))(?=#)/dgv,name:"meta.scope.message.git-commit",patterns:[{captures:{"1":{name:"invalid.deprecated.line-too-long.git-commit"},"2":{name:"invalid.illegal.line-too-long.git-commit"}},comment:"Mark > 50 lines as deprecated, > 72 as illegal",match:/[^\n]{0,50}([^\n]{0,22}([^\n]*))(?=$|\n)/dgvy,name:"meta.scope.subject.git-commit"}]},{begin:/(?<=^|\n(?!$))(?=#)/dgv,comment:"Git supplied metadata in a number of lines starting with #",contentName:"comment.line.number-sign.git-commit",end:/(?<=^|\n(?!$))(?!#)/dgv,name:"meta.scope.metadata.git-commit",patterns:[{captures:{"1":{name:"markup.changed.git-commit"}},match:/(?<=^|\n(?!$))#\t((modified|renamed):[^\n]*)(?=$|\n)/dgv},{captures:{"1":{name:"markup.inserted.git-commit"}},match:/(?<=^|\n(?!$))#\t(new file:[^\n]*)(?=$|\n)/dgv},{captures:{"1":{name:"markup.deleted.git-commit"}},match:/(?<=^|\n(?!$))#\t(deleted[^\n]*)(?=$|\n)/dgv},{captures:{"1":{name:"keyword.other.file-type.git-commit"},"2":{name:"string.unquoted.filename.git-commit"}},comment:"Fallback for non-English git commit template",match:/(?<=^|\n(?!$))#\t([^\:]+): *([^\n]*)(?=$|\n)/dgv}]}],scopeName:"text.git-commit",embeddedLangs:["diff"],aliases:undefined})
4
+
5
+ export default [
6
+ ...diff,
7
+ lang
8
+ ]
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
@@ -0,0 +1,8 @@
1
+ import shellscript from './shellscript.mjs'
2
+
3
+ const lang = Object.freeze({displayName:"Git Rebase Message",name:"git-rebase",patterns:[{captures:{"1":{name:"punctuation.definition.comment.git-rebase"}},match:/(?<=^|\n(?!$))\p{space}*(#)[^\n]*(?=$|\n)\n?/dgv,name:"comment.line.number-sign.git-rebase"},{captures:{"1":{name:"support.function.git-rebase"},"2":{name:"constant.sha.git-rebase"},"3":{name:"meta.commit-message.git-rebase"}},match:/(?<=^|\n(?!$))\p{space}*(pick|p|reword|r|edit|e|squash|s|fixup|f|drop|d)\p{space}+([0-9a-f]+)\p{space}+([^\n]*)(?=$|\n)/dgv,name:"meta.commit-command.git-rebase"},{captures:{"1":{name:"support.function.git-rebase"},"2":{patterns:[{include:"source.shell"}]}},match:/(?<=^|\n(?!$))\p{space}*(exec|x)\p{space}+([^\n]*)(?=$|\n)/dgv,name:"meta.commit-command.git-rebase"},{captures:{"1":{name:"support.function.git-rebase"}},match:/(?<=^|\n(?!$))\p{space}*(break|b)\p{space}*(?=$|\n)/dgv,name:"meta.commit-command.git-rebase"}],scopeName:"text.git-rebase",embeddedLangs:["shellscript"],aliases:undefined})
4
+
5
+ export default [
6
+ ...shellscript,
7
+ lang
8
+ ]
package/dist/gjs.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/gjs.mjs ADDED
@@ -0,0 +1,2 @@
1
+ /* Alias gjs for glimmer-js */
2
+ export { default } from './glimmer-js.mjs'
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/gleam.mjs ADDED
@@ -0,0 +1,5 @@
1
+ const lang = Object.freeze({displayName:"Gleam",name:"gleam",patterns:[{include:"#comments"},{include:"#keywords"},{include:"#strings"},{include:"#constant"},{include:"#entity"},{include:"#discards"}],repository:{binary_number:{match:/\b0[bB]0*1[01_]*\b/dgv,name:"constant.numeric.binary.gleam",patterns:[]},comments:{patterns:[{match:/\/\/[^\n]*/dgv,name:"comment.line.gleam"}]},constant:{patterns:[{include:"#binary_number"},{include:"#octal_number"},{include:"#hexadecimal_number"},{include:"#decimal_number"},{include:"#boolean"},{match:/[A-Z][0-9A-Za-z]*/dgv,name:"entity.name.type.gleam"}]},decimal_number:{match:/\b(0*[1-9][0-9_]*|0)(\.(0*[1-9][0-9_]*|0)?(e-?0*[1-9]\p{Nd}*)?)?\b/dgv,name:"constant.numeric.decimal.gleam",patterns:[]},discards:{match:/\b_(?:[\p{L}\p{M}\p{N}\p{Pc}]+)?\b/dgv,name:"comment.unused.gleam"},entity:{patterns:[{begin:/\b([a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b[\p{space}]*\(/dgv,captures:{"1":{name:"entity.name.function.gleam"}},end:/\)/dgv,patterns:[{include:"$self"}]},{match:/\b([a-z][\p{L}\p{M}\p{N}\p{Pc}]*):\p{space}/dgv,name:"variable.parameter.gleam"},{match:/\b([a-z][\p{L}\p{M}\p{N}\p{Pc}]*):/dgv,name:"entity.name.namespace.gleam"}]},hexadecimal_number:{match:/\b0[xX]0*[1-9a-zA-Z][0-9a-zA-Z]*\b/dgv,name:"constant.numeric.hexadecimal.gleam",patterns:[]},keywords:{patterns:[{match:/\b(as|use|case|if|fn|import|let|assert|pub|type|opaque|const|todo|panic|else|try)\b/dgv,name:"keyword.control.gleam"},{match:/(<-|->)/dgv,name:"keyword.operator.arrow.gleam"},{match:/\|>/dgv,name:"keyword.operator.pipe.gleam"},{match:/\.\./dgv,name:"keyword.operator.splat.gleam"},{match:/(==|!=)/dgv,name:"keyword.operator.comparison.gleam"},{match:/(<=\.|>=\.|<\.|>\.)/dgv,name:"keyword.operator.comparison.float.gleam"},{match:/(<=|>=|<|>)/dgv,name:"keyword.operator.comparison.int.gleam"},{match:/(&&|\|\|)/dgv,name:"keyword.operator.logical.gleam"},{match:/<>/dgv,name:"keyword.operator.string.gleam"},{match:/\|/dgv,name:"keyword.operator.other.gleam"},{match:/(\+\.|-\.|\/\.|\*\.)/dgv,name:"keyword.operator.arithmetic.float.gleam"},{match:/(\+|-|\/|\*|%)/dgv,name:"keyword.operator.arithmetic.int.gleam"},{match:/=/dgv,name:"keyword.operator.assignment.gleam"}]},octal_number:{match:/\b0[oO]0*[1-7][0-7]*\b/dgv,name:"constant.numeric.octal.gleam",patterns:[]},strings:{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.gleam",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.gleam"}]}},scopeName:"source.gleam",embeddedLangs:undefined,aliases:undefined})
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
@@ -0,0 +1,15 @@
1
+ import { EmulatedRegExp } from 'oniguruma-to-es'
2
+ import javascript from './javascript.mjs'
3
+ import typescript from './typescript.mjs'
4
+ import css from './css.mjs'
5
+ import html from './html.mjs'
6
+
7
+ const lang = Object.freeze({displayName:"Glimmer JS",injections:{"L:source.gjs -comment -(string -meta.embedded)":{patterns:[{include:"#main"}]}},name:"glimmer-js",patterns:[{include:"#main"},{include:"source.js"}],repository:{"as-keyword":{match:/\p{space}\b(as)\b(?=\p{space}\|)/dgv,name:"keyword.control",patterns:[]},"as-params":{begin:/(?<!\|)(\|)/dgv,beginCaptures:{"1":{name:"constant.other.symbol.begin.ember-handlebars"}},end:/(\|)(?!\|)/dgv,endCaptures:{"1":{name:"constant.other.symbol.end.ember-handlebars"}},name:"keyword.block-params.ember-handlebars",patterns:[{include:"#variable"}]},attention:{match:/@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\b/dgv,name:"storage.type.class.${1:/downcase}",patterns:[]},boolean:{captures:{"0":{name:"string.regexp"},"1":{name:"string.regexp"},"2":{name:"string.regexp"}},match:/true|false|undefined|null/dgv,patterns:[]},"component-tag":{begin:/(<\/?)(@|this[^\n])?([a-zA-Z0-9\-_\$\:\.]+)\b/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag"},"2":{name:"support.function",patterns:[{match:/(@|this)/dgv,name:"variable.language"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]},"3":{name:"entity.name.type",patterns:[{include:"#glimmer-component-path"},{match:/(@|:|\$)/dgv,name:"markup.bold"}]}},end:/(\/?)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag"},"2":{name:"punctuation.definition.tag"}},name:"meta.tag.any.ember-handlebars",patterns:[{include:"#tag-like-content"}]},digit:{captures:{"0":{name:"constant.numeric"},"1":{name:"constant.numeric"},"2":{name:"constant.numeric"}},match:/\p{Nd}*(\.)?\p{Nd}+/dgv,patterns:[]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html.ember-handlebars"},"3":{name:"punctuation.definition.entity.html.ember-handlebars"}},match:/(&)([a-zA-Z0-9]+|#\p{Nd}+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html.ember-handlebars"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html.ember-handlebars"}]},"glimmer-argument":{captures:{"1":{name:"entity.other.attribute-name.ember-handlebars.argument",patterns:[{match:/(@)/dgv,name:"markup.italic"}]},"2":{name:"punctuation.separator.key-value.html.ember-handlebars"}},match:/\p{space}(@[a-zA-Z0-9\:_\.\-]+)(=)?/dgv},"glimmer-as-stuff":{patterns:[{include:"#as-keyword"},{include:"#as-params"}]},"glimmer-block":{begin:/(\{\{~?)(#|\/)(([\@\$a-zA-Z0-9_\/\.\-]+))/dgv,captures:{"1":{name:"punctuation.definition.tag"},"2":{name:"punctuation.definition.tag"},"3":{name:"keyword.control",patterns:[{include:"#glimmer-component-path"},{match:/(\/)+/dgv,name:"punctuation.definition.tag"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]}},end:/(~?\}\})/dgv,name:"entity.expression.ember-handlebars",patterns:[{include:"#glimmer-as-stuff"},{include:"#glimmer-supexp-content"}]},"glimmer-bools":{captures:{"0":{name:"keyword.operator"},"1":{name:"keyword.operator"},"2":{name:"string.regexp"},"3":{name:"string.regexp"},"4":{name:"keyword.operator"}},match:/(\{\{~?)(true|false|null|undefined|\p{Nd}*(\.)?\p{Nd}+)(~?\}\})/dgv,name:"entity.expression.ember-handlebars"},"glimmer-comment-block":{begin:/\{\{!--/dgv,captures:{"0":{name:"punctuation.definition.block.comment.glimmer"}},end:/--\}\}/dgv,name:"comment.block.glimmer",patterns:[{include:"#script"},{include:"#attention"}]},"glimmer-comment-inline":{begin:/\{\{!/dgv,captures:{"0":{name:"punctuation.definition.block.comment.glimmer"}},end:/\}\}/dgv,name:"comment.inline.glimmer",patterns:[{include:"#script"},{include:"#attention"}]},"glimmer-component-path":{captures:{"1":{name:"punctuation.definition.tag"}},match:/(::|_|\$|\.)/dgv},"glimmer-control-expression":{begin:/(\{\{~?)(([\-a-zA-Z_0-9\/]+)\p{space})/dgv,captures:{"1":{name:"keyword.operator"},"2":{name:"keyword.operator"},"3":{name:"keyword.control"}},end:/(~?\}\})/dgv,name:"entity.expression.ember-handlebars",patterns:[{include:"#glimmer-supexp-content"}]},"glimmer-else-block":{captures:{"0":{name:"punctuation.definition.tag"},"1":{name:"punctuation.definition.tag"},"2":{name:"keyword.control"},"3":{name:"keyword.control",patterns:[{include:"#glimmer-subexp"},{include:"#string-single-quoted-handlebars"},{include:"#string-double-quoted-handlebars"},{include:"#boolean"},{include:"#digit"},{include:"#param"},{include:"#glimmer-parameter-name"},{include:"#glimmer-parameter-value"}]},"4":{name:"punctuation.definition.tag"}},match:/(\{\{~?)(else\p{space}[a-z]+\p{space}|else)([\(\)\@a-zA-Z0-9\.\p{space}\x08]+)?(~?\}\})/dgv,name:"entity.expression.ember-handlebars"},"glimmer-expression":{begin:/(\{\{~?)(([\(\)\p{space}\@a-zA-Z0-9_\.\-]+))/dgv,captures:{"1":{name:"keyword.operator"},"2":{name:"keyword.operator"},"3":{name:"support.function",patterns:[{match:/[\(]+/dgv,name:"string.regexp"},{match:/[\)]+/dgv,name:"string.regexp"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"},{include:"#glimmer-supexp-content"}]}},end:/(~?\}\})/dgv,name:"entity.expression.ember-handlebars",patterns:[{include:"#glimmer-supexp-content"}]},"glimmer-expression-property":{begin:/(\{\{~?)((@|this[^\n])([a-zA-Z0-9_\.\-]+))/dgv,captures:{"1":{name:"keyword.operator"},"2":{name:"keyword.operator"},"3":{name:"support.function",patterns:[{match:/(@|this)/dgv,name:"variable.language"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]},"4":{name:"support.function",patterns:[{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]}},end:/(~?\}\})/dgv,name:"entity.expression.ember-handlebars",patterns:[{include:"#glimmer-supexp-content"}]},"glimmer-parameter-name":{captures:{"1":{name:"variable.parameter.name.ember-handlebars"},"2":{name:"punctuation.definition.expression.ember-handlebars"}},match:/\b([a-zA-Z0-9_\-]+)(\p{space}?=)/dgv,patterns:[]},"glimmer-parameter-value":{captures:{"1":{name:"support.function",patterns:[{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]}},match:/\b([a-zA-Z0-9\:_\.\-]+)\b(?!=)/dgv,patterns:[]},"glimmer-special-block":{captures:{"0":{name:"keyword.operator"},"1":{name:"keyword.operator"},"2":{name:"keyword.control"},"3":{name:"keyword.operator"}},match:/(\{\{~?)(yield|outlet)(~?\}\})/dgv,name:"entity.expression.ember-handlebars"},"glimmer-subexp":{begin:/(\()([\@a-zA-Z0-9\.\-]+)/dgv,captures:{"1":{name:"keyword.other"},"2":{name:"keyword.control"}},end:/(\))/dgv,name:"entity.subexpression.ember-handlebars",patterns:[{include:"#glimmer-supexp-content"}]},"glimmer-supexp-content":{patterns:[{include:"#glimmer-subexp"},{include:"#string-single-quoted-handlebars"},{include:"#string-double-quoted-handlebars"},{include:"#boolean"},{include:"#digit"},{include:"#param"},{include:"#glimmer-parameter-name"},{include:"#glimmer-parameter-value"}]},"glimmer-unescaped-expression":{begin:/\{\{\{/dgv,captures:{"0":{name:"keyword.operator"}},end:/\}\}\}/dgv,name:"entity.unescaped.expression.ember-handlebars",patterns:[{include:"#string-single-quoted-handlebars"},{include:"#string-double-quoted-handlebars"},{include:"#glimmer-subexp"},{include:"#param"}]},"html-attribute":{captures:{"1":{name:"entity.other.attribute-name.ember-handlebars",patterns:[{match:/(\.\.\.attributes)/dgv,name:"markup.bold"}]},"2":{name:"punctuation.separator.key-value.html.ember-handlebars"}},match:/\p{space}([a-zA-Z0-9\:_\.\-]+)(=)?/dgv},"html-comment":{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html.ember-handlebars"}},end:/--\p{space}*>/dgv,name:"comment.block.html.ember-handlebars",patterns:[{include:"#attention"},{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars"}]},"html-tag":{begin:/(<\/?)([a-z0-9\-]+)(?!\.|:)\b/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag"},"2":{name:"entity.name.tag.html.ember-handlebars"}},end:/(\/?)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag"},"2":{name:"punctuation.definition.tag"}},name:"meta.tag.any.ember-handlebars",patterns:[{include:"#tag-like-content"}]},main:{patterns:[{begin:/\p{space}*(<)(template)\p{space}*(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"},"3":{name:"punctuation.definition.tag.html"}},end:/(<\/)(template)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"},"3":{name:"punctuation.definition.tag.html"}},name:"meta.js.embeddedTemplateWithoutArgs",patterns:[{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]},{begin:/(<)(template)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"}},end:/(<\/)(template)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"},"3":{name:"punctuation.definition.tag.html"}},name:"meta.js.embeddedTemplateWithArgs",patterns:[{begin:/(?<=<template)/dgv,end:/(?=>)/dgv,patterns:[{include:"#tag-like-content"}]},{begin:/(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.end.js"}},contentName:"meta.html.embedded.block",end:/(?=<\/template>)/dgv,patterns:[{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]}]},{begin:/(\b(?:[\p{L}\p{M}\p{N}\p{Pc}]+\.)*(?:hbs|html)\p{space}*)(`)/dgv,beginCaptures:{"1":{name:"entity.name.function.tagged-template.js"},"2":{name:"punctuation.definition.string.template.begin.js"}},contentName:"meta.embedded.block.html",end:/(`)/dgv,endCaptures:{"0":{name:"string.js"},"1":{name:"punctuation.definition.string.template.end.js"}},patterns:[{include:"source.ts#template-substitution-element"},{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]},{begin:/((createTemplate|hbs|html))(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ts"},"2":{name:"meta.function-call.ts"},"3":{name:"meta.brace.round.ts"}},contentName:"meta.embedded.block.html",end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.ts"}},patterns:[{begin:/((`|'|"))/dgv,beginCaptures:{"1":{name:"string.template.ts"},"2":{name:"punctuation.definition.string.template.begin.ts"}},end:/((`|'|"))/dgv,endCaptures:{"1":{name:"string.template.ts"},"2":{name:"punctuation.definition.string.template.end.ts"}},patterns:[{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]}]},{begin:/((precompileTemplate)\p{space}*)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ts"},"2":{name:"meta.function-call.ts"},"3":{name:"meta.brace.round.ts"}},end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.ts"}},patterns:[{begin:/((`|'|"))/dgv,beginCaptures:{"1":{name:"string.template.ts"},"2":{name:"punctuation.definition.string.template.begin.ts"}},contentName:"meta.embedded.block.html",end:/((`|'|"))/dgv,endCaptures:{"1":{name:"string.template.ts"},"2":{name:"punctuation.definition.string.template.end.ts"}},patterns:[{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]},{include:"source.ts#object-literal"},{include:"source.ts"}]}]},param:{captures:{"0":{name:"support.function",patterns:[{match:/(@|this)/dgv,name:"variable.language"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]},"1":{name:"support.function",patterns:[{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]}},match:/(@|this[^\n])([a-zA-Z0-9_\.\-]+)/dgv,patterns:[]},script:{begin:/((?<=^|\n(?!$))[ \t]+)?(?=<script\b(?!-))/dgiv,beginCaptures:{"1":{name:"punctuation.whitespace.embedded.leading.html"}},end:new EmulatedRegExp("([ \\t]*(?=$|\\n)\\n?)?","dgv",{"strategy":"not_search_start"}),endCaptures:{"1":{name:"punctuation.whitespace.embedded.trailing.html"}},patterns:[{begin:/(<)(script)\b/dgiv,beginCaptures:{"0":{name:"meta.tag.metadata.script.start.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"}},end:/(\/)(script)(>)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.script.end.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"},"3":{name:"punctuation.definition.tag.end.html"}},name:"meta.embedded.block.html",patterns:[{begin:/(?:)/dgv,end:/(?=\/)/dgv,patterns:[{begin:/(>)/dgv,beginCaptures:{"0":{name:"meta.tag.metadata.script.start.html"},"1":{name:"punctuation.definition.tag.end.html"}},end:/((<))(?=\/script)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.script.end.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"source.js-ignored-vscode"}},patterns:[{begin:/(?:)/dgv,end:/(?=<\/script)/dgiv,name:"source.js",patterns:[{begin:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.js"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.js"}},end:/(?=<\/script)|\n/dgv,name:"comment.line.double-slash.js"}]},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.js"}},end:/\*\/|(?=<\/script)/dgv,name:"comment.block.js"},{include:"source.js"}]}]},{begin:/(?=type\p{space}*=\p{space}*('|"|)text\/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\p{space}"'\>])/dgiv,end:/((<))(?=\/script)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.script.end.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"text.html.basic"}},patterns:[{begin:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),end:/(?=<\/script)/dgiv,name:"text.html.basic",patterns:[{include:"text.html.basic"}]}]},{begin:/(?=type)/dgiv,end:/(<)(?=\/script)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.script.end.html"},"1":{name:"punctuation.definition.tag.begin.html"}}},{include:"#string-double-quoted-html"},{include:"#string-single-quoted-html"},{include:"#glimmer-argument"},{include:"#html-attribute"}]}]}]},"string-double-quoted-handlebars":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ember-handlebars"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ember-handlebars"}},name:"string.quoted.double.ember-handlebars",patterns:[{match:/\\"/dgv,name:"constant.character.escape.ember-handlebars"}]},"string-double-quoted-html":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ember-handlebars"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ember-handlebars"}},name:"string.quoted.double.html.ember-handlebars",patterns:[{match:/\\"/dgv,name:"constant.character.escape.ember-handlebars"},{include:"#glimmer-bools"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"}]},"string-single-quoted-handlebars":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ember-handlebars"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ember-handlebars"}},name:"string.quoted.single.ember-handlebars",patterns:[{match:/\\'/dgv,name:"constant.character.escape.ember-handlebars"}]},"string-single-quoted-html":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ember-handlebars"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ember-handlebars"}},name:"string.quoted.single.html.ember-handlebars",patterns:[{match:/\\'/dgv,name:"constant.character.escape.ember-handlebars"},{include:"#glimmer-bools"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"}]},style:{begin:/((?<=^|\n(?!$))[ \t]+)?(?=<style\b(?!-))/dgiv,beginCaptures:{"1":{name:"punctuation.whitespace.embedded.leading.html"}},end:new EmulatedRegExp("([ \\t]*(?=$|\\n)\\n?)?","dgv",{"strategy":"not_search_start"}),endCaptures:{"1":{name:"punctuation.whitespace.embedded.trailing.html"}},patterns:[{begin:/(<)(style)(?=\p{space}|\/?>)/dgiv,beginCaptures:{"0":{name:"meta.tag.metadata.style.start.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"}},end:/((<)\/)(style)\p{space}*(>)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.style.end.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"source.css-ignored-vscode"},"3":{name:"entity.name.tag.html"},"4":{name:"punctuation.definition.tag.end.html"}},name:"meta.embedded.block.html",patterns:[{begin:/(?:)/dgv,captures:{"1":{name:"punctuation.definition.tag.end.html"}},end:/(>)/dgv,name:"meta.tag.metadata.style.start.html",patterns:[{include:"#glimmer-argument"},{include:"#html-attribute"}]},{begin:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),end:/(?=<\/style)/dgiv,name:"source.css",patterns:[{include:"source.css"}]}]}]},"tag-like-content":{patterns:[{include:"#glimmer-bools"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#boolean"},{include:"#digit"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#string-double-quoted-html"},{include:"#string-single-quoted-html"},{include:"#glimmer-as-stuff"},{include:"#glimmer-argument"},{include:"#html-attribute"}]},variable:{match:/\b([a-zA-Z0-9\-_]+)\b/dgv,name:"support.function",patterns:[]}},scopeName:"source.gjs",embeddedLangs:["javascript","typescript","css","html"],aliases:["gjs"]})
8
+
9
+ export default [
10
+ ...javascript,
11
+ ...typescript,
12
+ ...css,
13
+ ...html,
14
+ lang
15
+ ]
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
@@ -0,0 +1,15 @@
1
+ import { EmulatedRegExp } from 'oniguruma-to-es'
2
+ import typescript from './typescript.mjs'
3
+ import css from './css.mjs'
4
+ import javascript from './javascript.mjs'
5
+ import html from './html.mjs'
6
+
7
+ const lang = Object.freeze({displayName:"Glimmer TS",injections:{"L:source.gts -comment -(string -meta.embedded)":{patterns:[{include:"#main"}]}},name:"glimmer-ts",patterns:[{include:"#main"},{include:"source.ts"}],repository:{"as-keyword":{match:/\p{space}\b(as)\b(?=\p{space}\|)/dgv,name:"keyword.control",patterns:[]},"as-params":{begin:/(?<!\|)(\|)/dgv,beginCaptures:{"1":{name:"constant.other.symbol.begin.ember-handlebars"}},end:/(\|)(?!\|)/dgv,endCaptures:{"1":{name:"constant.other.symbol.end.ember-handlebars"}},name:"keyword.block-params.ember-handlebars",patterns:[{include:"#variable"}]},attention:{match:/@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\b/dgv,name:"storage.type.class.${1:/downcase}",patterns:[]},boolean:{captures:{"0":{name:"string.regexp"},"1":{name:"string.regexp"},"2":{name:"string.regexp"}},match:/true|false|undefined|null/dgv,patterns:[]},"component-tag":{begin:/(<\/?)(@|this[^\n])?([a-zA-Z0-9\-_\$\:\.]+)\b/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag"},"2":{name:"support.function",patterns:[{match:/(@|this)/dgv,name:"variable.language"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]},"3":{name:"entity.name.type",patterns:[{include:"#glimmer-component-path"},{match:/(@|:|\$)/dgv,name:"markup.bold"}]}},end:/(\/?)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag"},"2":{name:"punctuation.definition.tag"}},name:"meta.tag.any.ember-handlebars",patterns:[{include:"#tag-like-content"}]},digit:{captures:{"0":{name:"constant.numeric"},"1":{name:"constant.numeric"},"2":{name:"constant.numeric"}},match:/\p{Nd}*(\.)?\p{Nd}+/dgv,patterns:[]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html.ember-handlebars"},"3":{name:"punctuation.definition.entity.html.ember-handlebars"}},match:/(&)([a-zA-Z0-9]+|#\p{Nd}+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html.ember-handlebars"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html.ember-handlebars"}]},"glimmer-argument":{captures:{"1":{name:"entity.other.attribute-name.ember-handlebars.argument",patterns:[{match:/(@)/dgv,name:"markup.italic"}]},"2":{name:"punctuation.separator.key-value.html.ember-handlebars"}},match:/\p{space}(@[a-zA-Z0-9\:_\.\-]+)(=)?/dgv},"glimmer-as-stuff":{patterns:[{include:"#as-keyword"},{include:"#as-params"}]},"glimmer-block":{begin:/(\{\{~?)(#|\/)(([\@\$a-zA-Z0-9_\/\.\-]+))/dgv,captures:{"1":{name:"punctuation.definition.tag"},"2":{name:"punctuation.definition.tag"},"3":{name:"keyword.control",patterns:[{include:"#glimmer-component-path"},{match:/(\/)+/dgv,name:"punctuation.definition.tag"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]}},end:/(~?\}\})/dgv,name:"entity.expression.ember-handlebars",patterns:[{include:"#glimmer-as-stuff"},{include:"#glimmer-supexp-content"}]},"glimmer-bools":{captures:{"0":{name:"keyword.operator"},"1":{name:"keyword.operator"},"2":{name:"string.regexp"},"3":{name:"string.regexp"},"4":{name:"keyword.operator"}},match:/(\{\{~?)(true|false|null|undefined|\p{Nd}*(\.)?\p{Nd}+)(~?\}\})/dgv,name:"entity.expression.ember-handlebars"},"glimmer-comment-block":{begin:/\{\{!--/dgv,captures:{"0":{name:"punctuation.definition.block.comment.glimmer"}},end:/--\}\}/dgv,name:"comment.block.glimmer",patterns:[{include:"#script"},{include:"#attention"}]},"glimmer-comment-inline":{begin:/\{\{!/dgv,captures:{"0":{name:"punctuation.definition.block.comment.glimmer"}},end:/\}\}/dgv,name:"comment.inline.glimmer",patterns:[{include:"#script"},{include:"#attention"}]},"glimmer-component-path":{captures:{"1":{name:"punctuation.definition.tag"}},match:/(::|_|\$|\.)/dgv},"glimmer-control-expression":{begin:/(\{\{~?)(([\-a-zA-Z_0-9\/]+)\p{space})/dgv,captures:{"1":{name:"keyword.operator"},"2":{name:"keyword.operator"},"3":{name:"keyword.control"}},end:/(~?\}\})/dgv,name:"entity.expression.ember-handlebars",patterns:[{include:"#glimmer-supexp-content"}]},"glimmer-else-block":{captures:{"0":{name:"punctuation.definition.tag"},"1":{name:"punctuation.definition.tag"},"2":{name:"keyword.control"},"3":{name:"keyword.control",patterns:[{include:"#glimmer-subexp"},{include:"#string-single-quoted-handlebars"},{include:"#string-double-quoted-handlebars"},{include:"#boolean"},{include:"#digit"},{include:"#param"},{include:"#glimmer-parameter-name"},{include:"#glimmer-parameter-value"}]},"4":{name:"punctuation.definition.tag"}},match:/(\{\{~?)(else\p{space}[a-z]+\p{space}|else)([\(\)\@a-zA-Z0-9\.\p{space}\x08]+)?(~?\}\})/dgv,name:"entity.expression.ember-handlebars"},"glimmer-expression":{begin:/(\{\{~?)(([\(\)\p{space}\@a-zA-Z0-9_\.\-]+))/dgv,captures:{"1":{name:"keyword.operator"},"2":{name:"keyword.operator"},"3":{name:"support.function",patterns:[{match:/[\(]+/dgv,name:"string.regexp"},{match:/[\)]+/dgv,name:"string.regexp"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"},{include:"#glimmer-supexp-content"}]}},end:/(~?\}\})/dgv,name:"entity.expression.ember-handlebars",patterns:[{include:"#glimmer-supexp-content"}]},"glimmer-expression-property":{begin:/(\{\{~?)((@|this[^\n])([a-zA-Z0-9_\.\-]+))/dgv,captures:{"1":{name:"keyword.operator"},"2":{name:"keyword.operator"},"3":{name:"support.function",patterns:[{match:/(@|this)/dgv,name:"variable.language"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]},"4":{name:"support.function",patterns:[{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]}},end:/(~?\}\})/dgv,name:"entity.expression.ember-handlebars",patterns:[{include:"#glimmer-supexp-content"}]},"glimmer-parameter-name":{captures:{"1":{name:"variable.parameter.name.ember-handlebars"},"2":{name:"punctuation.definition.expression.ember-handlebars"}},match:/\b([a-zA-Z0-9_\-]+)(\p{space}?=)/dgv,patterns:[]},"glimmer-parameter-value":{captures:{"1":{name:"support.function",patterns:[{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]}},match:/\b([a-zA-Z0-9\:_\.\-]+)\b(?!=)/dgv,patterns:[]},"glimmer-special-block":{captures:{"0":{name:"keyword.operator"},"1":{name:"keyword.operator"},"2":{name:"keyword.control"},"3":{name:"keyword.operator"}},match:/(\{\{~?)(yield|outlet)(~?\}\})/dgv,name:"entity.expression.ember-handlebars"},"glimmer-subexp":{begin:/(\()([\@a-zA-Z0-9\.\-]+)/dgv,captures:{"1":{name:"keyword.other"},"2":{name:"keyword.control"}},end:/(\))/dgv,name:"entity.subexpression.ember-handlebars",patterns:[{include:"#glimmer-supexp-content"}]},"glimmer-supexp-content":{patterns:[{include:"#glimmer-subexp"},{include:"#string-single-quoted-handlebars"},{include:"#string-double-quoted-handlebars"},{include:"#boolean"},{include:"#digit"},{include:"#param"},{include:"#glimmer-parameter-name"},{include:"#glimmer-parameter-value"}]},"glimmer-unescaped-expression":{begin:/\{\{\{/dgv,captures:{"0":{name:"keyword.operator"}},end:/\}\}\}/dgv,name:"entity.unescaped.expression.ember-handlebars",patterns:[{include:"#string-single-quoted-handlebars"},{include:"#string-double-quoted-handlebars"},{include:"#glimmer-subexp"},{include:"#param"}]},"html-attribute":{captures:{"1":{name:"entity.other.attribute-name.ember-handlebars",patterns:[{match:/(\.\.\.attributes)/dgv,name:"markup.bold"}]},"2":{name:"punctuation.separator.key-value.html.ember-handlebars"}},match:/\p{space}([a-zA-Z0-9\:_\.\-]+)(=)?/dgv},"html-comment":{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html.ember-handlebars"}},end:/--\p{space}*>/dgv,name:"comment.block.html.ember-handlebars",patterns:[{include:"#attention"},{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars"}]},"html-tag":{begin:/(<\/?)([a-z0-9\-]+)(?!\.|:)\b/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag"},"2":{name:"entity.name.tag.html.ember-handlebars"}},end:/(\/?)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag"},"2":{name:"punctuation.definition.tag"}},name:"meta.tag.any.ember-handlebars",patterns:[{include:"#tag-like-content"}]},main:{patterns:[{begin:/\p{space}*(<)(template)\p{space}*(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"},"3":{name:"punctuation.definition.tag.html"}},end:/(<\/)(template)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"},"3":{name:"punctuation.definition.tag.html"}},name:"meta.js.embeddedTemplateWithoutArgs",patterns:[{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]},{begin:/(<)(template)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"}},end:/(<\/)(template)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"},"3":{name:"punctuation.definition.tag.html"}},name:"meta.js.embeddedTemplateWithArgs",patterns:[{begin:/(?<=<template)/dgv,end:/(?=>)/dgv,patterns:[{include:"#tag-like-content"}]},{begin:/(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.end.js"}},contentName:"meta.html.embedded.block",end:/(?=<\/template>)/dgv,patterns:[{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]}]},{begin:/(\b(?:[\p{L}\p{M}\p{N}\p{Pc}]+\.)*(?:hbs|html)\p{space}*)(`)/dgv,beginCaptures:{"1":{name:"entity.name.function.tagged-template.js"},"2":{name:"punctuation.definition.string.template.begin.js"}},contentName:"meta.embedded.block.html",end:/(`)/dgv,endCaptures:{"0":{name:"string.js"},"1":{name:"punctuation.definition.string.template.end.js"}},patterns:[{include:"source.ts#template-substitution-element"},{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]},{begin:/((createTemplate|hbs|html))(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ts"},"2":{name:"meta.function-call.ts"},"3":{name:"meta.brace.round.ts"}},contentName:"meta.embedded.block.html",end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.ts"}},patterns:[{begin:/((`|'|"))/dgv,beginCaptures:{"1":{name:"string.template.ts"},"2":{name:"punctuation.definition.string.template.begin.ts"}},end:/((`|'|"))/dgv,endCaptures:{"1":{name:"string.template.ts"},"2":{name:"punctuation.definition.string.template.end.ts"}},patterns:[{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]}]},{begin:/((precompileTemplate)\p{space}*)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ts"},"2":{name:"meta.function-call.ts"},"3":{name:"meta.brace.round.ts"}},end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.ts"}},patterns:[{begin:/((`|'|"))/dgv,beginCaptures:{"1":{name:"string.template.ts"},"2":{name:"punctuation.definition.string.template.begin.ts"}},contentName:"meta.embedded.block.html",end:/((`|'|"))/dgv,endCaptures:{"1":{name:"string.template.ts"},"2":{name:"punctuation.definition.string.template.end.ts"}},patterns:[{include:"#style"},{include:"#script"},{include:"#glimmer-else-block"},{include:"#glimmer-bools"},{include:"#glimmer-special-block"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#html-tag"},{include:"#component-tag"},{include:"#html-comment"},{include:"#entities"}]},{include:"source.ts#object-literal"},{include:"source.ts"}]}]},param:{captures:{"0":{name:"support.function",patterns:[{match:/(@|this)/dgv,name:"variable.language"},{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]},"1":{name:"support.function",patterns:[{match:/(\.)+/dgv,name:"punctuation.definition.tag"}]}},match:/(@|this[^\n])([a-zA-Z0-9_\.\-]+)/dgv,patterns:[]},script:{begin:/((?<=^|\n(?!$))[ \t]+)?(?=<script\b(?!-))/dgiv,beginCaptures:{"1":{name:"punctuation.whitespace.embedded.leading.html"}},end:new EmulatedRegExp("([ \\t]*(?=$|\\n)\\n?)?","dgv",{"strategy":"not_search_start"}),endCaptures:{"1":{name:"punctuation.whitespace.embedded.trailing.html"}},patterns:[{begin:/(<)(script)\b/dgiv,beginCaptures:{"0":{name:"meta.tag.metadata.script.start.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"}},end:/(\/)(script)(>)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.script.end.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"},"3":{name:"punctuation.definition.tag.end.html"}},name:"meta.embedded.block.html",patterns:[{begin:/(?:)/dgv,end:/(?=\/)/dgv,patterns:[{begin:/(>)/dgv,beginCaptures:{"0":{name:"meta.tag.metadata.script.start.html"},"1":{name:"punctuation.definition.tag.end.html"}},end:/((<))(?=\/script)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.script.end.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"source.js-ignored-vscode"}},patterns:[{begin:/(?:)/dgv,end:/(?=<\/script)/dgiv,name:"source.js",patterns:[{begin:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.js"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.js"}},end:/(?=<\/script)|\n/dgv,name:"comment.line.double-slash.js"}]},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.js"}},end:/\*\/|(?=<\/script)/dgv,name:"comment.block.js"},{include:"source.js"}]}]},{begin:/(?=type\p{space}*=\p{space}*('|"|)text\/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\p{space}"'\>])/dgiv,end:/((<))(?=\/script)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.script.end.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"text.html.basic"}},patterns:[{begin:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),end:/(?=<\/script)/dgiv,name:"text.html.basic",patterns:[{include:"text.html.basic"}]}]},{begin:/(?=type)/dgiv,end:/(<)(?=\/script)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.script.end.html"},"1":{name:"punctuation.definition.tag.begin.html"}}},{include:"#string-double-quoted-html"},{include:"#string-single-quoted-html"},{include:"#glimmer-argument"},{include:"#html-attribute"}]}]}]},"string-double-quoted-handlebars":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ember-handlebars"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ember-handlebars"}},name:"string.quoted.double.ember-handlebars",patterns:[{match:/\\"/dgv,name:"constant.character.escape.ember-handlebars"}]},"string-double-quoted-html":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ember-handlebars"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ember-handlebars"}},name:"string.quoted.double.html.ember-handlebars",patterns:[{match:/\\"/dgv,name:"constant.character.escape.ember-handlebars"},{include:"#glimmer-bools"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"}]},"string-single-quoted-handlebars":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ember-handlebars"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ember-handlebars"}},name:"string.quoted.single.ember-handlebars",patterns:[{match:/\\'/dgv,name:"constant.character.escape.ember-handlebars"}]},"string-single-quoted-html":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ember-handlebars"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ember-handlebars"}},name:"string.quoted.single.html.ember-handlebars",patterns:[{match:/\\'/dgv,name:"constant.character.escape.ember-handlebars"},{include:"#glimmer-bools"},{include:"#glimmer-expression-property"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"}]},style:{begin:/((?<=^|\n(?!$))[ \t]+)?(?=<style\b(?!-))/dgiv,beginCaptures:{"1":{name:"punctuation.whitespace.embedded.leading.html"}},end:new EmulatedRegExp("([ \\t]*(?=$|\\n)\\n?)?","dgv",{"strategy":"not_search_start"}),endCaptures:{"1":{name:"punctuation.whitespace.embedded.trailing.html"}},patterns:[{begin:/(<)(style)(?=\p{space}|\/?>)/dgiv,beginCaptures:{"0":{name:"meta.tag.metadata.style.start.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"}},end:/((<)\/)(style)\p{space}*(>)/dgiv,endCaptures:{"0":{name:"meta.tag.metadata.style.end.html"},"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"source.css-ignored-vscode"},"3":{name:"entity.name.tag.html"},"4":{name:"punctuation.definition.tag.end.html"}},name:"meta.embedded.block.html",patterns:[{begin:/(?:)/dgv,captures:{"1":{name:"punctuation.definition.tag.end.html"}},end:/(>)/dgv,name:"meta.tag.metadata.style.start.html",patterns:[{include:"#glimmer-argument"},{include:"#html-attribute"}]},{begin:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),end:/(?=<\/style)/dgiv,name:"source.css",patterns:[{include:"source.css"}]}]}]},"tag-like-content":{patterns:[{include:"#glimmer-bools"},{include:"#glimmer-unescaped-expression"},{include:"#glimmer-comment-block"},{include:"#glimmer-comment-inline"},{include:"#glimmer-expression-property"},{include:"#boolean"},{include:"#digit"},{include:"#glimmer-control-expression"},{include:"#glimmer-expression"},{include:"#glimmer-block"},{include:"#string-double-quoted-html"},{include:"#string-single-quoted-html"},{include:"#glimmer-as-stuff"},{include:"#glimmer-argument"},{include:"#html-attribute"}]},variable:{match:/\b([a-zA-Z0-9\-_]+)\b/dgv,name:"support.function",patterns:[]}},scopeName:"source.gts",embeddedLangs:["typescript","css","javascript","html"],aliases:["gts"]})
8
+
9
+ export default [
10
+ ...typescript,
11
+ ...css,
12
+ ...javascript,
13
+ ...html,
14
+ lang
15
+ ]
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/glsl.mjs ADDED
@@ -0,0 +1,8 @@
1
+ import c from './c.mjs'
2
+
3
+ const lang = Object.freeze({displayName:"GLSL",fileTypes:["vs","fs","gs","vsh","fsh","gsh","vshader","fshader","gshader","vert","frag","geom","f.glsl","v.glsl","g.glsl"],foldingStartMarker:/\/\*\*|\{\p{space}*(?=$|\n)/dgv,foldingStopMarker:/\*\*\/|(?<=^|\n(?!$))\p{space}*\}/dgv,name:"glsl",patterns:[{match:/\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\b/dgv,name:"keyword.control.glsl"},{match:/\b(void|bool|int|uint|float|vec2|vec3|vec4|bvec2|bvec3|bvec4|ivec2|ivec2|ivec3|uvec2|uvec2|uvec3|mat2|mat3|mat4|mat2x2|mat2x3|mat2x4|mat3x2|mat3x3|mat3x4|mat4x2|mat4x3|mat4x4|sampler[1\|2\|3]D|samplerCube|sampler2DRect|sampler[1\|2]DShadow|sampler2DRectShadow|sampler[1\|2]DArray|sampler[1\|2]DArrayShadow|samplerBuffer|sampler2DMS|sampler2DMSArray|struct|isampler[1\|2\|3]D|isamplerCube|isampler2DRect|isampler[1\|2]DArray|isamplerBuffer|isampler2DMS|isampler2DMSArray|usampler[1\|2\|3]D|usamplerCube|usampler2DRect|usampler[1\|2]DArray|usamplerBuffer|usampler2DMS|usampler2DMSArray)\b/dgv,name:"storage.type.glsl"},{match:/\b(attribute|centroid|const|flat|in|inout|invariant|noperspective|out|smooth|uniform|varying)\b/dgv,name:"storage.modifier.glsl"},{match:/\b(gl_BackColor|gl_BackLightModelProduct|gl_BackLightProduct|gl_BackMaterial|gl_BackSecondaryColor|gl_ClipDistance|gl_ClipPlane|gl_ClipVertex|gl_Color|gl_DepthRange|gl_DepthRangeParameters|gl_EyePlaneQ|gl_EyePlaneR|gl_EyePlaneS|gl_EyePlaneT|gl_Fog|gl_FogCoord|gl_FogFragCoord|gl_FogParameters|gl_FragColor|gl_FragCoord|gl_FragDat|gl_FragDept|gl_FrontColor|gl_FrontFacing|gl_FrontLightModelProduct|gl_FrontLightProduct|gl_FrontMaterial|gl_FrontSecondaryColor|gl_InstanceID|gl_Layer|gl_LightModel|gl_LightModelParameters|gl_LightModelProducts|gl_LightProducts|gl_LightSource|gl_LightSourceParameters|gl_MaterialParameters|gl_ModelViewMatrix|gl_ModelViewMatrixInverse|gl_ModelViewMatrixInverseTranspose|gl_ModelViewMatrixTranspose|gl_ModelViewProjectionMatrix|gl_ModelViewProjectionMatrixInverse|gl_ModelViewProjectionMatrixInverseTranspose|gl_ModelViewProjectionMatrixTranspose|gl_MultiTexCoord[0-7]|gl_Normal|gl_NormalMatrix|gl_NormalScale|gl_ObjectPlaneQ|gl_ObjectPlaneR|gl_ObjectPlaneS|gl_ObjectPlaneT|gl_Point|gl_PointCoord|gl_PointParameters|gl_PointSize|gl_Position|gl_PrimitiveIDIn|gl_ProjectionMatrix|gl_ProjectionMatrixInverse|gl_ProjectionMatrixInverseTranspose|gl_ProjectionMatrixTranspose|gl_SecondaryColor|gl_TexCoord|gl_TextureEnvColor|gl_TextureMatrix|gl_TextureMatrixInverse|gl_TextureMatrixInverseTranspose|gl_TextureMatrixTranspose|gl_Vertex|gl_VertexIDh)\b/dgv,name:"support.variable.glsl"},{match:/\b(gl_MaxClipPlanes|gl_MaxCombinedTextureImageUnits|gl_MaxDrawBuffers|gl_MaxFragmentUniformComponents|gl_MaxLights|gl_MaxTextureCoords|gl_MaxTextureImageUnits|gl_MaxTextureUnits|gl_MaxVaryingFloats|gl_MaxVertexAttribs|gl_MaxVertexTextureImageUnits|gl_MaxVertexUniformComponents)\b/dgv,name:"support.constant.glsl"},{match:/\b(abs|acos|all|any|asin|atan|ceil|clamp|cos|cross|degrees|dFdx|dFdy|distance|dot|equal|exp|exp2|faceforward|floor|fract|ftransform|fwidth|greaterThan|greaterThanEqual|inversesqrt|length|lessThan|lessThanEqual|log|log2|matrixCompMult|max|min|mix|mod|noise[1-4]|normalize|not|notEqual|outerProduct|pow|radians|reflect|refract|shadow1D|shadow1DLod|shadow1DProj|shadow1DProjLod|shadow2D|shadow2DLod|shadow2DProj|shadow2DProjLod|sign|sin|smoothstep|sqrt|step|tan|texture1D|texture1DLod|texture1DProj|texture1DProjLod|texture2D|texture2DLod|texture2DProj|texture2DProjLod|texture3D|texture3DLod|texture3DProj|texture3DProjLod|textureCube|textureCubeLod|transpose)\b/dgv,name:"support.function.glsl"},{match:/\b(asm|double|enum|extern|goto|inline|long|short|sizeof|static|typedef|union|unsigned|volatile)\b/dgv,name:"invalid.illegal.glsl"},{include:"source.c"}],scopeName:"source.glsl",embeddedLangs:["c"],aliases:undefined})
4
+
5
+ export default [
6
+ ...c,
7
+ lang
8
+ ]
@@ -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({displayName:"Gnuplot",fileTypes:["gp","plt","plot","gnuplot"],name:"gnuplot",patterns:[{match:/(\\(?!\n)[^\n]*)/dgv,name:"invalid.illegal.backslash.gnuplot"},{match:/(;)/dgv,name:"punctuation.separator.statement.gnuplot"},{include:"#LineComment"},{include:"#DataBlock"},{include:"#MacroExpansion"},{include:"#VariableDecl"},{include:"#ArrayDecl"},{include:"#FunctionDecl"},{include:"#ShellCommand"},{include:"#Command"}],repository:{ArrayDecl:{begin:/\b(array)\p{space}+([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)?/dgv,beginCaptures:{"1":{name:"support.type.array.gnuplot"},"2":{name:"entity.name.variable.gnuplot",patterns:[{include:"#InvalidVariableDecl"},{include:"#BuiltinVariable"}]}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,name:"meta.variable.gnuplot",patterns:[{include:"#Expression"}]},BuiltinFunction:{patterns:[{match:/\bdefined\b/dgv,name:"invalid.deprecated.function.gnuplot"},{match:/\b(?:abs|acos|acosh|airy|arg|asin|asinh|atan|atan2|atanh|EllipticK|EllipticE|EllipticPi|besj0|besj1|besy0|besy1|ceil|cos|cosh|erf|erfc|exp|expint|floor|gamma|ibeta|inverf|igamma|imag|invnorm|int|lambertw|lgamma|log|log10|norm|rand|real|sgn|sin|sinh|sqrt|tan|tanh|voigt|cerf|cdawson|faddeeva|erfi|VP)\b/dgv,name:"support.function.math.gnuplot"},{match:/\b(?:gprintf|sprintf|strlen|strstrt|substr|strftime|strptime|system|word|words)\b/dgv,name:"support.function.string.gnuplot"},{match:/\b(?:column|columnhead|exists|hsv2rgb|stringcolumn|timecolumn|tm_hour|tm_mday|tm_min|tm_mon|tm_sec|tm_wday|tm_yday|tm_year|time|valid|value)\b/dgv,name:"support.function.other.gnuplot"}]},BuiltinOperator:{patterns:[{match:/(&&|\|\|)/dgv,name:"keyword.operator.logical.gnuplot"},{match:/(<<|>>|&|\||\^)/dgv,name:"keyword.operator.bitwise.gnuplot"},{match:/(==|!=|<=|<|>=|>)/dgv,name:"keyword.operator.comparison.gnuplot"},{match:/(=)/dgv,name:"keyword.operator.assignment.gnuplot"},{match:/(\+|-|~|!)/dgv,name:"keyword.operator.arithmetic.gnuplot"},{match:/(\*\*|\+|-|\*|\/|%)/dgv,name:"keyword.operator.arithmetic.gnuplot"},{captures:{"2":{name:"keyword.operator.word.gnuplot"}},match:/(\.|\b(eq|ne)\b)/dgv,name:"keyword.operator.strings.gnuplot"}]},BuiltinVariable:{patterns:[{match:/\b(?:FIT_LIMIT|FIT_MAXITER|FIT_START_LAMBDA|FIT_LAMBDA_FACTOR|FIT_SKIP|FIT_INDEX)\b/dgv,name:"invalid.deprecated.variable.gnuplot"},{match:/\b(GPVAL_[\p{L}\p{M}\p{N}\p{Pc}]*|MOUSE_[\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"support.constant.gnuplot"},{match:/\b(ARG[0-9C]|GPFUN_[\p{L}\p{M}\p{N}\p{Pc}]*|FIT_[\p{L}\p{M}\p{N}\p{Pc}]*|STATS_[\p{L}\p{M}\p{N}\p{Pc}]*|pi|NaN)\b/dgv,name:"support.variable.gnuplot"}]},ColumnIndexLiteral:{match:/([\$]\p{Nd}+)\b/dgv,name:"support.constant.columnindex.gnuplot"},Command:{patterns:[{begin:/\bupdate\b/dgv,end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,name:"invalid.deprecated.command.gnuplot"},{begin:/\b(?:break|clear|continue|pwd|refresh|replot|reread|shell)\b/dgv,beginCaptures:{"0":{name:"keyword.other.command.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#InvalidWord"}]},{begin:/\b(?:cd|call|eval|exit|help|history|load|lower|pause|print|printerr|quit|raise|save|stats|system|test|toggle)\b/dgv,beginCaptures:{"0":{name:"keyword.other.command.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#Expression"}]},{begin:/\b(import)\p{space}([^\n]+)\p{space}(from)/dgv,beginCaptures:{"1":{name:"keyword.control.import.gnuplot"},"2":{patterns:[{include:"#FunctionDecl"}]},"3":{name:"keyword.control.import.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#SingleQuotedStringLiteral"},{include:"#DoubleQuotedStringLiteral"},{include:"#InvalidWord"}]},{begin:/\b(reset)\b/dgv,beginCaptures:{"1":{name:"keyword.other.command.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{match:/\b(bind|error(state)?|session)\b/dgv,name:"support.class.reset.gnuplot"},{include:"#InvalidWord"}]},{begin:/\b(undefine)\b/dgv,beginCaptures:{"1":{name:"keyword.other.command.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#BuiltinVariable"},{include:"#BuiltinFunction"},{match:/(?<=\p{space})([\$]?[A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*\*?)(?=\p{space})/dgv,name:"source.gnuplot"},{include:"#InvalidWord"}]},{begin:/\b(if|while)\b/dgv,beginCaptures:{"1":{name:"keyword.control.conditional.gnuplot"}},end:/(?=(\{|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#Expression"}]},{begin:/\b(else)\b/dgv,beginCaptures:{"1":{name:"keyword.control.conditional.gnuplot"}},end:/(?=(\{|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv},{begin:/\b(do)\b/dgv,beginCaptures:{"1":{name:"keyword.control.flow.gnuplot"}},end:/(?=(\{|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#ForIterationExpr"}]},{begin:/\b(set)(?=\p{space}+pm3d)\b/dgv,beginCaptures:{"1":{name:"keyword.other.command.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{match:/\b(hidden3d|map|transparent|solid)\b/dgv,name:"invalid.deprecated.options.gnuplot"},{include:"#SetUnsetOptions"},{include:"#ForIterationExpr"},{include:"#Expression"}]},{begin:/\b((un)?set)\b/dgv,beginCaptures:{"1":{name:"keyword.other.command.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#SetUnsetOptions"},{include:"#ForIterationExpr"},{include:"#Expression"}]},{begin:/\b(show)\b/dgv,beginCaptures:{"1":{name:"keyword.other.command.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#ExtraShowOptions"},{include:"#SetUnsetOptions"},{include:"#Expression"}]},{begin:/\b(fit|(s)?plot)\b/dgv,beginCaptures:{"1":{name:"keyword.other.command.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#ColumnIndexLiteral"},{include:"#PlotModifiers"},{include:"#ForIterationExpr"},{include:"#Expression"}]}]},DataBlock:{begin:/([\$][A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(<<)\p{space}*([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=(#|(?=$|\n)))/dgv,beginCaptures:{"1":{patterns:[{include:"#SpecialVariable"}]},"3":{name:"constant.language.datablock.gnuplot"}},end:/(?<=^|\n(?!$))(\3)\b([^\n]*)()/dgv,endCaptures:{"1":{name:"constant.language.datablock.gnuplot"},"2":{name:"invalid.illegal.datablock.gnuplot"}},name:"meta.datablock.gnuplot",patterns:[{include:"#LineComment"},{include:"#NumberLiteral"},{include:"#DoubleQuotedStringLiteral"}]},DeprecatedScriptArgsLiteral:{match:/([\$][0-9\#])/dgv,name:"invalid.illegal.scriptargs.gnuplot"},DoubleQuotedStringLiteral:{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.gnuplot"}},end:/((")|(?=(?<!\\)\n(?=$|\n)))/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.gnuplot"}},name:"string.quoted.double.gnuplot",patterns:[{include:"#EscapedChar"},{include:"#RGBColorSpec"},{include:"#DeprecatedScriptArgsLiteral"},{include:"#InterpolatedStringLiteral"}]},EscapedChar:{match:/(\\[^\n])/dgv,name:"constant.character.escape.gnuplot"},Expression:{patterns:[{include:"#Literal"},{include:"#SpecialVariable"},{include:"#BuiltinVariable"},{include:"#BuiltinOperator"},{include:"#TernaryExpr"},{include:"#FunctionCallExpr"},{include:"#SummationExpr"}]},ExtraShowOptions:{match:/\b(?:all|bind|colornames|functions|plot|variables|version)\b/dgv,name:"support.class.options.gnuplot"},ForIterationExpr:{begin:/\b(for)\p{space}*(\[)\p{space}*(?:([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+(in)\b)?/dgv,beginCaptures:{"1":{name:"keyword.control.flow.gnuplot"},"2":{patterns:[{include:"#RangeSeparators"}]},"3":{name:"variable.other.iterator.gnuplot"},"4":{name:"keyword.control.flow.gnuplot"}},end:/((\])|(?=(#|\\(?!\n)|(?<!\\)\n(?=$|\n))))/dgv,endCaptures:{"2":{patterns:[{include:"#RangeSeparators"}]}},patterns:[{include:"#Expression"},{include:"#RangeSeparators"}]},FunctionCallExpr:{begin:/\b([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"variable.function.gnuplot",patterns:[{include:"#BuiltinFunction"}]},"2":{name:"punctuation.definition.arguments.begin.gnuplot"}},end:/((\))|(?=(#|\\(?!\n)|(?<!\\)\n(?=$|\n))))/dgv,endCaptures:{"2":{name:"punctuation.definition.arguments.end.gnuplot"}},name:"meta.function-call.gnuplot",patterns:[{include:"#Expression"}]},FunctionDecl:{begin:/\b([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*((\()\p{space}*([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?:(,)\p{space}*([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*)*(\)))/dgv,beginCaptures:{"1":{name:"entity.name.function.gnuplot",patterns:[{include:"#BuiltinFunction"}]},"2":{name:"meta.function.parameters.gnuplot"},"3":{name:"punctuation.definition.parameters.begin.gnuplot"},"4":{name:"variable.parameter.function.language.gnuplot"},"5":{name:"punctuation.separator.parameters.gnuplot"},"6":{name:"variable.parameter.function.language.gnuplot"},"7":{name:"punctuation.definition.parameters.end.gnuplot"}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,name:"meta.function.gnuplot",patterns:[{include:"#Expression"}]},InterpolatedStringLiteral:{begin:/(`)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.gnuplot"}},end:/((`)|(?=(?<!\\)\n(?=$|\n)))/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.gnuplot"}},name:"string.interpolated.gnuplot",patterns:[{include:"#EscapedChar"}]},InvalidVariableDecl:{match:/\b(GPVAL_[\p{L}\p{M}\p{N}\p{Pc}]*|MOUSE_[\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"invalid.illegal.variable.gnuplot"},InvalidWord:{match:/([^\;\#\\\p{space}]+)/dgv,name:"invalid.illegal.gnuplot"},LineComment:{begin:/(#)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.begin.gnuplot"}},end:/(?=(?<!\\)\n(?=$|\n))/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.gnuplot"}},name:"comment.line.number-sign.gnuplot"},Literal:{patterns:[{include:"#NumberLiteral"},{include:"#DeprecatedScriptArgsLiteral"},{include:"#SingleQuotedStringLiteral"},{include:"#DoubleQuotedStringLiteral"},{include:"#InterpolatedStringLiteral"}]},MacroExpansion:{begin:/([\@][A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,beginCaptures:{"1":{patterns:[{include:"#SpecialVariable"}]}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{include:"#Expression"}]},NumberLiteral:{patterns:[{match:/(((\b\p{Nd}+)|(?<!\p{Nd})))([\.]\p{Nd}+)([Ee][\+\-]?\p{Nd}+)?(cm|in)?\b/dgv,name:"constant.numeric.float.gnuplot"},{match:/(\b\p{Nd}+)((([Ee][\+\-]?\p{Nd}+\b))|([\.]([Ee][\+\-]?\p{Nd}+\b)?))(cm\b|in\b)?/dgv,name:"constant.numeric.float.gnuplot"},{match:/\b(0[Xx][0-9a-fA-F]+)(cm|in)?\b/dgv,name:"constant.numeric.hex.gnuplot"},{match:/\b(0+)(cm|in)?\b/dgv,name:"constant.numeric.dec.gnuplot"},{match:/\b(0[0-7]+)(cm|in)?\b/dgv,name:"constant.numeric.oct.gnuplot"},{match:/\b(0\p{Nd}+)(cm|in)?\b/dgv,name:"invalid.illegal.oct.gnuplot"},{match:/\b(\p{Nd}+)(cm|in)?\b/dgv,name:"constant.numeric.dec.gnuplot"}]},PlotModifiers:{patterns:[{match:/\b(thru)\b/dgv,name:"invalid.deprecated.plot.gnuplot"},{match:/\b(?:in(dex)?|every|us(ing)?|wi(th)?|via)\b/dgv,name:"storage.type.plot.gnuplot"},{match:/\b(newhist(ogram)?)\b/dgv,name:"storage.type.plot.gnuplot"}]},RGBColorSpec:{match:/(0x|#)(([0-9a-fA-F]{6})|([0-9a-fA-F]{8}))\b/dgvy,name:"constant.other.placeholder.gnuplot"},RangeSeparators:{patterns:[{match:/(\[)/dgv,name:"punctuation.section.brackets.begin.gnuplot"},{match:/(:)/dgv,name:"punctuation.separator.range.gnuplot"},{match:/(\])/dgv,name:"punctuation.section.brackets.end.gnuplot"}]},SetUnsetOptions:{patterns:[{match:/\p{space}*\b(?:clabel|data|function|historysize|macros|ticslevel|ticscale|(style\p{space}+increment\p{space}+[\p{L}\p{M}\p{N}\p{Pc}]+))\b/dgvy,name:"invalid.deprecated.options.gnuplot"},{match:/\p{space}*\b(?:angles|arrow|autoscale|border|boxwidth|clip|cntr(label|param)|color(box|sequence)?|contour|(dash|line)type|datafile|decimal(sign)?|dgrid3d|dummy|encoding|(error)?bars|fit|fontpath|format|grid|hidden3d|history|(iso)?samples|jitter|key|label|link|loadpath|locale|logscale|mapping|[lrtb]margin|margins|micro|minus(sign)?|mono(chrome)?|mouse|multiplot|nonlinear|object|offsets|origin|output|parametric|(p|r)axis|pm3d|palette|pointintervalbox|pointsize|polar|print|psdir|size|style|surface|table|terminal|termoption|theta|tics|timestamp|timefmt|title|view|xyplane|zero|(no)?(m)?(x|x2|y|y2|z|cb|r|t)tics|(x|x2|y|y2|z|cb)data|(x|x2|y|y2|z|cb|r)label|(x|x2|y|y2|z|cb)dtics|(x|x2|y|y2|z|cb)mtics|(x|x2|y|y2|z|cb|[rtuv])range|(x|x2|y|y2|z)?zeroaxis)\b/dgvy,name:"support.class.options.gnuplot"}]},ShellCommand:{begin:/(!)/dgv,beginCaptures:{"1":{name:"keyword.other.shell.gnuplot"}},end:/(?=(#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,patterns:[{match:/([^\#]|\\(?=\n))/dgv,name:"string.unquoted"}]},SingleQuotedStringLiteral:{begin:/(')/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.gnuplot"}},end:/((')(?!')|(?=(?<!\\)\n(?=$|\n)))/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.gnuplot"}},name:"string.quoted.single.gnuplot",patterns:[{include:"#RGBColorSpec"},{match:/('')/dgv,name:"constant.character.escape.gnuplot"}]},SpecialVariable:{patterns:[{captures:{"1":{name:"constant.language.wildcard.gnuplot"}},match:/(?<=[\[\:\=])\p{space}*(\*)\p{space}*(?=[\:\]])/dgv},{captures:{"2":{name:"punctuation.definition.variable.gnuplot"}},match:/(([\@\$])[A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"constant.language.special.gnuplot"}]},SummationExpr:{begin:/\b(sum)\p{space}*(\[)/dgv,beginCaptures:{"1":{name:"keyword.other.sum.gnuplot"},"2":{patterns:[{include:"#RangeSeparators"}]}},end:/((\])|(?=(#|\\(?!\n)|(?<!\\)\n(?=$|\n))))/dgv,endCaptures:{"2":{patterns:[{include:"#RangeSeparators"}]}},patterns:[{include:"#Expression"},{include:"#RangeSeparators"}]},TernaryExpr:{begin:/(?<!\?)(\?)(?!\?)/dgv,beginCaptures:{"1":{name:"keyword.operator.ternary.gnuplot"}},end:/((?<!:)(:)(?!:)|(?=(#|\\(?!\n)|(?<!\\)\n(?=$|\n))))/dgv,endCaptures:{"2":{name:"keyword.operator.ternary.gnuplot"}},patterns:[{include:"#Expression"}]},VariableDecl:{begin:/\b([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?:(\[)\p{space}*([^\n]*)\p{space}*(\])\p{space}*)?(?=(=)(?!\p{space}*=))/dgv,beginCaptures:{"1":{name:"entity.name.variable.gnuplot",patterns:[{include:"#InvalidVariableDecl"},{include:"#BuiltinVariable"}]},"3":{patterns:[{include:"#Expression"}]}},end:/(?=(;|#|\\(?!\n)|(?<!\\)\n(?=$|\n)))/dgv,name:"meta.variable.gnuplot",patterns:[{include:"#Expression"}]}},scopeName:"source.gnuplot",embeddedLangs:undefined,aliases:undefined})
2
+
3
+ export default [
4
+ lang
5
+ ]
package/dist/go.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/go.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { EmulatedRegExp } from 'oniguruma-to-es'
2
+
3
+ const lang = Object.freeze({displayName:"Go",name:"go",patterns:[{include:"#statements"}],repository:{after_control_variables:{captures:{"1":{patterns:[{include:"#type-declarations-without-brackets"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.go"}]}},comment:"After control variables, to not highlight as a struct/interface (before formatting with gofmt)",match:/(?<=\brange\b|\bswitch\b|;|\bif\b|\bfor\b|<|>|<=|>=|==|!=|[\p{L}\p{M}\p{N}\p{Pc}](?:\+|\/|-|\*|%)|[\p{L}\p{M}\p{N}\p{Pc}](?:\+|\/|-|\*|%)=|\|\||&&)\p{space}*((?![\[\]]+)[0-9A-Za-z\-_\!\.\[\]\<\>\=\*\/\+\%\:]+)\p{space}*(?=\{)/dgv},brackets:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"$self"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"$self"}]},{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.square.go"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"$self"}]}]},built_in_functions:{comment:"Built-in functions",patterns:[{match:/\b(append|cap|close|complex|copy|delete|imag|len|panic|print|println|real|recover|min|max|clear)\b(?=\()/dgv,name:"entity.name.function.support.builtin.go"},{begin:/(\bnew\b)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.support.builtin.go"},"2":{name:"punctuation.definition.begin.bracket.round.go"}},comment:"new keyword",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#functions"},{include:"#struct_variables_types"},{include:"#type-declarations"},{include:"#generic_types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"},{include:"$self"}]},{begin:/(\bmake\b)(\()((?:(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+(?:\([^\)]+\))?)?(?:[\[\]\*]+)?(?:(?!\bmap\b)[\p{L}\p{M}\p{N}\p{Pc}\.]+)?(\[(?:[\P{space}]+(?:,\p{space}*[\P{space}]+)*)?\])?(?:,)?)?/dgv,beginCaptures:{"1":{name:"entity.name.function.support.builtin.go"},"2":{name:"punctuation.definition.begin.bracket.round.go"},"3":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"make keyword",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"$self"}]}]},comments:{patterns:[{begin:/(\/\*)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(\*\/)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.go"}},name:"comment.block.go"},{begin:/(\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(?:\n|(?=$|\n))/dgv,name:"comment.line.double-slash.go"}]},const_assignment:{comment:"constant assignment with const keyword",patterns:[{captures:{"1":{patterns:[{include:"#delimiters"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.constant.go"}]},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:/\(/dgv,name:"punctuation.definition.begin.bracket.round.go"},{match:/\)/dgv,name:"punctuation.definition.end.bracket.round.go"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"single assignment",match:/(?<=\bconst\b)\p{space}*(\b[\p{L}\p{M}\p{N}\p{Pc}\.]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.]+)*)\p{space}*((?:(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+(?:\([^\)]+\))?)?(?!(?:[\[\]\*]+)?\b(?:struct|func|map)\b)(?:[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+)*)?\p{space}*(?:=)?)?/dgv},{begin:/(?<=\bconst\b)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.round.go"}},comment:"multi assignment",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{captures:{"1":{patterns:[{include:"#delimiters"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.constant.go"}]},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:/\(/dgv,name:"punctuation.definition.begin.bracket.round.go"},{match:/\)/dgv,name:"punctuation.definition.end.bracket.round.go"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},match:/(?<=^|\n(?!$))\p{space}*(\b[\p{L}\p{M}\p{N}\p{Pc}\.]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.]+)*)\p{space}*((?:(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+(?:\([^\)]+\))?)?(?!(?:[\[\]\*]+)?\b(?:struct|func|map)\b)(?:[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+)*)?\p{space}*(?:=)?)?/dgv},{include:"$self"}]}]},delimiters:{patterns:[{match:/,/dgv,name:"punctuation.other.comma.go"},{match:/\.(?!\.\.)/dgv,name:"punctuation.other.period.go"},{match:/:(?!=)/dgv,name:"punctuation.other.colon.go"}]},double_parentheses_types:{captures:{"1":{patterns:[{include:"#type-declarations-without-brackets"},{match:/\(/dgv,name:"punctuation.definition.begin.bracket.round.go"},{match:/\)/dgv,name:"punctuation.definition.end.bracket.round.go"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"double parentheses types",match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(\([\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*\&]+\))(?=\()/dgv},field_hover:{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.property.go"}]},"2":{patterns:[{match:/\binvalid\b\p{space}+\btype\b/dgv,name:"invalid.field.go"},{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"struct field property and types when hovering with the mouse",match:/(?<=(?<=^|\n(?!$))\bfield\b)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\*\.]+)\p{space}+([\p{space}\P{space}]+)/dgv},function_declaration:{begin:/(?<=^|\n(?!$))(\bfunc\b)\p{space}*(\([^\)]+\)\p{space}*)?(?:([\p{L}\p{M}\p{N}\p{Pc}]+)(?=\(|\[))?/dgv,beginCaptures:{"1":{name:"keyword.function.go"},"2":{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{captures:{"1":{name:"variable.parameter.go"},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+)?([\p{L}\p{M}\p{N}\p{Pc}\.\*]+(?:\[(?:(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*]+(?:,\p{space}+)?)+)?\])?)/dgv},{include:"$self"}]}]},"3":{patterns:[{match:/\p{Nd}[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"invalid.illegal.identifier.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.go"}]}},comment:"Function declarations",end:/(?<=\))\p{space}*((?:(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?(?!(?:[\[\]\*]+)?(?:\bstruct\b|\binterface\b))[\p{L}\p{M}\p{N}\p{Pc}\.\-\*\[\]]+)?\p{space}*(?=\{)/dgv,endCaptures:{"1":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(\[)/dgv,beginCaptures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"2":{name:"punctuation.definition.begin.bracket.square.go"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{captures:{"1":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"single function as a type returned type(s) declaration",match:/(?<=\))\p{space}*((?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}\*\.\[\]\<\>\-]+\p{space}*(?:\/(?:\/|\*)[^\n]*)?)(?=$|\n)/dgv},{include:"$self"}]},function_param_types:{comment:"function parameter variables and types",patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.go"}]}},comment:"struct/interface type declaration",match:/((?:(?:\b[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+)?\b[\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(?=(?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?(?:[\[\]\*]+)?\b(?:struct|interface)\b\p{space}*\{)/dgv},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.go"}]}},comment:"multiple parameters one type -with multilines",match:/(?:(?<=\()|(?<=^|\n(?!$))\p{space}*)((?:\b[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+(?:\/(?:\/|\*)[^\n]*)?)(?=$|\n)/dgv},{captures:{"1":{patterns:[{include:"#delimiters"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.go"}]},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"multiple params and types | multiple params one type | one param one type",match:/((?:(?:\b[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+)?\b[\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+((?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?(?:(?:[\p{L}\p{M}\p{N}\p{Pc}\[\]\.\*]+)?(?:\bfunc\b\((?:[^\)]+)?\)(?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?\p{space}*)+(?:[\p{L}\p{M}\p{N}\p{Pc}\*\.\[\]]+|\((?:[^\)]+)?\))?|(?:(?:[\[\]\*]+)?[\p{L}\p{M}\p{N}\p{Pc}\*\.]+(?:\[[^\]]+\])?(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?)+))/dgv},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(\[)/dgv,beginCaptures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"2":{name:"punctuation.definition.begin.bracket.square.go"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"other types",match:/([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv},{include:"$self"}]},functions:{begin:/(\bfunc\b)(?=\()/dgv,beginCaptures:{"1":{name:"keyword.function.go"}},comment:"Functions",end:/(?<=\))(\p{space}*(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?(\p{space}*(?:(?:[\[\]\*]+)?[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(?:\[(?:(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(?:\[(?:[^\]]+)?\])?(?:,\p{space}+)?)+\]|\((?:[^\)]+)?\))?(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?\p{space}*(?=\{)|\p{space}*(?:(?:[\[\]\*]+)?(?!\bfunc\b)[\p{L}\p{M}\p{N}\p{Pc}\.\*]+(?:\[(?:(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(?:\[(?:[^\]]+)?\])?(?:,\p{space}+)?)+\])?(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?|\((?:[^\)]+)?\)))?/dgv,endCaptures:{"1":{patterns:[{include:"#type-declarations"}]},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},patterns:[{include:"#parameter-variable-types"}]},functions_inline:{captures:{"1":{name:"keyword.function.go"},"2":{patterns:[{include:"#type-declarations-without-brackets"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"},{include:"$self"}]},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/\{/dgv,name:"punctuation.definition.begin.bracket.curly.go"},{match:/\}/dgv,name:"punctuation.definition.end.bracket.curly.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"functions in-line with multi return types",match:/(\bfunc\b)(\([^\/]*?\)\p{space}+\([^\/]*?\))\p{space}+(?=\{)/dgv},generic_param_types:{comment:"generic parameter variables and types",patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.go"}]}},comment:"struct/interface type declaration",match:/((?:(?:\b[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+)?\b[\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(?=(?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?(?:[\[\]\*]+)?\b(?:struct|interface)\b\p{space}*\{)/dgv},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.go"}]}},comment:"multiple parameters one type -with multilines",match:/(?:(?<=\()|(?<=^|\n(?!$))\p{space}*)((?:\b[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+(?:\/(?:\/|\*)[^\n]*)?)(?=$|\n)/dgv},{captures:{"1":{patterns:[{include:"#delimiters"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.go"}]},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"3":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"multiple params and types | multiple types one param",match:/((?:(?:\b[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+)?\b[\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+((?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?(?:(?:[\p{L}\p{M}\p{N}\p{Pc}\[\]\.\*]+)?(?:\bfunc\b\((?:[^\)]+)?\)(?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?\p{space}*)+(?:[\p{L}\p{M}\p{N}\p{Pc}\*\.]+|\((?:[^\)]+)?\))?|(?:(?:[\p{L}\p{M}\p{N}\p{Pc}\*\.\~]+|\[(?:(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(?:\[(?:[^\]]+)?\])?(?:,\p{space}+)?)+\])(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?)+))/dgv},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(\[)/dgv,beginCaptures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"2":{name:"punctuation.definition.begin.bracket.square.go"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"other types",match:/\b([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv},{include:"$self"}]},generic_types:{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"2":{patterns:[{include:"#parameter-variable-types"}]}},comment:"Generic support for all types",match:/([\p{L}\p{M}\p{N}\p{Pc}\.\*]+)(\[(?:[^\]]+)?\])/dgv},"group-functions":{comment:"all statements related to functions",patterns:[{include:"#function_declaration"},{include:"#functions_inline"},{include:"#functions"},{include:"#built_in_functions"},{include:"#support_functions"}]},"group-types":{comment:"all statements related to types",patterns:[{include:"#other_struct_interface_expressions"},{include:"#type_assertion_inline"},{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#single_type"},{include:"#multi_types"},{include:"#struct_interface_declaration"},{include:"#double_parentheses_types"},{include:"#switch_types"},{include:"#type-declarations"}]},"group-variables":{comment:"all statements related to variables",patterns:[{include:"#const_assignment"},{include:"#var_assignment"},{include:"#variable_assignment"},{include:"#label_loop_variables"},{include:"#slice_index_variables"},{include:"#property_variables"},{include:"#switch_select_case_variables"},{include:"#other_variables"}]},import:{comment:"import",patterns:[{begin:/\b(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.import.go"}},comment:"import",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{include:"#imports"}]}]},imports:{comment:"import package(s)",patterns:[{captures:{"1":{patterns:[{include:"#delimiters"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.import.go"}]},"2":{name:"string.quoted.double.go"},"3":{name:"punctuation.definition.string.begin.go"},"4":{name:"entity.name.import.go"},"5":{name:"punctuation.definition.string.end.go"}},match:/(\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.]+)?\p{space}*((")([^"]*)("))/dgv},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.imports.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.imports.end.bracket.round.go"}},patterns:[{include:"#comments"},{include:"#imports"}]},{include:"$self"}]},interface_variables_types:{begin:/(\binterface\b)\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"keyword.interface.go"},"2":{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"interface variable types",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#interface_variables_types_field"},{include:"$self"}]},interface_variables_types_field:{comment:"interface variable type fields",patterns:[{include:"#support_functions"},{include:"#type-declarations-without-brackets"},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(\[)/dgv,beginCaptures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"2":{name:"punctuation.definition.begin.bracket.square.go"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"other types",match:/([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv}]},keywords:{patterns:[{comment:"Flow control keywords",match:/\b(break|case|continue|default|defer|else|fallthrough|for|go|goto|if|range|return|select|switch)\b/dgv,name:"keyword.control.go"},{match:/\bchan\b/dgv,name:"keyword.channel.go"},{match:/\bconst\b/dgv,name:"keyword.const.go"},{match:/\bvar\b/dgv,name:"keyword.var.go"},{match:/\bfunc\b/dgv,name:"keyword.function.go"},{match:/\binterface\b/dgv,name:"keyword.interface.go"},{match:/\bmap\b/dgv,name:"keyword.map.go"},{match:/\bstruct\b/dgv,name:"keyword.struct.go"},{match:/\bimport\b/dgv,name:"keyword.control.import.go"},{match:/\btype\b/dgv,name:"keyword.type.go"}]},label_loop_variables:{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.label.go"}]}},comment:"labeled loop variable name",match:/((?<=^|\n(?!$))\p{space}*[\p{L}\p{M}\p{N}\p{Pc}]+:\p{space}*(?=$|\n)|(?<=^|\n(?!$))\p{space}*(?:\bbreak\b|\bgoto\b|\bcontinue\b)\p{space}+[\p{L}\p{M}\p{N}\p{Pc}]+(?:\p{space}*\/(?:\/|\*)\p{space}*[^\n]*)?(?=$|\n))/dgv},language_constants:{captures:{"1":{name:"constant.language.boolean.go"},"2":{name:"constant.language.null.go"},"3":{name:"constant.language.iota.go"}},comment:"Language constants",match:/\b(?:(true|false)|(nil)|(iota))\b/dgv},map_types:{begin:/(\bmap\b)(\[)/dgv,beginCaptures:{"1":{name:"keyword.map.go"},"2":{name:"punctuation.definition.begin.bracket.square.go"}},comment:"map types",end:/(\])((?:(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?(?!(?:[\[\]\*]+)?\b(?:func|struct|map)\b)(?:[\*\[\]]+)?[\p{L}\p{M}\p{N}\p{Pc}\.]+(?:\[(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*\[\]\{\}]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.\*\[\]\{\}]+)*)?\])?)?/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.square.go"},"2":{patterns:[{include:"#type-declarations-without-brackets"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{include:"#functions"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/\{/dgv,name:"punctuation.definition.begin.bracket.curly.go"},{match:/\}/dgv,name:"punctuation.definition.end.bracket.curly.go"},{match:/\(/dgv,name:"punctuation.definition.begin.bracket.round.go"},{match:/\)/dgv,name:"punctuation.definition.end.bracket.round.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},multi_types:{begin:/(\btype\b)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.type.go"},"2":{name:"punctuation.definition.begin.bracket.round.go"}},comment:"multi type declaration",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},numeric_literals:{captures:{"0":{patterns:[{begin:/(?=[^\n])/dgv,end:/(?:\n|(?=$|\n))/dgv,patterns:[{captures:{"1":{name:"constant.numeric.decimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"2":{name:"punctuation.separator.constant.numeric.go"},"3":{name:"constant.numeric.decimal.point.go"},"4":{name:"constant.numeric.decimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"5":{name:"punctuation.separator.constant.numeric.go"},"6":{name:"keyword.other.unit.exponent.decimal.go"},"7":{name:"keyword.operator.plus.exponent.decimal.go"},"8":{name:"keyword.operator.minus.exponent.decimal.go"},"9":{name:"constant.numeric.exponent.decimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"10":{name:"keyword.other.unit.imaginary.go"},"11":{name:"constant.numeric.decimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"12":{name:"punctuation.separator.constant.numeric.go"},"13":{name:"keyword.other.unit.exponent.decimal.go"},"14":{name:"keyword.operator.plus.exponent.decimal.go"},"15":{name:"keyword.operator.minus.exponent.decimal.go"},"16":{name:"constant.numeric.exponent.decimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"17":{name:"keyword.other.unit.imaginary.go"},"18":{name:"constant.numeric.decimal.point.go"},"19":{name:"constant.numeric.decimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"20":{name:"punctuation.separator.constant.numeric.go"},"21":{name:"keyword.other.unit.exponent.decimal.go"},"22":{name:"keyword.operator.plus.exponent.decimal.go"},"23":{name:"keyword.operator.minus.exponent.decimal.go"},"24":{name:"constant.numeric.exponent.decimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"25":{name:"keyword.other.unit.imaginary.go"},"26":{name:"keyword.other.unit.hexadecimal.go"},"27":{name:"constant.numeric.hexadecimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"28":{name:"punctuation.separator.constant.numeric.go"},"29":{name:"constant.numeric.hexadecimal.go"},"30":{name:"constant.numeric.hexadecimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"31":{name:"punctuation.separator.constant.numeric.go"},"32":{name:"keyword.other.unit.exponent.hexadecimal.go"},"33":{name:"keyword.operator.plus.exponent.hexadecimal.go"},"34":{name:"keyword.operator.minus.exponent.hexadecimal.go"},"35":{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"36":{name:"keyword.other.unit.imaginary.go"},"37":{name:"keyword.other.unit.hexadecimal.go"},"38":{name:"constant.numeric.hexadecimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"39":{name:"punctuation.separator.constant.numeric.go"},"40":{name:"keyword.other.unit.exponent.hexadecimal.go"},"41":{name:"keyword.operator.plus.exponent.hexadecimal.go"},"42":{name:"keyword.operator.minus.exponent.hexadecimal.go"},"43":{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"44":{name:"keyword.other.unit.imaginary.go"},"45":{name:"keyword.other.unit.hexadecimal.go"},"46":{name:"constant.numeric.hexadecimal.go"},"47":{name:"constant.numeric.hexadecimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"48":{name:"punctuation.separator.constant.numeric.go"},"49":{name:"keyword.other.unit.exponent.hexadecimal.go"},"50":{name:"keyword.operator.plus.exponent.hexadecimal.go"},"51":{name:"keyword.operator.minus.exponent.hexadecimal.go"},"52":{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"53":{name:"keyword.other.unit.imaginary.go"}},match:/(?:(?:(?:(?:(?:(?=[0-9\.])(?!0[xXbBoO])(\p{Nd}(?:\p{Nd}|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=\p{Nd})\.|\.(?=\p{Nd})))(\p{Nd}(?:\p{Nd}|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?:(?<!_)([eE])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])_(?=[0-9a-fA-F]))*))?(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n))|(?=[0-9\.])(?!0[xXbBoO])(\p{Nd}(?:\p{Nd}|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([eE])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])_(?=[0-9a-fA-F]))*)(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n)))|((?:(?<=\p{Nd})\.|\.(?=\p{Nd})))(\p{Nd}(?:\p{Nd}|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?:(?<!_)([eE])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])_(?=[0-9a-fA-F]))*))?(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n)))|(0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9a-fA-F])\.|\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?<!_)([pP])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])_(?=[0-9a-fA-F]))*)(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n)))|(0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])_(?=[0-9a-fA-F]))*)(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n)))|(0[xX])((?:(?<=[0-9a-fA-F])\.|\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])_(?=[0-9a-fA-F]))*)(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n)))/dgvy},{captures:{"1":{name:"constant.numeric.decimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"2":{name:"punctuation.separator.constant.numeric.go"},"3":{name:"keyword.other.unit.imaginary.go"},"4":{name:"keyword.other.unit.binary.go"},"5":{name:"constant.numeric.binary.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"6":{name:"punctuation.separator.constant.numeric.go"},"7":{name:"keyword.other.unit.imaginary.go"},"8":{name:"keyword.other.unit.octal.go"},"9":{name:"constant.numeric.octal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"10":{name:"punctuation.separator.constant.numeric.go"},"11":{name:"keyword.other.unit.imaginary.go"},"12":{name:"keyword.other.unit.hexadecimal.go"},"13":{name:"constant.numeric.hexadecimal.go",patterns:[{match:/(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric.go"}]},"14":{name:"punctuation.separator.constant.numeric.go"},"15":{name:"keyword.other.unit.imaginary.go"}},match:/(?:(?:(?:(?=[0-9\.])(?!0[xXbBoO])(\p{Nd}(?:\p{Nd}|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n))|(0[bB])_?([01](?:[01]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n)))|(0[oO]?)_?((?:[0-7]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))+)(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n)))|(0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?:\n|(?=$|\n)))/dgvy},{match:/(?:[0-9a-zA-Z_\.]|(?<=[eEpP])[\+\-])+/dgv,name:"invalid.illegal.constant.numeric.go"}]}]}},match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\.?\p{Nd}(?:[0-9a-zA-Z_\.]|(?<=[eEpP])[\+\-])*/dgv},operators:{comment:"Note that the order here is very important!",patterns:[{match:/((?:\*|&)+)(?!\p{Nd})(?=[\p{L}\p{M}\p{N}\p{Pc}\[\]]|<-)/dgv,name:"keyword.operator.address.go"},{match:/<-/dgv,name:"keyword.operator.channel.go"},{match:/--/dgv,name:"keyword.operator.decrement.go"},{match:/\+\+/dgv,name:"keyword.operator.increment.go"},{match:/(==|!=|<=|>=|<(?!<)|>(?!>))/dgv,name:"keyword.operator.comparison.go"},{match:/(&&|\|\||!)/dgv,name:"keyword.operator.logical.go"},{match:/(=|\+=|-=|\|=|\^=|\*=|\/=|:=|%=|<<=|>>=|&\^=|&=)/dgv,name:"keyword.operator.assignment.go"},{match:/(\+|-|\*|\/|%)/dgv,name:"keyword.operator.arithmetic.go"},{match:/(&(?!\^)|\||\^|&\^|<<|>>|~)/dgv,name:"keyword.operator.arithmetic.bitwise.go"},{match:/\.\.\./dgv,name:"keyword.operator.ellipsis.go"}]},other_struct_interface_expressions:{comment:"struct and interface expression in-line (before curly bracket)",patterns:[{comment:"after control variables must be added exactly here, do not move it! (changing may not affect tests, so be careful!)",include:"#after_control_variables"},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"2":{patterns:[{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.square.go"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"},{include:"$self"}]}]}},match:/(\b[\p{L}\p{M}\p{N}\p{Pc}\.]+)(\[(?:[^\]]+)?\])?(?=\{)(?<!\bstruct\b|\binterface\b)/dgv}]},other_variables:{comment:"all other variables",match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.go"},package_name:{patterns:[{begin:/\b(package)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.package.go"}},comment:"package name",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{match:/\p{Nd}[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"invalid.illegal.identifier.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.package.go"}]}]},"parameter-variable-types":{comment:"function and generic parameter types",patterns:[{match:/\{/dgv,name:"punctuation.definition.begin.bracket.curly.go"},{match:/\}/dgv,name:"punctuation.definition.end.bracket.curly.go"},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\.\*]+)?(\[)/dgv,beginCaptures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"2":{name:"punctuation.definition.begin.bracket.square.go"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]}]},property_variables:{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.property.go"}]}},comment:"Property variables in struct",match:/(\b[\p{L}\p{M}\p{N}\p{Pc}\.]+:(?!=))/dgv},raw_string_literals:{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.go"}},comment:"Raw string literals",end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.go"}},name:"string.quoted.raw.go",patterns:[{include:"#string_placeholder"}]},runes:{patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.go"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.go"}},name:"string.quoted.rune.go",patterns:[{match:/(\\([0-7]{3}|[abfnrtv\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})|[^\n])(?=')/dgvy,name:"constant.other.rune.go"},{match:/[^']+/dgv,name:"invalid.illegal.unknown-rune.go"}]}]},single_type:{patterns:[{captures:{"1":{name:"keyword.type.go"},"2":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"3":{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.go"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"},{include:"$self"}]},{include:"#type-declarations"},{include:"#generic_types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"single type declaration",match:/(?<=^|\n(?!$))\p{space}*(\btype\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\.\*]+)\p{space}+(?!(?:=\p{space}*)?(?:[\[\]\*]+)?\b(?:struct|interface)\b)([\p{space}\P{space}]+)/dgv},{begin:/(?:(?<=^|\n(?!$))|\p{space}+)(\btype\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\.\*]+)(?=\[)/dgv,beginCaptures:{"1":{name:"keyword.type.go"},"2":{patterns:[{include:"#type-declarations-without-brackets"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"single type declaration with generics",end:/(?<=\])(\p{space}+(?:=\p{space}*)?(?:(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?(?!(?:[\[\]\*]+)?(?:\bstruct\b|\binterface\b|\bfunc\b))[\p{L}\p{M}\p{N}\p{Pc}\.\-\*\[\]]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+)*)?/dgv,endCaptures:{"1":{patterns:[{include:"#type-declarations-without-brackets"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},patterns:[{include:"#struct_variables_types"},{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/\{/dgv,name:"punctuation.definition.begin.bracket.curly.go"},{match:/\}/dgv,name:"punctuation.definition.end.bracket.curly.go"},{match:/\(/dgv,name:"punctuation.definition.begin.bracket.round.go"},{match:/\)/dgv,name:"punctuation.definition.end.bracket.round.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}]},slice_index_variables:{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.go"}]}},comment:"slice index and capacity variables, to not scope them as property variables",match:/(?<=[\p{L}\p{M}\p{N}\p{Pc}]\[)((?:\b[\p{L}\p{M}\p{N}\p{Pc}\.\*\+\/\-\%\<\>\|\&]+:|:\b[\p{L}\p{M}\p{N}\p{Pc}\.\*\+\/\-\%\<\>\|\&]+)(?:\b[\p{L}\p{M}\p{N}\p{Pc}\.\*\+\/\-\%\<\>\|\&]+)?(?::\b[\p{L}\p{M}\p{N}\p{Pc}\.\*\+\/\-\%\<\>\|\&]+)?)(?=\])/dgv},statements:{patterns:[{include:"#package_name"},{include:"#import"},{include:"#syntax_errors"},{include:"#group-functions"},{include:"#group-types"},{include:"#group-variables"},{include:"#field_hover"}]},storage_types:{patterns:[{match:/\bbool\b/dgv,name:"storage.type.boolean.go"},{match:/\bbyte\b/dgv,name:"storage.type.byte.go"},{match:/\berror\b/dgv,name:"storage.type.error.go"},{match:/\b(complex(64|128)|float(32|64)|u?int(8|16|32|64)?)\b/dgv,name:"storage.type.numeric.go"},{match:/\brune\b/dgv,name:"storage.type.rune.go"},{match:/\bstring\b/dgv,name:"storage.type.string.go"},{match:/\buintptr\b/dgv,name:"storage.type.uintptr.go"},{match:/\bany\b/dgv,name:"entity.name.type.any.go"}]},string_escaped_char:{patterns:[{match:/\\([0-7]{3}|[abfnrtv\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/dgv,name:"constant.character.escape.go"},{match:/\\[^0-7xuUabfnrtv'"]/dgv,name:"invalid.illegal.unknown-escape.go"}]},string_literals:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.go"}},comment:"Interpreted string literals",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.go"}},name:"string.quoted.double.go",patterns:[{include:"#string_escaped_char"},{include:"#string_placeholder"}]}]},string_placeholder:{patterns:[{match:/%(\[\p{Nd}+\])?([\+\#\-0 ]{0,2}((\p{Nd}+|\*)?(\.?(\p{Nd}+|\*|(\[\p{Nd}+\])\*?)?(\[\p{Nd}+\])?)?))?[vT\%tbcdoqxXUbeEfFgGspw]/dgv,name:"constant.other.placeholder.go"}]},struct_interface_declaration:{captures:{"1":{name:"keyword.type.go"},"2":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"struct, interface type declarations (related to: struct_variables_types, interface_variables_types)",match:/(?<=^|\n(?!$))\p{space}*(\btype\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv},struct_variable_types_fields_multi:{comment:"struct variable and type fields with multi lines",patterns:[{begin:/([\p{L}\p{M}\p{N}\p{Pc}]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}]+)*(?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?\p{space}+(?:[\[\]\*]+)?)(\bstruct\b)\p{space}*(\{)/dgv,beginCaptures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.property.go"}]},"2":{name:"keyword.struct.go"},"3":{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"struct in struct types",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#struct_variables_types_fields"},{include:"$self"}]},{begin:/([\p{L}\p{M}\p{N}\p{Pc}]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}]+)*(?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?\p{space}+(?:[\[\]\*]+)?)(\binterface\b)\p{space}*(\{)/dgv,beginCaptures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.property.go"}]},"2":{name:"keyword.interface.go"},"3":{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"interface in struct types",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#interface_variables_types_field"},{include:"$self"}]},{begin:/([\p{L}\p{M}\p{N}\p{Pc}]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}]+)*(?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?\p{space}+(?:[\[\]\*]+)?)(\bfunc\b)\p{space}*(\()/dgv,beginCaptures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.property.go"}]},"2":{name:"keyword.function.go"},"3":{name:"punctuation.definition.begin.bracket.round.go"}},comment:"function in struct types",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"},{include:"$self"}]},{include:"#parameter-variable-types"}]},struct_variables_types:{begin:/(\bstruct\b)\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"keyword.struct.go"},"2":{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"Struct variable type",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#struct_variables_types_fields"},{include:"$self"}]},struct_variables_types_fields:{comment:"Struct variable type fields",patterns:[{include:"#struct_variable_types_fields_multi"},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"one line - single type",match:/(?<=\{)\p{space}*((?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}\.\*\[\]]+)\p{space}*(?=\})/dgv},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.property.go"}]},"2":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"one line - property variables and types",match:/(?<=\{)\p{space}*((?:(?:[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+)((?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}\.\*\[\]]+)\p{space}*(?=\})/dgv},{captures:{"1":{patterns:[{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.property.go"}]},"2":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},match:/((?:(?:[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+)?((?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?[\P{space}]+(?:;)?)/dgv}]}},comment:"one line with semicolon(;) without formatting gofmt - single type | property variables and types",match:/(?<=\{)((?:\p{space}*(?:(?:(?:[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+)?(?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?[\P{space}]+(?:;)?)+)\p{space}*(?=\})/dgv},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"one type only",match:/((?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}\.\*]+\p{space}*)(?:(?=`|\/|")|(?=$|\n))/dgv},{captures:{"1":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.property.go"}]},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"property variables and types",match:/((?:(?:[\p{L}\p{M}\p{N}\p{Pc}]+,\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+)([^\`"\/]+)/dgv}]},support_functions:{captures:{"1":{name:"entity.name.function.support.go"},"2":{patterns:[{include:"#type-declarations"},{match:/\p{Nd}[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"invalid.illegal.identifier.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.support.go"}]},"3":{patterns:[{include:"#type-declarations-without-brackets"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/\{/dgv,name:"punctuation.definition.begin.bracket.curly.go"},{match:/\}/dgv,name:"punctuation.definition.end.bracket.curly.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"Support Functions",match:/(?:((?<=\.)\b[\p{L}\p{M}\p{N}\p{Pc}]+)|(\b[\p{L}\p{M}\p{N}\p{Pc}]+))(\[(?:[\p{L}\p{M}\p{N}\p{Pc}\.\*\[\]\{\}"']+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.\*\[\]\{\}]+)*)?\])?(?=\()/dgv},switch_select_case_variables:{captures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"#type-declarations"},{include:"#support_functions"},{include:"#variable_assignment"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.go"}]}},comment:"variables after case control keyword in switch/select expression, to not scope them as property variables",match:/(?<=^|\n(?!$))\p{space}*(\bcase\b)\p{space}+([\p{space}\P{space}]+:\p{space}*(?:\/(?:\/|\*)[^\n]*)?)(?=$|\n)/dgv},switch_types:{begin:/(?<=\bswitch\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+\p{space}*:=)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\.\*\(\)\[\]\+\/\-\%\<\>\|\&]+)(\.\(\btype\b\)\p{space}*)(\{)/dgv,beginCaptures:{"1":{patterns:[{include:"#operators"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.assignment.go"}]},"2":{patterns:[{include:"#support_functions"},{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.go"}]},"3":{patterns:[{include:"#delimiters"},{include:"#brackets"},{match:/\btype\b/dgv,name:"keyword.type.go"}]},"4":{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"switch type assertions, only highlights types after case keyword",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{captures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},"3":{name:"punctuation.other.colon.go"},"4":{patterns:[{include:"#comments"}]}},comment:"types after case keyword with single line",match:/(?<=^|\n(?!$))\p{space}*(\bcase\b)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\.\,\*\=\<\>\!\p{space}]+)(:)(\p{space}*\/(?:\/|\*)\p{space}*[^\n]*)?(?=$|\n)/dgv},{begin:/\bcase\b/dgv,beginCaptures:{"0":{name:"keyword.control.go"}},comment:"types after case keyword with multi lines",end:/:/dgv,endCaptures:{"0":{name:"punctuation.other.colon.go"}},patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]},{include:"$self"}]},syntax_errors:{patterns:[{captures:{"1":{name:"invalid.illegal.slice.go"}},comment:"Syntax error using slices",match:/\[\](\p{space}+)/dgv},{comment:"Syntax error numeric literals",match:/\b0[0-7]*[89]\p{Nd}*\b/dgv,name:"invalid.illegal.numeric.go"}]},terminators:{comment:"Terminators",match:/;/dgv,name:"punctuation.terminator.go"},"type-declarations":{comment:"includes all type declarations",patterns:[{include:"#language_constants"},{include:"#comments"},{include:"#map_types"},{include:"#brackets"},{include:"#delimiters"},{include:"#keywords"},{include:"#operators"},{include:"#runes"},{include:"#storage_types"},{include:"#raw_string_literals"},{include:"#string_literals"},{include:"#numeric_literals"},{include:"#terminators"}]},"type-declarations-without-brackets":{comment:"includes all type declarations without brackets (in some cases, brackets need to be captured manually)",patterns:[{include:"#language_constants"},{include:"#comments"},{include:"#map_types"},{include:"#delimiters"},{include:"#keywords"},{include:"#operators"},{include:"#runes"},{include:"#storage_types"},{include:"#raw_string_literals"},{include:"#string_literals"},{include:"#numeric_literals"},{include:"#terminators"}]},type_assertion_inline:{captures:{"1":{name:"keyword.type.go"},"2":{patterns:[{include:"#type-declarations"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"struct/interface types in-line (type assertion) | switch type keyword",match:/(?<=\.\()(?:(\btype\b)|((?:(?:\p{space}*(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+)?[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+))(?=\))/dgv},var_assignment:{comment:"variable assignment with var keyword",patterns:[{captures:{"1":{patterns:[{include:"#delimiters"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.assignment.go"}]},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:/\(/dgv,name:"punctuation.definition.begin.bracket.round.go"},{match:/\)/dgv,name:"punctuation.definition.end.bracket.round.go"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},comment:"single assignment",match:/(?<=\bvar\b)\p{space}*(\b[\p{L}\p{M}\p{N}\p{Pc}\.]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.]+)*)\p{space}*((?:(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+(?:\([^\)]+\))?)?(?!(?:[\[\]\*]+)?\b(?:struct|func|map)\b)(?:[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+)*)?\p{space}*(?:=)?)?/dgv},{begin:/(?<=\bvar\b)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.round.go"}},comment:"multi assignment",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{captures:{"1":{patterns:[{include:"#delimiters"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.assignment.go"}]},"2":{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:/\(/dgv,name:"punctuation.definition.begin.bracket.round.go"},{match:/\)/dgv,name:"punctuation.definition.end.bracket.round.go"},{match:/\[/dgv,name:"punctuation.definition.begin.bracket.square.go"},{match:/\]/dgv,name:"punctuation.definition.end.bracket.square.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.go"}]}},match:/(?<=^|\n(?!$))\p{space}*(\b[\p{L}\p{M}\p{N}\p{Pc}\.]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.]+)*)\p{space}*((?:(?:(?:[\*\[\]]+)?(?:<-\p{space}*)?\bchan\b(?:\p{space}*<-)?\p{space}*)+(?:\([^\)]+\))?)?(?!(?:[\[\]\*]+)?\b(?:struct|func|map)\b)(?:[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.\[\]\*]+)*)?\p{space}*(?:=)?)?/dgv},{include:"$self"}]}]},variable_assignment:{comment:"variable assignment",patterns:[{captures:{"0":{patterns:[{include:"#delimiters"},{match:/\p{Nd}[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"invalid.illegal.identifier.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.assignment.go"}]}},comment:"variable assignment with :=",match:/\b[\p{L}\p{M}\p{N}\p{Pc}]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}]+)*(?=\p{space}*:=)/dgv},{captures:{"0":{patterns:[{include:"#delimiters"},{include:"#operators"},{match:/\p{Nd}[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"invalid.illegal.identifier.go"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.assignment.go"}]}},comment:"variable assignment with =",match:/\b[\p{L}\p{M}\p{N}\p{Pc}\.\*]+(?:,\p{space}*[\p{L}\p{M}\p{N}\p{Pc}\.\*]+)*(?=\p{space}*=(?!=))/dgv}]}},scopeName:"source.go",embeddedLangs:undefined,aliases:undefined})
4
+
5
+ export default [
6
+ lang
7
+ ]
package/dist/gql.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/gql.mjs ADDED
@@ -0,0 +1,2 @@
1
+ /* Alias gql for graphql */
2
+ export { default } from './graphql.mjs'
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
@@ -0,0 +1,15 @@
1
+ import { EmulatedRegExp } from 'oniguruma-to-es'
2
+ import javascript from './javascript.mjs'
3
+ import typescript from './typescript.mjs'
4
+ import jsx from './jsx.mjs'
5
+ import tsx from './tsx.mjs'
6
+
7
+ const lang = Object.freeze({displayName:"GraphQL",fileTypes:["graphql","graphqls","gql","graphcool"],name:"graphql",patterns:[{include:"#graphql"}],repository:{graphql:{patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-fragment-definition"},{include:"#graphql-directive-definition"},{include:"#graphql-type-interface"},{include:"#graphql-enum"},{include:"#graphql-scalar"},{include:"#graphql-union"},{include:"#graphql-schema"},{include:"#graphql-operation-def"},{include:"#literal-quasi-embedded"}]},"graphql-ampersand":{captures:{"1":{name:"keyword.operator.logical.graphql"}},match:/\p{space}*(&)/dgv},"graphql-arguments":{begin:/\p{space}*(\()/dgv,beginCaptures:{"1":{name:"meta.brace.round.directive.graphql"}},end:/\p{space}*(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.directive.graphql"}},name:"meta.arguments.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"variable.parameter.graphql"},"2":{name:"punctuation.colon.graphql"}},end:/(?=\p{space}*(?:([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)|\)))|\p{space}*(,)/dgv,endCaptures:{"3":{name:"punctuation.comma.graphql"}},patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-value"},{include:"#graphql-skip-newlines"}]},{include:"#literal-quasi-embedded"}]},"graphql-boolean-value":{captures:{"1":{name:"constant.language.boolean.graphql"}},match:/\p{space}*\b(true|false)\b/dgv},"graphql-colon":{captures:{"1":{name:"punctuation.colon.graphql"}},match:/\p{space}*(:)/dgv},"graphql-comma":{captures:{"1":{name:"punctuation.comma.graphql"}},match:/\p{space}*(,)/dgv},"graphql-comment":{patterns:[{captures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},comment:"need to prefix comment space with a scope else Atom's reflow cmd doesn't work",match:/(\p{space}*)(#)[^\n]*/dgv,name:"comment.line.graphql.js"},{begin:/(""")/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},end:/(""")/dgv,name:"comment.line.graphql.js"},{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},end:/(")/dgv,name:"comment.line.graphql.js"}]},"graphql-description-docstring":{begin:/"""/dgv,end:/"""/dgv,name:"comment.block.graphql"},"graphql-description-singleline":{match:/#(?=([^"]*"[^"]*")*[^"]*(?=$|\n))[^\n]*(?=$|\n)/dgv,name:"comment.line.number-sign.graphql"},"graphql-directive":{applyEndPatternLast:1,begin:/\p{space}*((@)\p{space}*([_A-Za-z][_0-9A-Za-z]*))/dgv,beginCaptures:{"1":{name:"entity.name.function.directive.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-arguments"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-directive-definition":{applyEndPatternLast:1,begin:/\p{space}*(\bdirective\b)\p{space}*(@[_A-Za-z][_0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.directive.graphql"},"2":{name:"entity.name.function.directive.graphql"},"3":{name:"keyword.on.graphql"},"4":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-variable-definitions"},{applyEndPatternLast:1,begin:/\p{space}*(\bon\b)\p{space}*([_A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.on.graphql"},"2":{name:"support.type.location.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-skip-newlines"},{include:"#graphql-comment"},{include:"#literal-quasi-embedded"},{captures:{"2":{name:"support.type.location.graphql"}},match:/\p{space}*(\|)\p{space}*([_A-Za-z]*)/dgv}]},{include:"#graphql-skip-newlines"},{include:"#graphql-comment"},{include:"#literal-quasi-embedded"}]},"graphql-enum":{begin:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)\\b(enum)\\b\\p{space}*([_A-Za-z][_0-9A-Za-z]*)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.enum.graphql"},"2":{name:"support.type.enum.graphql"}},end:/(?<=\})/dgv,name:"meta.enum.graphql",patterns:[{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.type.object.graphql",patterns:[{include:"#graphql-object-type"},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-enum-value"},{include:"#literal-quasi-embedded"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"}]},"graphql-enum-value":{match:/\p{space}*(?!=\b(true|false|null)\b)([_A-Za-z][_0-9A-Za-z]*)/dgv,name:"constant.character.enum.graphql"},"graphql-field":{patterns:[{captures:{"1":{name:"string.unquoted.alias.graphql"},"2":{name:"punctuation.colon.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)/dgv},{captures:{"1":{name:"variable.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-arguments"},{include:"#graphql-directive"},{include:"#graphql-selection-set"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-float-value":{captures:{"1":{name:"constant.numeric.float.graphql"}},match:/\p{space}*(-?(0|[1-9]\p{Nd}*)(\.\p{Nd}+)?((e|E)(\+|-)?\p{Nd}+)?)/dgv},"graphql-fragment-definition":{begin:/\p{space}*(\bfragment\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*)?\p{space}*(\bon\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.fragment.graphql"},"2":{name:"entity.name.fragment.graphql"},"3":{name:"keyword.on.graphql"},"4":{name:"support.type.graphql"}},end:/(?<=\})/dgv,name:"meta.fragment.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-fragment-spread":{applyEndPatternLast:1,begin:/\p{space}*(\.\.\.)\p{space}*(?!\bon\b)([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.operator.spread.graphql"},"2":{name:"variable.fragment.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-ignore-spaces":{match:/\p{space}*/dgv},"graphql-inline-fragment":{applyEndPatternLast:1,begin:/\p{space}*(\.\.\.)\p{space}*(?:(\bon\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*))?/dgv,captures:{"1":{name:"keyword.operator.spread.graphql"},"2":{name:"keyword.on.graphql"},"3":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-input-types":{patterns:[{include:"#graphql-scalar-type"},{captures:{"1":{name:"support.type.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?:\p{space}*(!))?/dgv},{begin:/\p{space}*(\[)/dgv,captures:{"1":{name:"meta.brace.square.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},end:/\p{space}*(\])(?:\p{space}*(!))?/dgv,name:"meta.type.list.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-input-types"},{include:"#graphql-comma"},{include:"#literal-quasi-embedded"}]}]},"graphql-list-value":{patterns:[{begin:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)(\\[)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"meta.brace.square.graphql"}},end:/\p{space}*(\])/dgv,endCaptures:{"1":{name:"meta.brace.square.graphql"}},name:"meta.listvalues.graphql",patterns:[{include:"#graphql-value"}]}]},"graphql-name":{captures:{"1":{name:"entity.name.function.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},"graphql-null-value":{captures:{"1":{name:"constant.language.null.graphql"}},match:/\p{space}*\b(null)\b/dgv},"graphql-object-field":{captures:{"1":{name:"constant.object.key.graphql"},"2":{name:"string.unquoted.graphql"},"3":{name:"punctuation.graphql"}},match:/\p{space}*(([_A-Za-z][_0-9A-Za-z]*))\p{space}*(:)/dgv},"graphql-object-value":{patterns:[{begin:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)(\\{)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"meta.brace.curly.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"meta.brace.curly.graphql"}},name:"meta.objectvalues.graphql",patterns:[{include:"#graphql-object-field"},{include:"#graphql-value"}]}]},"graphql-operation-def":{patterns:[{include:"#graphql-query-mutation"},{include:"#graphql-name"},{include:"#graphql-variable-definitions"},{include:"#graphql-directive"},{include:"#graphql-selection-set"}]},"graphql-query-mutation":{captures:{"1":{name:"keyword.operation.graphql"}},match:/\p{space}*\b(query|mutation)\b/dgv},"graphql-scalar":{captures:{"1":{name:"keyword.scalar.graphql"},"2":{name:"entity.scalar.graphql"}},match:/\p{space}*\b(scalar)\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},"graphql-scalar-type":{captures:{"1":{name:"support.type.builtin.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},match:/\p{space}*\b(Int|Float|String|Boolean|ID)\b(?:\p{space}*(!))?/dgv},"graphql-schema":{begin:/\p{space}*\b(schema)\b/dgv,beginCaptures:{"1":{name:"keyword.schema.graphql"}},end:/(?<=\})/dgv,patterns:[{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},patterns:[{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.arguments.graphql"}},end:/(?=\p{space}*(([_A-Za-z][_0-9A-Za-z]*)\p{space}*(\(|:)|(\})))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},patterns:[{captures:{"1":{name:"support.type.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-colon"},{include:"#graphql-skip-newlines"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"}]},"graphql-selection-set":{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.selectionset.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-field"},{include:"#graphql-fragment-spread"},{include:"#graphql-inline-fragment"},{include:"#graphql-comma"},{include:"#native-interpolation"},{include:"#literal-quasi-embedded"}]},"graphql-skip-newlines":{match:/\p{space}*\n/dgv},"graphql-string-content":{patterns:[{match:/\\[\/'"\\nrtbf]/dgv,name:"constant.character.escape.graphql"},{match:/\\u([0-9a-fA-F]{4})/dgv,name:"constant.character.escape.graphql"}]},"graphql-string-value":{begin:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)((\"))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"string.quoted.double.graphql"},"2":{name:"punctuation.definition.string.begin.graphql"}},contentName:"string.quoted.double.graphql",end:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)(?:((\"))|(\\n))","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"string.quoted.double.graphql"},"2":{name:"punctuation.definition.string.end.graphql"},"3":{name:"invalid.illegal.newline.graphql"}},patterns:[{include:"#graphql-string-content"},{include:"#literal-quasi-embedded"}]},"graphql-type-definition":{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.graphql"}},comment:"key (optionalArgs): Type",end:/(?=\p{space}*(([_A-Za-z][_0-9A-Za-z]*)\p{space}*(\(|:)|(\})))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-variable-definitions"},{include:"#graphql-type-object"},{include:"#graphql-colon"},{include:"#graphql-input-types"},{include:"#literal-quasi-embedded"}]},"graphql-type-interface":{applyEndPatternLast:1,begin:/\p{space}*\b(?:(extends?)?\b\p{space}*\b(type)|(interface)|(input))\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)?/dgv,captures:{"1":{name:"keyword.type.graphql"},"2":{name:"keyword.type.graphql"},"3":{name:"keyword.interface.graphql"},"4":{name:"keyword.input.graphql"},"5":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,name:"meta.type.interface.graphql",patterns:[{begin:/\p{space}*\b(implements)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.implements.graphql"}},end:/\p{space}*(?=\{)/dgv,patterns:[{captures:{"1":{name:"support.type.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-ampersand"},{include:"#graphql-comma"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-type-object"},{include:"#literal-quasi-embedded"},{include:"#graphql-ignore-spaces"}]},"graphql-type-object":{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.type.object.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-object-type"},{include:"#graphql-type-definition"},{include:"#literal-quasi-embedded"}]},"graphql-union":{applyEndPatternLast:1,begin:/\p{space}*\b(union)\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.union.graphql"},"2":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{applyEndPatternLast:1,begin:/\p{space}*(=)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"punctuation.assignment.graphql"},"2":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"},{captures:{"1":{name:"punctuation.or.graphql"},"2":{name:"support.type.graphql"}},match:/\p{space}*(\|)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-union-mark":{captures:{"1":{name:"punctuation.union.graphql"}},match:/\p{space}*(\|)/dgv},"graphql-value":{patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-variable-name"},{include:"#graphql-float-value"},{include:"#graphql-string-value"},{include:"#graphql-boolean-value"},{include:"#graphql-null-value"},{include:"#graphql-enum-value"},{include:"#graphql-list-value"},{include:"#graphql-object-value"},{include:"#literal-quasi-embedded"}]},"graphql-variable-assignment":{applyEndPatternLast:1,begin:/\p{space}(=)/dgv,beginCaptures:{"1":{name:"punctuation.assignment.graphql"}},end:/(?=[\n\,\)])/dgv,patterns:[{include:"#graphql-value"}]},"graphql-variable-definition":{begin:/\p{space}*(\$?[_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.parameter.graphql"}},comment:"variable: type = value,.... which may be a list",end:/(?=\p{space}*((\$?[_A-Za-z][_0-9A-Za-z]*)\p{space}*(\(|:)|(\}|\))))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},name:"meta.variables.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-colon"},{include:"#graphql-input-types"},{include:"#graphql-variable-assignment"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-variable-definitions":{begin:/\p{space}*(\()/dgv,captures:{"1":{name:"meta.brace.round.graphql"}},end:/\p{space}*(\))/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-variable-definition"},{include:"#literal-quasi-embedded"}]},"graphql-variable-name":{captures:{"1":{name:"variable.graphql"}},match:/\p{space}*(\$[_A-Za-z][_0-9A-Za-z]*)/dgv},"native-interpolation":{begin:/\p{space}*(\$\{)/dgv,beginCaptures:{"1":{name:"keyword.other.substitution.begin"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.other.substitution.end"}},name:"native.interpolation",patterns:[{include:"source.js"},{include:"source.ts"},{include:"source.js.jsx"},{include:"source.tsx"}]}},scopeName:"source.graphql",embeddedLangs:["javascript","typescript","jsx","tsx"],aliases:["gql"]})
8
+
9
+ export default [
10
+ ...javascript,
11
+ ...typescript,
12
+ ...jsx,
13
+ ...tsx,
14
+ lang
15
+ ]
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs