@shikijs/langs-precompiled 3.2.2 → 3.4.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 (225) hide show
  1. package/dist/abap.mjs +1 -1
  2. package/dist/actionscript-3.mjs +1 -1
  3. package/dist/ada.mjs +1 -1
  4. package/dist/angular-expression.mjs +1 -1
  5. package/dist/angular-html.mjs +1 -1
  6. package/dist/angular-inline-style.mjs +1 -1
  7. package/dist/angular-inline-template.mjs +1 -1
  8. package/dist/angular-let-declaration.mjs +1 -1
  9. package/dist/angular-template-blocks.mjs +1 -1
  10. package/dist/angular-ts.mjs +1 -1
  11. package/dist/apache.mjs +1 -1
  12. package/dist/apex.mjs +1 -1
  13. package/dist/apl.mjs +1 -1
  14. package/dist/applescript.mjs +1 -1
  15. package/dist/ara.mjs +1 -1
  16. package/dist/asciidoc.mjs +1 -1
  17. package/dist/asm.mjs +1 -1
  18. package/dist/astro.mjs +1 -1
  19. package/dist/awk.mjs +1 -1
  20. package/dist/ballerina.mjs +1 -1
  21. package/dist/bat.mjs +1 -1
  22. package/dist/beancount.mjs +1 -1
  23. package/dist/berry.mjs +1 -1
  24. package/dist/bibtex.mjs +1 -1
  25. package/dist/bicep.mjs +1 -1
  26. package/dist/blade.mjs +1 -1
  27. package/dist/bsl.mjs +1 -1
  28. package/dist/c.mjs +1 -1
  29. package/dist/cadence.mjs +1 -1
  30. package/dist/cairo.mjs +1 -1
  31. package/dist/clarity.mjs +1 -1
  32. package/dist/clojure.mjs +1 -1
  33. package/dist/cmake.mjs +1 -1
  34. package/dist/cobol.mjs +1 -1
  35. package/dist/codeql.mjs +1 -1
  36. package/dist/coffee.mjs +1 -1
  37. package/dist/common-lisp.mjs +1 -1
  38. package/dist/coq.mjs +1 -1
  39. package/dist/cpp-macro.mjs +1 -1
  40. package/dist/cpp.mjs +1 -1
  41. package/dist/crystal.mjs +1 -1
  42. package/dist/csharp.mjs +1 -1
  43. package/dist/css.mjs +1 -1
  44. package/dist/cue.mjs +1 -1
  45. package/dist/cypher.mjs +1 -1
  46. package/dist/d.mjs +1 -1
  47. package/dist/dart.mjs +1 -1
  48. package/dist/dax.mjs +1 -1
  49. package/dist/desktop.mjs +1 -1
  50. package/dist/diff.mjs +1 -1
  51. package/dist/dotenv.mjs +1 -1
  52. package/dist/dream-maker.mjs +1 -1
  53. package/dist/edge.mjs +1 -1
  54. package/dist/elixir.mjs +1 -1
  55. package/dist/elm.mjs +1 -1
  56. package/dist/emacs-lisp.mjs +1 -1
  57. package/dist/erb.mjs +1 -1
  58. package/dist/erlang.mjs +1 -1
  59. package/dist/es-tag-css.mjs +1 -1
  60. package/dist/es-tag-glsl.mjs +1 -1
  61. package/dist/es-tag-html.mjs +1 -1
  62. package/dist/es-tag-sql.mjs +1 -1
  63. package/dist/es-tag-xml.mjs +1 -1
  64. package/dist/fennel.mjs +1 -1
  65. package/dist/fish.mjs +1 -1
  66. package/dist/fluent.mjs +1 -1
  67. package/dist/fortran-fixed-form.mjs +1 -1
  68. package/dist/fortran-free-form.mjs +1 -1
  69. package/dist/fsharp.mjs +1 -1
  70. package/dist/gdresource.mjs +1 -1
  71. package/dist/gdscript.mjs +1 -1
  72. package/dist/gdshader.mjs +1 -1
  73. package/dist/genie.mjs +1 -1
  74. package/dist/gherkin.mjs +1 -1
  75. package/dist/gleam.mjs +1 -1
  76. package/dist/glimmer-js.mjs +1 -1
  77. package/dist/glimmer-ts.mjs +1 -1
  78. package/dist/glsl.mjs +1 -1
  79. package/dist/gnuplot.mjs +1 -1
  80. package/dist/go.mjs +1 -1
  81. package/dist/graphql.mjs +1 -1
  82. package/dist/groovy.mjs +1 -1
  83. package/dist/hack.mjs +1 -1
  84. package/dist/haml.mjs +1 -1
  85. package/dist/handlebars.mjs +1 -1
  86. package/dist/haskell.mjs +1 -1
  87. package/dist/haxe.mjs +1 -1
  88. package/dist/hcl.mjs +1 -1
  89. package/dist/hjson.mjs +1 -1
  90. package/dist/hlsl.mjs +1 -1
  91. package/dist/html-derivative.mjs +1 -1
  92. package/dist/html.mjs +1 -1
  93. package/dist/http.mjs +1 -1
  94. package/dist/hxml.mjs +1 -1
  95. package/dist/hy.mjs +1 -1
  96. package/dist/imba.mjs +1 -1
  97. package/dist/ini.mjs +1 -1
  98. package/dist/java.mjs +1 -1
  99. package/dist/javascript.mjs +1 -1
  100. package/dist/jinja.mjs +1 -1
  101. package/dist/jison.mjs +1 -1
  102. package/dist/json.mjs +1 -1
  103. package/dist/json5.mjs +1 -1
  104. package/dist/jsonc.mjs +1 -1
  105. package/dist/jsonl.mjs +1 -1
  106. package/dist/jsonnet.mjs +1 -1
  107. package/dist/jssm.mjs +1 -1
  108. package/dist/jsx.mjs +1 -1
  109. package/dist/julia.mjs +1 -1
  110. package/dist/kotlin.mjs +1 -1
  111. package/dist/kusto.mjs +1 -1
  112. package/dist/latex.mjs +1 -1
  113. package/dist/lean.mjs +1 -1
  114. package/dist/less.mjs +1 -1
  115. package/dist/liquid.mjs +1 -1
  116. package/dist/llvm.mjs +1 -1
  117. package/dist/log.mjs +1 -1
  118. package/dist/logo.mjs +1 -1
  119. package/dist/lua.mjs +1 -1
  120. package/dist/luau.mjs +1 -1
  121. package/dist/make.mjs +1 -1
  122. package/dist/markdown-vue.mjs +1 -1
  123. package/dist/markdown.mjs +1 -1
  124. package/dist/marko.mjs +1 -1
  125. package/dist/matlab.mjs +1 -1
  126. package/dist/mdc.mjs +1 -1
  127. package/dist/mdx.mjs +1 -1
  128. package/dist/mermaid.mjs +1 -1
  129. package/dist/mipsasm.mjs +1 -1
  130. package/dist/mojo.mjs +1 -1
  131. package/dist/move.mjs +1 -1
  132. package/dist/narrat.mjs +1 -1
  133. package/dist/nextflow.mjs +1 -1
  134. package/dist/nginx.mjs +1 -1
  135. package/dist/nim.mjs +1 -1
  136. package/dist/nix.mjs +1 -1
  137. package/dist/nushell.mjs +1 -1
  138. package/dist/objective-c.mjs +1 -1
  139. package/dist/objective-cpp.mjs +1 -1
  140. package/dist/ocaml.mjs +1 -1
  141. package/dist/pascal.mjs +1 -1
  142. package/dist/perl.mjs +1 -1
  143. package/dist/php.mjs +1 -1
  144. package/dist/plsql.mjs +1 -1
  145. package/dist/po.mjs +1 -1
  146. package/dist/polar.mjs +1 -1
  147. package/dist/postcss.mjs +1 -1
  148. package/dist/powerquery.mjs +1 -1
  149. package/dist/powershell.mjs +1 -1
  150. package/dist/prisma.mjs +1 -1
  151. package/dist/prolog.mjs +1 -1
  152. package/dist/proto.mjs +1 -1
  153. package/dist/pug.mjs +1 -1
  154. package/dist/puppet.mjs +1 -1
  155. package/dist/purescript.mjs +1 -1
  156. package/dist/python.mjs +1 -1
  157. package/dist/qml.mjs +1 -1
  158. package/dist/qss.mjs +1 -1
  159. package/dist/r.mjs +1 -1
  160. package/dist/racket.mjs +1 -1
  161. package/dist/raku.mjs +1 -1
  162. package/dist/razor.mjs +1 -1
  163. package/dist/reg.mjs +1 -1
  164. package/dist/regexp.mjs +1 -1
  165. package/dist/rel.mjs +1 -1
  166. package/dist/riscv.mjs +1 -1
  167. package/dist/rst.mjs +1 -1
  168. package/dist/ruby.mjs +1 -1
  169. package/dist/rust.mjs +1 -1
  170. package/dist/sas.mjs +1 -1
  171. package/dist/sass.mjs +1 -1
  172. package/dist/scala.mjs +1 -1
  173. package/dist/scheme.mjs +1 -1
  174. package/dist/scss.mjs +1 -1
  175. package/dist/sdbl.mjs +1 -1
  176. package/dist/shaderlab.mjs +1 -1
  177. package/dist/shellscript.mjs +1 -1
  178. package/dist/shellsession.mjs +1 -1
  179. package/dist/smalltalk.mjs +1 -3
  180. package/dist/solidity.mjs +1 -1
  181. package/dist/soy.mjs +1 -1
  182. package/dist/sparql.mjs +1 -1
  183. package/dist/splunk.mjs +1 -1
  184. package/dist/sql.mjs +1 -1
  185. package/dist/ssh-config.mjs +1 -1
  186. package/dist/stata.mjs +1 -1
  187. package/dist/stylus.mjs +1 -1
  188. package/dist/svelte.mjs +1 -1
  189. package/dist/system-verilog.mjs +1 -1
  190. package/dist/systemd.mjs +1 -1
  191. package/dist/talonscript.mjs +1 -1
  192. package/dist/tasl.mjs +1 -1
  193. package/dist/tcl.mjs +1 -1
  194. package/dist/templ.mjs +1 -1
  195. package/dist/terraform.mjs +1 -1
  196. package/dist/tex.mjs +1 -1
  197. package/dist/toml.mjs +1 -1
  198. package/dist/tsx.mjs +1 -1
  199. package/dist/turtle.mjs +1 -1
  200. package/dist/twig.mjs +1 -1
  201. package/dist/typescript.mjs +1 -1
  202. package/dist/typespec.mjs +1 -1
  203. package/dist/typst.mjs +1 -1
  204. package/dist/v.mjs +1 -1
  205. package/dist/vala.mjs +1 -1
  206. package/dist/vb.mjs +1 -1
  207. package/dist/verilog.mjs +1 -1
  208. package/dist/vhdl.mjs +1 -1
  209. package/dist/viml.mjs +1 -1
  210. package/dist/vue-html.mjs +1 -1
  211. package/dist/vue-sfc-style-variable-injection.mjs +1 -1
  212. package/dist/vue.mjs +3 -3
  213. package/dist/vyper.mjs +1 -1
  214. package/dist/wasm.mjs +1 -1
  215. package/dist/wenyan.mjs +1 -1
  216. package/dist/wgsl.mjs +1 -1
  217. package/dist/wikitext.mjs +1 -1
  218. package/dist/wit.mjs +1 -1
  219. package/dist/wolfram.mjs +1 -1
  220. package/dist/xml.mjs +1 -1
  221. package/dist/xsl.mjs +1 -1
  222. package/dist/yaml.mjs +1 -1
  223. package/dist/zenscript.mjs +1 -1
  224. package/dist/zig.mjs +1 -1
  225. package/package.json +4 -4
package/dist/crystal.mjs CHANGED
@@ -6,7 +6,7 @@ import c from './c.mjs'
6
6
  import javascript from './javascript.mjs'
7
7
  import shellscript from './shellscript.mjs'
8
8
 
9
- const lang = Object.freeze({displayName:"Crystal",fileTypes:["cr"],firstLineMatch:/^#!\/[^\n]*\bcrystal/dgv,foldingStartMarker:/*@__PURE__*/ new EmulatedRegExp("^((?:(?=(\\p{space}*))\\2)(annotation|module|class|struct|union|enum|def(?![^\\n]*\\bend\\p{space}*(?=\\n?$))|unless|if|case|begin|for|while|until|^=begin|(\"(?:(?=((\\\\[^\\n]|[^\"])*))\\5)\"|'(?:(?=((\\\\[^\\n]|[^'])*))\\7)'|[^\\#\"'])*(\\p{space}(do|begin|case)|(?<!\\$)[\\-\\+\\=\\&\\|\\*\\/\\~\\%\\^\\<\\>](?:(?=(\\p{space}*))\\11)(if|unless)))\\b(?!(?:(?=([^\\;]*))\\13);[^\\n]*?\\bend\\b)|(\"(?:(?=((\\\\[^\\n]|[^\"])*))\\15)\"|'(?:(?=((\\\\[^\\n]|[^'])*))\\17)'|[^\\#\"'])*(\\{(?!(?:(?=([^\\}]*))\\20)\\})|\\[(?!(?:(?=([^\\]]*))\\21)\\])))[^\\n]*(?=\\n?$)|#[^\\n]*?\\(fold\\)(?:(?=(\\p{space}*))\\22)(?=\\n?$)","dgv",{"hiddenCaptures":[2,5,7,11,13,15,17,20,21,22]}),foldingStopMarker:/*@__PURE__*/ new EmulatedRegExp("((^|;)(?:(?=(\\p{space}*))\\3)end(?:(?=(\\p{space}*))\\4)(#[^\\n]*)?(?=\\n?$)|(^|;)(?:(?=(\\p{space}*))\\7)end\\.[^\\n]*(?=\\n?$)|^(?:(?=(\\p{space}*))\\8)[\\}\\]],?(?:(?=(\\p{space}*))\\9)(#[^\\n]*)?(?=\\n?$)|#[^\\n]*?\\(end\\)(?:(?=(\\p{space}*))\\11)(?=\\n?$)|^=end)","dgv",{"hiddenCaptures":[3,4,7,8,9,11]}),name:"crystal",patterns:[{captures:{"1":{name:"keyword.control.class.crystal"},"2":{name:"keyword.control.class.crystal"},"3":{name:"entity.name.type.class.crystal"},"5":{name:"punctuation.separator.crystal"},"6":{name:"support.class.other.type-param.crystal"},"7":{name:"entity.other.inherited-class.crystal"},"8":{name:"punctuation.separator.crystal"},"9":{name:"punctuation.separator.crystal"},"10":{name:"support.class.other.type-param.crystal"},"11":{name:"punctuation.definition.variable.crystal"}},match:/^\p{space}*(abstract)?\p{space}*(class|struct|union|annotation|enum)\p{space}+(([\.A-Z_\:\x80-\u{10FFFF}][\.\p{L}\p{M}\p{N}\p{Pc}\:\x80-\u{10FFFF}]*(\(([\,\p{space}\.a-zA-Z0-9_\:\x80-\u{10FFFF}]+)\))?(\p{space}*(<)\p{space}*[\.\:A-Z\x80-\u{10FFFF}][\.\:\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*(\(([\.a-zA-Z0-9_\:]+\p{space},)\))?)?)|((<<)\p{space}*[\.A-Z0-9_\:\x80-\u{10FFFF}]+))/dgv,name:"meta.class.crystal"},{captures:{"1":{name:"keyword.control.module.crystal"},"2":{name:"entity.name.type.module.crystal"},"3":{name:"entity.other.inherited-class.module.first.crystal"},"4":{name:"punctuation.separator.inheritance.crystal"},"5":{name:"entity.other.inherited-class.module.second.crystal"},"6":{name:"punctuation.separator.inheritance.crystal"},"7":{name:"entity.other.inherited-class.module.third.crystal"},"8":{name:"punctuation.separator.inheritance.crystal"}},match:/^\p{space}*(module)\p{space}+(([A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*(::))?([A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*(::))?([A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*(::))*[A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*)/dgv,name:"meta.module.crystal"},{captures:{"1":{name:"keyword.control.lib.crystal"},"2":{name:"entity.name.type.lib.crystal"},"3":{name:"entity.other.inherited-class.lib.first.crystal"},"4":{name:"punctuation.separator.inheritance.crystal"},"5":{name:"entity.other.inherited-class.lib.second.crystal"},"6":{name:"punctuation.separator.inheritance.crystal"},"7":{name:"entity.other.inherited-class.lib.third.crystal"},"8":{name:"punctuation.separator.inheritance.crystal"}},match:/^\p{space}*(lib)\p{space}+(([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))?([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))?([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.lib.crystal"},{captures:{"1":{name:"keyword.control.lib.type.crystal"},"2":{name:"entity.name.lib.type.crystal"},"3":{name:"keyword.control.lib.crystal"},"4":{name:"entity.name.lib.type.value.crystal"}},match:/(?<!\.)\b(type)\p{space}+([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(=)\p{space}*([^\n]+)/dgv,name:"meta.lib.type.crystal"},{match:/(?<!\.)\b(fun|begin|case|class|else|elsif|end|ensure|enum|for|if|macro|module|rescue|struct|then|union|unless|until|when|while)\b(?![\?\!\:])/dgv,name:"keyword.control.crystal"},{match:/(?<!\.)\b(abstract|alias|asm|break|extend|in|include|next|of|private|protected|struct|return|select|super|with|yield)\b(?![\?\!\:])/dgv,name:"keyword.control.primary.crystal"},{match:/(?<!\.)\b(describe|context|it|expect_raises)\b(?![\?\!\:])/dgv,name:"keyword.control.crystal"},{match:/(?<!\.)\bdo\b\p{space}*/dgv,name:"keyword.control.start-block.crystal"},{match:/(?<=\{)(\p{space}+)/dgv,name:"meta.syntax.crystal.start-block"},{match:/(?<!\.)\b(pointerof|typeof|sizeof|instance_sizeof|offsetof|previous_def|forall|out|uninitialized)\b(?![\?\!\:])|\.(is_a\?|nil\?|responds_to\?|as\?|as\x08)/dgv,name:"keyword.control.pseudo-method.crystal"},{match:/\bnil\b(?![\?\!\:])/dgv,name:"constant.language.nil.crystal"},{match:/\b(true|false)\b(?![\?\!\:])/dgv,name:"constant.language.boolean.crystal"},{match:/\b(__(DIR|FILE|LINE|END_LINE)__)\b(?![\?\!\:])/dgv,name:"variable.language.crystal"},{match:/\b(self)\b(?![\?\!\:])/dgv,name:"variable.language.self.crystal"},{match:/(?<!\.)\b(((class_)?((getter|property)\b[\!\?]?|setter\b))|(def_(clone|equals|equals_and_hash|hash)|delegate|forward_missing_to)\b)(?![\?\!\:])/dgv,name:"support.function.kernel.crystal"},{begin:/\b(require)\b/dgv,captures:{"1":{name:"keyword.other.special-method.crystal"}},end:/(?=\n?$)|(?=#)/dgv,name:"meta.require.crystal",patterns:[{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(@)[a-zA-Z_\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*[\?\!\=]?/dgv,name:"variable.other.readwrite.instance.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(@@)[a-zA-Z_\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*[\?\!\=]?/dgv,name:"variable.other.readwrite.class.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(?!%[Qxrqwi]?[\(\[\{\<\|])%([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.fresh.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(\$)([\!\@\&\`'\+]|\p{Nd}+|[\~\=\/\\\,\;\.\<\>_\*\$\?\:"]|-[0adFiIlpv])/dgv,name:"variable.other.readwrite.global.pre-defined.crystal"},{begin:/\b(ENV)\[/dgv,beginCaptures:{"1":{name:"variable.other.constant.crystal"}},end:/\]/dgv,name:"meta.environment-variable.crystal",patterns:[{include:"$self"}]},{match:/\b[A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*/dgv,name:"support.class.crystal"},{match:/(?<!\.)\b(abort|at_exit|caller|exit|gets|loop|main|p|pp|print|printf|puts|raise|rand|read_line|sleep|spawn|sprintf|system|debugger|record|spawn)\b(?![\?\!\:])/dgv,name:"support.function.kernel.crystal"},{match:/\b[_A-Z]+\b/dgv,name:"variable.other.constant.crystal"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\p{space}+((?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\?\\!]|=(?!>)))\\6)?|\\^|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\?\\=]?|\\[\\]=?))\\5))\\p{space}*(\\()","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.def.crystal"},"2":{name:"entity.name.function.crystal"},"3":{name:"punctuation.definition.parameters.crystal"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.crystal"}},name:"meta.function.method.with-arguments.crystal",patterns:[{begin:/(?![\p{space}\,\)])/dgv,end:/(?=,|\)\p{space}*)/dgv,patterns:[{captures:{"1":{name:"storage.type.variable.crystal"},"2":{name:"constant.other.symbol.hashkey.parameter.function.crystal"},"3":{name:"punctuation.definition.constant.hashkey.crystal"},"4":{name:"variable.parameter.function.crystal"}},match:/([\&\*]?)(?:([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*(:))|([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*))/dgvy},{include:"$self"}]}]},{captures:{"1":{name:"keyword.control.def.crystal"},"3":{name:"entity.name.function.crystal"}},match:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\b(\\p{space}+((?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\5)))\\4)?(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\?\\!]|=(?!>)))\\7)?|\\^|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\?\\=]?|\\[\\]=?))\\6)))?","dgv",{"hiddenCaptures":[4,5,6,7]}),name:"meta.function.method.without-arguments.crystal"},{match:/\b[0-9][0-9_]*\.[0-9][0-9_]*([eE][\+\-]?[0-9_]+)?(f(?:32|64))?\b/dgv,name:"constant.numeric.float.crystal"},{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?[eE][\+\-]?[0-9_]+(f(?:32|64))?\b/dgv,name:"constant.numeric.float.crystal"},{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][\+\-]?[0-9_]+)?(f(?:32|64))\b/dgv,name:"constant.numeric.float.crystal"},{match:/\b(?!0[0-9])[0-9][0-9_]*([ui](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.decimal.crystal"},{match:/\b0x[_\p{AHex}]+([ui](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.hexadecimal.crystal"},{match:/\b0o[0-7_]+([ui](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.octal.crystal"},{match:/\b0b[01_]+([ui](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.binary.crystal"},{begin:/:'/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.crystal"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.crystal"}},name:"constant.other.symbol.crystal",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.crystal"}]},{begin:/:"/dgv,beginCaptures:{"0":{name:"punctuation.section.symbol.begin.crystal"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.section.symbol.end.crystal"}},name:"constant.other.symbol.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{match:/(?<!\()\/=/dgv,name:"keyword.operator.assignment.augmented.crystal"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.single.crystal",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.crystal"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.double.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/%x\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%x\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%x</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%x\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%x\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/(?:^|(?<=[\=\>\~\(\?\:\[\,\|\&\;]|[\p{space}\;]if\p{space}|[\p{space}\;]elsif\p{space}|[\p{space}\;]while\p{space}|[\p{space}\;]unless\p{space}|[\p{space}\;]when\p{space}|[\p{space}\;]assert_match\p{space}|[\p{space}\;]or\p{space}|[\p{space}\;]and\p{space}|[\p{space}\;]not\p{space}|[\p{space}\.]index\p{space}|[\p{space}\.]scan\p{space}|[\p{space}\.]sub\p{space}|[\p{space}\.]sub!\p{space}|[\p{space}\.]gsub\p{space}|[\p{space}\.]gsub!\p{space}|[\p{space}\.]match\p{space})|(?<=^(?:when\p{space}|if\p{space}|elsif\p{space}|while\p{space}|unless\p{space})))\p{space}*((\/))(?![\*\+\{\}\?])/dgv,captures:{"1":{name:"string.regexp.classic.crystal"},"2":{name:"punctuation.definition.string.crystal"}},contentName:"string.regexp.classic.crystal",end:/((\/[imsx]*))/dgv,patterns:[{include:"#regex_sub"}]},{begin:/%r\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\}[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},{begin:/%r\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\][imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},{begin:/%r\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\)[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},{begin:/%r</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/>[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},{begin:/%r\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\|[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"}]},{begin:/%Q?\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%Q?\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%Q?</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%Q?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.double.crystal.mod",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%Q\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/%[qwi]\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.crystal"},{include:"#nest_parens"}]},{begin:/%[qwi]</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.crystal"},{include:"#nest_ltgt"}]},{begin:/%[qwi]\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.crystal"},{include:"#nest_brackets"}]},{begin:/%[qwi]\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[\}\\]/dgv,name:"constant.character.escape.crystal"},{include:"#nest_curly"}]},{begin:/%[qwi]\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[^\n]/dgv}]},{captures:{"1":{name:"punctuation.definition.constant.crystal"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<!:)(:)(?:(?=([a-zA-Z_\\x80-\\u{10FFFF}][\\p{L}\\p{M}\\p{N}\\p{Pc}\\x80-\\u{10FFFF}]*(?:(?=([\\?\\!]|=(?![\\>\\=])))\\3)?|===?|>[\\>\\=]?|<[\\<\\=]?|<=>|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\?\\=]?|@@?[a-zA-Z_\\x80-\\u{10FFFF}][\\p{L}\\p{M}\\p{N}\\p{Pc}\\x80-\\u{10FFFF}]*))\\2)","dgv",{"hiddenCaptures":[2,3]}),name:"constant.other.symbol.crystal"},{captures:{"1":{name:"punctuation.definition.constant.crystal"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=([a-zA-Z_\\x80-\\u{10FFFF}][\\p{L}\\p{M}\\p{N}\\p{Pc}\\x80-\\u{10FFFF}]*[\\?\\!]?))\\1)(:)(?!:)","dgv",{"hiddenCaptures":[1]}),name:"constant.other.symbol.crystal.19syntax"},{captures:{"1":{name:"punctuation.definition.comment.crystal"}},match:/(?:^[ \t]+)?(#)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.number-sign.crystal"},{match:/(?<!\}\})\b_([\p{L}\p{M}\p{N}\p{Pc}]+[\?\!]?)\b(?!\()/dgv,name:"comment.unused.crystal"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.html.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.html.crystal",patterns:[{include:"#heredoc"},{include:"text.html.basic"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.sql.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.sql.crystal",patterns:[{include:"#heredoc"},{include:"source.sql"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.css.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.css.crystal",patterns:[{include:"#heredoc"},{include:"source.css"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.c++.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.cplusplus.crystal",patterns:[{include:"#heredoc"},{include:"source.c++"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.c.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.c.crystal",patterns:[{include:"#heredoc"},{include:"source.c"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)J(?:S|AVASCRIPT))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.js.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.js.crystal",patterns:[{include:"#heredoc"},{include:"source.js"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.js.jquery.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.js.jquery.crystal",patterns:[{include:"#heredoc"},{include:"source.js.jquery"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SH(?:|ELL))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.shell.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.shell.crystal",patterns:[{include:"#heredoc"},{include:"source.shell"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CRYSTAL)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.crystal.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.crystal.crystal",patterns:[{include:"#heredoc"},{include:"source.crystal"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-'([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)'))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\p{space}*\1\b()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.heredoc.crystal",patterns:[{include:"#heredoc"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\b))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\p{space}*\1\b()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.heredoc.crystal",patterns:[{include:"#heredoc"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/(?<=\{|\{\p{space}|[^A-Za-z0-9_]do|^do|[^A-Za-z0-9_]do\p{space}|^do\p{space})(\|)/dgv,captures:{"1":{name:"punctuation.separator.variable.crystal"}},end:/(?<!\|)(\|)(?!\|)/dgv,patterns:[{include:"source.crystal"},{match:/[_a-zA-Z][_a-zA-Z0-9]*/dgv,name:"variable.other.block.crystal"},{match:/,/dgv,name:"punctuation.separator.variable.crystal"}]},{match:/=>/dgv,name:"punctuation.separator.key-value"},{match:/->/dgv,name:"support.function.kernel.crystal"},{match:/<<=|%=|&{1,2}=|\*=|\*\*=|\+=|-=|\^=|\|{1,2}=|<</dgv,name:"keyword.operator.assignment.augmented.crystal"},{match:/<=>|<(?![\<\=])|>(?![\<\=\>])|<=|>=|===|==|=~|!=|!~|(?<=[ \t])\?/dgv,name:"keyword.operator.comparison.crystal"},{match:/(?<=^|[ \t])!|&&|\|\||\^/dgv,name:"keyword.operator.logical.crystal"},{match:/(\{%|%\}|\{\{|\}\})/dgv,name:"keyword.operator.macro.crystal"},{captures:{"1":{name:"punctuation.separator.method.crystal"}},match:/(&\.)\p{space}*(?![A-Z])/dgv},{match:/([\%\&]|\*\*|[\*\+\-\/])/dgv,name:"keyword.operator.arithmetic.crystal"},{match:/=/dgv,name:"keyword.operator.assignment.crystal"},{match:/[\|\~]|>>/dgv,name:"keyword.operator.other.crystal"},{match:/:/dgv,name:"punctuation.separator.other.crystal"},{match:/;/dgv,name:"punctuation.separator.statement.crystal"},{match:/,/dgv,name:"punctuation.separator.object.crystal"},{match:/\.|::/dgv,name:"punctuation.separator.method.crystal"},{match:/[\{\}]/dgv,name:"punctuation.section.scope.crystal"},{match:/[\[\]]/dgv,name:"punctuation.section.array.crystal"},{match:/[\(\)]/dgv,name:"punctuation.section.function.crystal"},{begin:/(?=[a-zA-Z0-9_\!\?]+\()/dgv,end:/(?<=\))/dgv,name:"meta.function-call.crystal",patterns:[{match:/([a-zA-Z0-9_\!\?]+)(?=\()/dgv,name:"entity.name.function.crystal"},{include:"$self"}]},{match:/((?<=[^\p{L}\p{M}\p{N}\p{Pc}])\b|^)[\p{L}\p{M}\p{N}\p{Pc}]+\b(?=\p{space}*([\]\)\}\=\+\-\*\/\^\$\,\.]|<\p{space}|<<[\p{space}\|\.]))/dgv,name:"variable.other.crystal"}],repository:{escaped_char:{match:/\\(?:[0-7]{1,3}|x\p{AHex}{2}|u\p{AHex}{4}|u\{[ \p{AHex}]+\}|[^\n])/dgv,name:"constant.character.escape.crystal"},heredoc:{begin:/^<<-?[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,end:/(?=\n?$)/dgv,patterns:[{include:"$self"}]},interpolated_crystal:{patterns:[{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.crystal"}},contentName:"source.crystal",end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.crystal"},"1":{name:"source.crystal"}},name:"meta.embedded.line.crystal",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}],repository:{nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]}}},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#@@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.crystal"}]},nest_brackets:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#nest_brackets"}]},nest_brackets_i:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},nest_brackets_r:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]},nest_curly_i:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},nest_curly_r:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},nest_ltgt:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#nest_ltgt"}]},nest_ltgt_i:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},nest_ltgt_r:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},nest_parens:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#nest_parens"}]},nest_parens_i:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},nest_parens_r:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},regex_sub:{patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{captures:{"1":{name:"punctuation.definition.arbitrary-repetition.crystal"},"3":{name:"punctuation.definition.arbitrary-repetition.crystal"}},match:/(\{)\p{Nd}+(,\p{Nd}+)?(\})/dgv,name:"string.regexp.arbitrary-repetition.crystal"},{begin:/\[(?:\^?\])?/dgv,captures:{"0":{name:"punctuation.definition.character-class.crystal"}},end:/\]/dgv,name:"string.regexp.character-class.crystal",patterns:[{include:"#escaped_char"}]},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.crystal"}},end:/\)/dgv,name:"string.regexp.group.crystal",patterns:[{include:"#regex_sub"}]},{captures:{"1":{name:"punctuation.definition.comment.crystal"}},match:/(?<=^|\p{space})(#)\p{space}[a-zA-Z0-9\,\. \t\?\!\-[^\x00-\x7F]]*(?=\n?$)/dgv,name:"comment.line.number-sign.crystal"}]}},scopeName:"source.crystal",embeddedLangs:["html","sql","css","c","javascript","shellscript"],aliases:undefined})
9
+ const lang = Object.freeze({displayName:"Crystal",fileTypes:["cr"],firstLineMatch:/^#!\/[^\n]*\bcrystal/dgv,foldingStartMarker:/*@__PURE__*/ new EmulatedRegExp("(?:^((?:(?=(\\p{space}*))\\2)(annotation|module|class|struct|union|enum|def(?![^\\n]*\\bend\\p{space}*(?=\\n?$))|unless|if|case|begin|for|while|until|^=begin|(\"(?:(?=((\\\\[^\\n]|[^\"])*))\\5)\"|'(?:(?=((\\\\[^\\n]|[^'])*))\\7)'|[^\"\\#'])*(\\p{space}(do|begin|case)|(?<!\\$)[\\-\\%\\&\\*\\+\\/\\<\\=\\>\\^\\|\\~](?:(?=(\\p{space}*))\\11)(if|unless)))\\b(?!(?:(?=([^\\;]*))\\13);[^\\n]*?\\bend\\b)|(\"(?:(?=((\\\\[^\\n]|[^\"])*))\\15)\"|'(?:(?=((\\\\[^\\n]|[^'])*))\\17)'|[^\"\\#'])*(\\{(?!(?:(?=([^\\}]*))\\20)\\})|\\[(?!(?:(?=([^\\]]*))\\21)\\])))[^\\n]*|#[^\\n]*?\\(fold\\)(?:(?=(\\p{space}*))\\22))(?=\\n?$)","dgv",{"hiddenCaptures":[2,5,7,11,13,15,17,20,21,22]}),foldingStopMarker:/*@__PURE__*/ new EmulatedRegExp("((^|;)(?:(?=(\\p{space}*))\\3)end(?:(?=(\\p{space}*))\\4)(#[^\\n]*)?(?=\\n?$)|(^|;)(?:(?=(\\p{space}*))\\7)end\\.[^\\n]*(?=\\n?$)|^(?:(?=(\\p{space}*))\\8)[\\]\\}],?(?:(?=(\\p{space}*))\\9)(#[^\\n]*)?(?=\\n?$)|#[^\\n]*?\\(end\\)(?:(?=(\\p{space}*))\\11)(?=\\n?$)|^=end)","dgv",{"hiddenCaptures":[3,4,7,8,9,11]}),name:"crystal",patterns:[{captures:{"1":{name:"keyword.control.class.crystal"},"2":{name:"keyword.control.class.crystal"},"3":{name:"entity.name.type.class.crystal"},"5":{name:"punctuation.separator.crystal"},"6":{name:"support.class.other.type-param.crystal"},"7":{name:"entity.other.inherited-class.crystal"},"8":{name:"punctuation.separator.crystal"},"9":{name:"punctuation.separator.crystal"},"10":{name:"support.class.other.type-param.crystal"},"11":{name:"punctuation.definition.variable.crystal"}},match:/^\p{space}*(abstract)?\p{space}*(class|struct|union|annotation|enum)\p{space}+(([\.\:A-Z_\x80-\u{10FFFF}][\.\:\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*(\(([\,\.0-\:A-Z_a-z\x80-\u{10FFFF}\p{space}]+)\))?(\p{space}*(<)\p{space}*[\.\:A-Z\x80-\u{10FFFF}][\.\:\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*(\(([\.0-\:A-Z_a-z]+\p{space},)\))?)?)|((<<)\p{space}*[\.0-\:A-Z_\x80-\u{10FFFF}]+))/dgv,name:"meta.class.crystal"},{captures:{"1":{name:"keyword.control.module.crystal"},"2":{name:"entity.name.type.module.crystal"},"3":{name:"entity.other.inherited-class.module.first.crystal"},"4":{name:"punctuation.separator.inheritance.crystal"},"5":{name:"entity.other.inherited-class.module.second.crystal"},"6":{name:"punctuation.separator.inheritance.crystal"},"7":{name:"entity.other.inherited-class.module.third.crystal"},"8":{name:"punctuation.separator.inheritance.crystal"}},match:/^\p{space}*(module)\p{space}+(([A-Z\x80-\u{10FFFF}][\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*(::))?([A-Z\x80-\u{10FFFF}][\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*(::))?([A-Z\x80-\u{10FFFF}][\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*(::))*[A-Z\x80-\u{10FFFF}][\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.module.crystal"},{captures:{"1":{name:"keyword.control.lib.crystal"},"2":{name:"entity.name.type.lib.crystal"},"3":{name:"entity.other.inherited-class.lib.first.crystal"},"4":{name:"punctuation.separator.inheritance.crystal"},"5":{name:"entity.other.inherited-class.lib.second.crystal"},"6":{name:"punctuation.separator.inheritance.crystal"},"7":{name:"entity.other.inherited-class.lib.third.crystal"},"8":{name:"punctuation.separator.inheritance.crystal"}},match:/^\p{space}*(lib)\p{space}+(([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))?([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))?([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.lib.crystal"},{captures:{"1":{name:"keyword.control.lib.type.crystal"},"2":{name:"entity.name.lib.type.crystal"},"3":{name:"keyword.control.lib.crystal"},"4":{name:"entity.name.lib.type.value.crystal"}},match:/(?<!\.)\b(type)\p{space}+([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(=)\p{space}*([^\n]+)/dgv,name:"meta.lib.type.crystal"},{match:/(?<!\.)\b(fun|begin|case|class|else|elsif|end|ensure|enum|for|if|macro|module|rescue|struct|then|union|unless|until|when|while)\b(?![\!\:\?])/dgv,name:"keyword.control.crystal"},{match:/(?<!\.)\b(abstract|alias|asm|break|extend|in|include|next|of|private|protected|struct|return|select|super|with|yield)\b(?![\!\:\?])/dgv,name:"keyword.control.primary.crystal"},{match:/(?<!\.)\b(describe|context|it|expect_raises)\b(?![\!\:\?])/dgv,name:"keyword.control.crystal"},{match:/(?<!\.)\bdo\b\p{space}*/dgv,name:"keyword.control.start-block.crystal"},{match:/(?<=\{)(\p{space}+)/dgv,name:"meta.syntax.crystal.start-block"},{match:/(?<!\.)\b(pointerof|typeof|sizeof|instance_sizeof|offsetof|previous_def|forall|out|uninitialized)\b(?![\!\:\?])|\.(is_a\?|nil\?|responds_to\?|as\?|as\x08)/dgv,name:"keyword.control.pseudo-method.crystal"},{match:/\bnil\b(?![\!\:\?])/dgv,name:"constant.language.nil.crystal"},{match:/\b(true|false)\b(?![\!\:\?])/dgv,name:"constant.language.boolean.crystal"},{match:/\b(__(DIR|FILE|LINE|END_LINE)__)\b(?![\!\:\?])/dgv,name:"variable.language.crystal"},{match:/\b(self)\b(?![\!\:\?])/dgv,name:"variable.language.self.crystal"},{match:/(?<!\.)\b(((class_)?((getter|property)\b[\!\?]?|setter\b))|(def_(clone|equals|equals_and_hash|hash)|delegate|forward_missing_to)\b)(?![\!\:\?])/dgv,name:"support.function.kernel.crystal"},{begin:/\b(require)\b/dgv,captures:{"1":{name:"keyword.other.special-method.crystal"}},end:/(?=\n?$)|(?=#)/dgv,name:"meta.require.crystal",patterns:[{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(@)[A-Z_a-z\x80-\u{10FFFF}][\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*[\!\=\?]?/dgv,name:"variable.other.readwrite.instance.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(@@)[A-Z_a-z\x80-\u{10FFFF}][\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*[\!\=\?]?/dgv,name:"variable.other.readwrite.class.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(\$)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(?!%[Qiqrwx]?[\(\<\[\{\|])%([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.fresh.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(\$)([\!\&'\+\@\`]|\p{Nd}+|["\$\*\,\.\/\:-\?\\_\~]|-[0FIadilpv])/dgv,name:"variable.other.readwrite.global.pre-defined.crystal"},{begin:/\b(ENV)\[/dgv,beginCaptures:{"1":{name:"variable.other.constant.crystal"}},end:/\]/dgv,name:"meta.environment-variable.crystal",patterns:[{include:"$self"}]},{match:/\b[A-Z\x80-\u{10FFFF}][\x80-\u{10FFFF}\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"support.class.crystal"},{match:/(?<!\.)\b(abort|at_exit|caller|exit|gets|loop|main|pp??|printf??|puts|raise|rand|read_line|sleep|spawn|sprintf|system|debugger|record|spawn)\b(?![\!\:\?])/dgv,name:"support.function.kernel.crystal"},{match:/\b[A-Z_]+\b/dgv,name:"variable.other.constant.crystal"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\p{space}+((?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?!>)))\\6)?|\\^|===?|!=|>[\\=\\>]?|<=>|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\=\\?]?|\\[\\]=?))\\5))\\p{space}*(\\()","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.def.crystal"},"2":{name:"entity.name.function.crystal"},"3":{name:"punctuation.definition.parameters.crystal"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.crystal"}},name:"meta.function.method.with-arguments.crystal",patterns:[{begin:/(?![\)\,\p{space}])/dgv,end:/(?=,|\)\p{space}*)/dgv,patterns:[{captures:{"1":{name:"storage.type.variable.crystal"},"2":{name:"constant.other.symbol.hashkey.parameter.function.crystal"},"3":{name:"punctuation.definition.constant.hashkey.crystal"},"4":{name:"variable.parameter.function.crystal"}},match:/([\&\*]?)(?:([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*(:))|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))/dgvy},{include:"$self"}]}]},{captures:{"1":{name:"keyword.control.def.crystal"},"3":{name:"entity.name.function.crystal"}},match:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\b(\\p{space}+((?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\5)))\\4)?(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?!>)))\\7)?|\\^|===?|!=|>[\\=\\>]?|<=>|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\=\\?]?|\\[\\]=?))\\6)))?","dgv",{"hiddenCaptures":[4,5,6,7]}),name:"meta.function.method.without-arguments.crystal"},{match:/\b[0-9][0-9_]*\.[0-9][0-9_]*([Ee][\-\+]?[0-9_]+)?(f(?:32|64))?\b/dgv,name:"constant.numeric.float.crystal"},{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?[Ee][\-\+]?[0-9_]+(f(?:32|64))?\b/dgv,name:"constant.numeric.float.crystal"},{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([Ee][\-\+]?[0-9_]+)?(f(?:32|64))\b/dgv,name:"constant.numeric.float.crystal"},{match:/\b(?!0[0-9])[0-9][0-9_]*([iu](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.decimal.crystal"},{match:/\b0x[_\p{AHex}]+([iu](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.hexadecimal.crystal"},{match:/\b0o[0-7_]+([iu](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.octal.crystal"},{match:/\b0b[01_]+([iu](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.binary.crystal"},{begin:/:'/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.crystal"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.crystal"}},name:"constant.other.symbol.crystal",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.crystal"}]},{begin:/:"/dgv,beginCaptures:{"0":{name:"punctuation.section.symbol.begin.crystal"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.section.symbol.end.crystal"}},name:"constant.other.symbol.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{match:/(?<!\()\/=/dgv,name:"keyword.operator.assignment.augmented.crystal"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.single.crystal",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.crystal"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.double.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/%x\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%x\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%x</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%x\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%x\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/(?:^|(?<=[\&\(\,\:\;\=\>\?\[\|\~]|[\;\p{space}]if\p{space}|[\;\p{space}]elsif\p{space}|[\;\p{space}]while\p{space}|[\;\p{space}]unless\p{space}|[\;\p{space}]when\p{space}|[\;\p{space}]assert_match\p{space}|[\;\p{space}]or\p{space}|[\;\p{space}]and\p{space}|[\;\p{space}]not\p{space}|[\.\p{space}]index\p{space}|[\.\p{space}]scan\p{space}|[\.\p{space}]sub\p{space}|[\.\p{space}]sub!\p{space}|[\.\p{space}]gsub\p{space}|[\.\p{space}]gsub!\p{space}|[\.\p{space}]match\p{space})|(?<=^(?:when|if|elsif|while|unless)\p{space}))\p{space}*((\/))(?![\*\+\?\{\}])/dgv,captures:{"1":{name:"string.regexp.classic.crystal"},"2":{name:"punctuation.definition.string.crystal"}},contentName:"string.regexp.classic.crystal",end:/((\/[imsx]*))/dgv,patterns:[{include:"#regex_sub"}]},{begin:/%r\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\}[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},{begin:/%r\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\][imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},{begin:/%r\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\)[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},{begin:/%r</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/>[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},{begin:/%r\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\|[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"}]},{begin:/%Q?\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%Q?\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%Q?</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%Q?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.double.crystal.mod",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%Q\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/%[iqw]\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.crystal"},{include:"#nest_parens"}]},{begin:/%[iqw]</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.crystal"},{include:"#nest_ltgt"}]},{begin:/%[iqw]\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.crystal"},{include:"#nest_brackets"}]},{begin:/%[iqw]\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.crystal"},{include:"#nest_curly"}]},{begin:/%[iqw]\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\[^\n]/dgv}]},{captures:{"1":{name:"punctuation.definition.constant.crystal"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<!:)(:)(?:(?=([A-Z_a-z\\x80-\\u{10FFFF}][\\x80-\\u{10FFFF}\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?![\\=\\>])))\\3)?|===?|>[\\=\\>]?|<[\\<\\=]?|<=>|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\=\\?]?|@@?[A-Z_a-z\\x80-\\u{10FFFF}][\\x80-\\u{10FFFF}\\p{L}\\p{M}\\p{N}\\p{Pc}]*))\\2)","dgv",{"hiddenCaptures":[2,3]}),name:"constant.other.symbol.crystal"},{captures:{"1":{name:"punctuation.definition.constant.crystal"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=([A-Z_a-z\\x80-\\u{10FFFF}][\\x80-\\u{10FFFF}\\p{L}\\p{M}\\p{N}\\p{Pc}]*[\\!\\?]?))\\1)(:)(?!:)","dgv",{"hiddenCaptures":[1]}),name:"constant.other.symbol.crystal.19syntax"},{captures:{"1":{name:"punctuation.definition.comment.crystal"}},match:/(?:^[\t ]+)?(#)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.number-sign.crystal"},{match:/(?<!\}\})\b_([\p{L}\p{M}\p{N}\p{Pc}]+[\!\?]?)\b(?!\()/dgv,name:"comment.unused.crystal"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.html.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.html.crystal",patterns:[{include:"#heredoc"},{include:"text.html.basic"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.sql.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.sql.crystal",patterns:[{include:"#heredoc"},{include:"source.sql"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.css.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.css.crystal",patterns:[{include:"#heredoc"},{include:"source.css"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.c++.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.cplusplus.crystal",patterns:[{include:"#heredoc"},{include:"source.c++"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.c.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.c.crystal",patterns:[{include:"#heredoc"},{include:"source.c"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)J(?:S|AVASCRIPT))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.js.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.js.crystal",patterns:[{include:"#heredoc"},{include:"source.js"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.js.jquery.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.js.jquery.crystal",patterns:[{include:"#heredoc"},{include:"source.js.jquery"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SH(?:|ELL))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.shell.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.shell.crystal",patterns:[{include:"#heredoc"},{include:"source.shell"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CRYSTAL)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},contentName:"text.crystal.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.crystal.crystal",patterns:[{include:"#heredoc"},{include:"source.crystal"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-'([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)'))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\p{space}*\1\b()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.heredoc.crystal",patterns:[{include:"#heredoc"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<-([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\b))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},end:/\p{space}*\1\b()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.heredoc.crystal",patterns:[{include:"#heredoc"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/(?<=\{\p{space}??|[^0-9A-Z_a-z]do|^do|[^0-9A-Z_a-z]do\p{space}|^do\p{space})(\|)/dgv,captures:{"1":{name:"punctuation.separator.variable.crystal"}},end:/(?<!\|)(\|)(?!\|)/dgv,patterns:[{include:"source.crystal"},{match:/[A-Z_a-z][0-9A-Z_a-z]*/dgv,name:"variable.other.block.crystal"},{match:/,/dgv,name:"punctuation.separator.variable.crystal"}]},{match:/=>/dgv,name:"punctuation.separator.key-value"},{match:/->/dgv,name:"support.function.kernel.crystal"},{match:/<<=|%=|&{1,2}=|\*=|\*\*=|\+=|-=|\^=|\|{1,2}=|<</dgv,name:"keyword.operator.assignment.augmented.crystal"},{match:/<=>|<(?![\<\=])|>(?![\<\=\>])|<=|>=|===?|=~|!=|!~|(?<=[\t ])\?/dgv,name:"keyword.operator.comparison.crystal"},{match:/(?<=^|[\t ])!|&&|\|\||\^/dgv,name:"keyword.operator.logical.crystal"},{match:/(\{%|%\}|\{\{|\}\})/dgv,name:"keyword.operator.macro.crystal"},{captures:{"1":{name:"punctuation.separator.method.crystal"}},match:/(&\.)\p{space}*(?![A-Z])/dgv},{match:/([\%\&]|\*\*|[\-\*\+\/])/dgv,name:"keyword.operator.arithmetic.crystal"},{match:/=/dgv,name:"keyword.operator.assignment.crystal"},{match:/[\|\~]|>>/dgv,name:"keyword.operator.other.crystal"},{match:/:/dgv,name:"punctuation.separator.other.crystal"},{match:/;/dgv,name:"punctuation.separator.statement.crystal"},{match:/,/dgv,name:"punctuation.separator.object.crystal"},{match:/\.|::/dgv,name:"punctuation.separator.method.crystal"},{match:/[\{\}]/dgv,name:"punctuation.section.scope.crystal"},{match:/[\]\[]/dgv,name:"punctuation.section.array.crystal"},{match:/[\(\)]/dgv,name:"punctuation.section.function.crystal"},{begin:/(?=[\!0-9\?A-Z_a-z]+\()/dgv,end:/(?<=\))/dgv,name:"meta.function-call.crystal",patterns:[{match:/([\!0-9\?A-Z_a-z]+)(?=\()/dgv,name:"entity.name.function.crystal"},{include:"$self"}]},{match:/((?<=[^\p{L}\p{M}\p{N}\p{Pc}])\b|^)[\p{L}\p{M}\p{N}\p{Pc}]+\b(?=\p{space}*([\]\$\)-\/\=\^\}]|<\p{space}|<<[\.\|\p{space}]))/dgv,name:"variable.other.crystal"}],repository:{escaped_char:{match:/\\(?:[0-7]{1,3}|x\p{AHex}{2}|u\p{AHex}{4}|u\{[ \p{AHex}]+\}|[^\n])/dgv,name:"constant.character.escape.crystal"},heredoc:{begin:/^<<-?[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,end:/(?=\n?$)/dgv,patterns:[{include:"$self"}]},interpolated_crystal:{patterns:[{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.crystal"}},contentName:"source.crystal",end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.crystal"},"1":{name:"source.crystal"}},name:"meta.embedded.line.crystal",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}],repository:{nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]}}},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#@@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#\$)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.crystal"}]},nest_brackets:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#nest_brackets"}]},nest_brackets_i:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},nest_brackets_r:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]},nest_curly_i:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},nest_curly_r:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},nest_ltgt:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#nest_ltgt"}]},nest_ltgt_i:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},nest_ltgt_r:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},nest_parens:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#nest_parens"}]},nest_parens_i:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},nest_parens_r:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},regex_sub:{patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{captures:{"1":{name:"punctuation.definition.arbitrary-repetition.crystal"},"3":{name:"punctuation.definition.arbitrary-repetition.crystal"}},match:/(\{)\p{Nd}+(,\p{Nd}+)?(\})/dgv,name:"string.regexp.arbitrary-repetition.crystal"},{begin:/\[(?:\^?\])?/dgv,captures:{"0":{name:"punctuation.definition.character-class.crystal"}},end:/\]/dgv,name:"string.regexp.character-class.crystal",patterns:[{include:"#escaped_char"}]},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.crystal"}},end:/\)/dgv,name:"string.regexp.group.crystal",patterns:[{include:"#regex_sub"}]},{captures:{"1":{name:"punctuation.definition.comment.crystal"}},match:/(?<=^|\p{space})(#)\p{space}[\-\t \!\,\.0-9\?A-Za-z[^\x00-\x7F]]*(?=\n?$)/dgv,name:"comment.line.number-sign.crystal"}]}},scopeName:"source.crystal",embeddedLangs:["html","sql","css","c","javascript","shellscript"],aliases:undefined})
10
10
 
11
11
  export default [
12
12
  ...html,