@shikijs/langs 1.26.0 → 1.26.2

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 (200) 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-let-declaration.mjs +1 -1
  6. package/dist/angular-ts.mjs +1 -1
  7. package/dist/apex.mjs +1 -1
  8. package/dist/apl.mjs +1 -1
  9. package/dist/applescript.mjs +1 -1
  10. package/dist/ara.mjs +1 -1
  11. package/dist/asciidoc.mjs +1 -1
  12. package/dist/asm.mjs +1 -1
  13. package/dist/astro.mjs +1 -1
  14. package/dist/awk.mjs +1 -1
  15. package/dist/ballerina.mjs +1 -1
  16. package/dist/bat.mjs +1 -1
  17. package/dist/beancount.mjs +1 -1
  18. package/dist/berry.mjs +1 -1
  19. package/dist/bibtex.mjs +1 -1
  20. package/dist/bicep.mjs +1 -1
  21. package/dist/blade.mjs +1 -1
  22. package/dist/c.mjs +1 -1
  23. package/dist/cadence.mjs +1 -1
  24. package/dist/cairo.mjs +1 -1
  25. package/dist/clarity.mjs +1 -1
  26. package/dist/clojure.mjs +1 -1
  27. package/dist/cobol.mjs +1 -1
  28. package/dist/codeql.mjs +1 -1
  29. package/dist/coffee.mjs +1 -1
  30. package/dist/common-lisp.mjs +1 -1
  31. package/dist/coq.mjs +1 -1
  32. package/dist/cpp-macro.mjs +1 -1
  33. package/dist/cpp.mjs +1 -1
  34. package/dist/crystal.mjs +1 -1
  35. package/dist/csharp.mjs +1 -1
  36. package/dist/css.mjs +1 -1
  37. package/dist/cue.mjs +1 -1
  38. package/dist/cypher.mjs +1 -1
  39. package/dist/d.mjs +1 -1
  40. package/dist/dart.mjs +1 -1
  41. package/dist/dax.mjs +1 -1
  42. package/dist/diff.mjs +1 -1
  43. package/dist/dotenv.mjs +1 -1
  44. package/dist/dream-maker.mjs +1 -1
  45. package/dist/edge.mjs +1 -1
  46. package/dist/elixir.mjs +1 -1
  47. package/dist/elm.mjs +1 -1
  48. package/dist/emacs-lisp.mjs +1 -1
  49. package/dist/erlang.mjs +1 -1
  50. package/dist/es-tag-css.mjs +1 -1
  51. package/dist/es-tag-glsl.mjs +1 -1
  52. package/dist/es-tag-html.mjs +1 -1
  53. package/dist/es-tag-sql.mjs +1 -1
  54. package/dist/es-tag-xml.mjs +1 -1
  55. package/dist/fennel.mjs +1 -1
  56. package/dist/fish.mjs +1 -1
  57. package/dist/fluent.mjs +1 -1
  58. package/dist/fortran-free-form.mjs +1 -1
  59. package/dist/fsharp.mjs +1 -1
  60. package/dist/gdresource.mjs +1 -1
  61. package/dist/gdscript.mjs +1 -1
  62. package/dist/gdshader.mjs +1 -1
  63. package/dist/genie.mjs +1 -1
  64. package/dist/git-commit.mjs +1 -1
  65. package/dist/gleam.mjs +1 -1
  66. package/dist/glimmer-js.mjs +1 -1
  67. package/dist/glimmer-ts.mjs +1 -1
  68. package/dist/gnuplot.mjs +1 -1
  69. package/dist/go.mjs +1 -1
  70. package/dist/graphql.mjs +1 -1
  71. package/dist/groovy.mjs +1 -1
  72. package/dist/hack.mjs +1 -1
  73. package/dist/haml.mjs +1 -1
  74. package/dist/handlebars.mjs +1 -1
  75. package/dist/haskell.mjs +1 -1
  76. package/dist/haxe.mjs +1 -1
  77. package/dist/hcl.mjs +1 -1
  78. package/dist/hjson.mjs +1 -1
  79. package/dist/hlsl.mjs +1 -1
  80. package/dist/html.mjs +1 -1
  81. package/dist/http.mjs +1 -1
  82. package/dist/hy.mjs +1 -1
  83. package/dist/imba.mjs +1 -1
  84. package/dist/index.d.mts +3 -1
  85. package/dist/index.mjs +90 -6
  86. package/dist/java.mjs +1 -1
  87. package/dist/javascript.mjs +1 -1
  88. package/dist/jinja.mjs +1 -1
  89. package/dist/jison.mjs +1 -1
  90. package/dist/json.mjs +1 -1
  91. package/dist/json5.mjs +1 -1
  92. package/dist/jsonc.mjs +1 -1
  93. package/dist/jsonl.mjs +1 -1
  94. package/dist/jsonnet.mjs +1 -1
  95. package/dist/jssm.mjs +1 -1
  96. package/dist/jsx.mjs +1 -1
  97. package/dist/julia.mjs +1 -1
  98. package/dist/kotlin.mjs +1 -1
  99. package/dist/kusto.mjs +1 -1
  100. package/dist/latex.mjs +1 -1
  101. package/dist/lean.mjs +1 -1
  102. package/dist/less.mjs +1 -1
  103. package/dist/liquid.mjs +1 -1
  104. package/dist/log.mjs +1 -1
  105. package/dist/logo.mjs +1 -1
  106. package/dist/lua.mjs +1 -1
  107. package/dist/luau.mjs +1 -1
  108. package/dist/make.mjs +1 -1
  109. package/dist/markdown.mjs +1 -1
  110. package/dist/marko.mjs +1 -1
  111. package/dist/matlab.mjs +1 -1
  112. package/dist/mdc.mjs +1 -1
  113. package/dist/mdx.mjs +1 -1
  114. package/dist/mermaid.mjs +1 -1
  115. package/dist/mipsasm.mjs +1 -1
  116. package/dist/mojo.mjs +1 -1
  117. package/dist/move.mjs +1 -1
  118. package/dist/nextflow.mjs +1 -1
  119. package/dist/nginx.mjs +1 -1
  120. package/dist/nim.mjs +1 -1
  121. package/dist/nix.mjs +1 -1
  122. package/dist/nushell.mjs +1 -1
  123. package/dist/objective-c.mjs +1 -1
  124. package/dist/objective-cpp.mjs +1 -1
  125. package/dist/ocaml.mjs +1 -1
  126. package/dist/perl.mjs +1 -1
  127. package/dist/php.mjs +1 -1
  128. package/dist/polar.mjs +1 -1
  129. package/dist/postcss.mjs +1 -1
  130. package/dist/powerquery.mjs +1 -1
  131. package/dist/powershell.mjs +1 -1
  132. package/dist/prisma.mjs +1 -1
  133. package/dist/prolog.mjs +1 -1
  134. package/dist/proto.mjs +1 -1
  135. package/dist/pug.mjs +1 -1
  136. package/dist/puppet.mjs +1 -1
  137. package/dist/purescript.mjs +1 -1
  138. package/dist/python.mjs +1 -1
  139. package/dist/qml.mjs +1 -1
  140. package/dist/r.mjs +1 -1
  141. package/dist/racket.mjs +1 -1
  142. package/dist/raku.mjs +1 -1
  143. package/dist/razor.mjs +1 -1
  144. package/dist/reg.mjs +1 -1
  145. package/dist/regexp.mjs +1 -1
  146. package/dist/rel.mjs +1 -1
  147. package/dist/riscv.mjs +1 -1
  148. package/dist/rst.mjs +1 -1
  149. package/dist/ruby.mjs +1 -1
  150. package/dist/rust.mjs +1 -1
  151. package/dist/sas.mjs +1 -1
  152. package/dist/sass.mjs +1 -1
  153. package/dist/scala.mjs +1 -1
  154. package/dist/scheme.mjs +1 -1
  155. package/dist/scss.mjs +1 -1
  156. package/dist/shaderlab.mjs +1 -1
  157. package/dist/shellscript.mjs +1 -1
  158. package/dist/smalltalk.mjs +1 -1
  159. package/dist/solidity.mjs +1 -1
  160. package/dist/soy.mjs +1 -1
  161. package/dist/sparql.mjs +1 -1
  162. package/dist/splunk.mjs +1 -1
  163. package/dist/sql.mjs +1 -1
  164. package/dist/ssh-config.mjs +1 -1
  165. package/dist/stata.mjs +1 -1
  166. package/dist/stylus.mjs +1 -1
  167. package/dist/svelte.mjs +1 -1
  168. package/dist/swift.mjs +1 -1
  169. package/dist/system-verilog.mjs +1 -1
  170. package/dist/systemd.mjs +1 -1
  171. package/dist/talonscript.mjs +1 -1
  172. package/dist/tcl.mjs +1 -1
  173. package/dist/templ.mjs +1 -1
  174. package/dist/terraform.mjs +1 -1
  175. package/dist/tex.mjs +1 -1
  176. package/dist/toml.mjs +1 -1
  177. package/dist/tsx.mjs +1 -1
  178. package/dist/turtle.mjs +1 -1
  179. package/dist/twig.mjs +1 -1
  180. package/dist/typescript.mjs +1 -1
  181. package/dist/typespec.mjs +1 -1
  182. package/dist/typst.mjs +1 -1
  183. package/dist/v.mjs +1 -1
  184. package/dist/vala.mjs +1 -1
  185. package/dist/vb.mjs +1 -1
  186. package/dist/verilog.mjs +1 -1
  187. package/dist/vhdl.mjs +1 -1
  188. package/dist/viml.mjs +1 -1
  189. package/dist/vue-html.mjs +1 -1
  190. package/dist/vue.mjs +1 -1
  191. package/dist/vyper.mjs +1 -1
  192. package/dist/wasm.mjs +1 -1
  193. package/dist/wgsl.mjs +1 -1
  194. package/dist/wikitext.mjs +1 -1
  195. package/dist/wolfram.mjs +1 -1
  196. package/dist/xml.mjs +1 -1
  197. package/dist/yaml.mjs +1 -1
  198. package/dist/zenscript.mjs +1 -1
  199. package/dist/zig.mjs +1 -1
  200. package/package.json +3 -3
package/dist/liquid.mjs CHANGED
@@ -3,7 +3,7 @@ import css from './css.mjs'
3
3
  import json from './json.mjs'
4
4
  import javascript from './javascript.mjs'
5
5
 
6
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"Liquid\",\"fileTypes\":[\"liquid\"],\"foldingStartMarker\":\"{%-?\\\\s*(capture|case|comment|for|form|if|javascript|paginate|schema|style)[^(%})]+%}\",\"foldingStopMarker\":\"{%\\\\s*(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)[^(%})]+%}\",\"injections\":{\"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted\":{\"patterns\":[{\"include\":\"#injection\"}]}},\"name\":\"liquid\",\"patterns\":[{\"include\":\"#core\"}],\"repository\":{\"attribute\":{\"begin\":\"\\\\w+:\",\"beginCaptures\":{\"0\":{\"name\":\"entity.other.attribute-name.liquid\"}},\"end\":\"(?=,|%}|}}|\\\\|)\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"attribute_liquid\":{\"begin\":\"\\\\w+:\",\"beginCaptures\":{\"0\":{\"name\":\"entity.other.attribute-name.liquid\"}},\"end\":\"(?=,|\\\\|)|$\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"comment_block\":{\"begin\":\"{%-?\\\\s*comment\\\\s*-?%}\",\"end\":\"{%-?\\\\s*endcomment\\\\s*-?%}\",\"name\":\"comment.block.liquid\",\"patterns\":[{\"include\":\"#comment_block\"},{\"match\":\"(.(?!{%-?\\\\s*(comment|endcomment)\\\\s*-?%}))*.\"}]},\"core\":{\"patterns\":[{\"include\":\"#raw_tag\"},{\"include\":\"#doc_tag\"},{\"include\":\"#comment_block\"},{\"include\":\"#style_codefence\"},{\"include\":\"#stylesheet_codefence\"},{\"include\":\"#json_codefence\"},{\"include\":\"#javascript_codefence\"},{\"include\":\"#object\"},{\"include\":\"#tag\"},{\"include\":\"text.html.basic\"}]},\"doc_tag\":{\"begin\":\"{%-?\\\\s*(doc)\\\\s*-?%}\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.liquid\"},\"1\":{\"name\":\"entity.name.tag.doc.liquid\"}},\"contentName\":\"comment.block.documentation.liquid\",\"end\":\"{%-?\\\\s*(enddoc)\\\\s*-?%}\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.liquid\"},\"1\":{\"name\":\"entity.name.tag.doc.liquid\"}},\"name\":\"meta.block.doc.liquid\",\"patterns\":[{\"include\":\"#liquid_doc_param_tag\"},{\"include\":\"#liquid_doc_example_tag\"},{\"include\":\"#liquid_doc_fallback_tag\"}]},\"filter\":{\"captures\":{\"1\":{\"name\":\"support.function.liquid\"}},\"match\":\"\\\\|\\\\s*((?![\\\\.0-9])[a-zA-Z0-9_-]+:?)\\\\s*\"},\"injection\":{\"patterns\":[{\"include\":\"#raw_tag\"},{\"include\":\"#comment_block\"},{\"include\":\"#object\"},{\"include\":\"#tag_injection\"}]},\"invalid_range\":{\"match\":\"\\\\((.(?!\\\\.\\\\.))+\\\\)\",\"name\":\"invalid.illegal.range.liquid\"},\"javascript_codefence\":{\"begin\":\"({%-?)\\\\s*(javascript)\\\\s*(-?%})\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.javascript.start.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.liquid\"},\"2\":{\"name\":\"entity.name.tag.javascript.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"contentName\":\"meta.embedded.block.js\",\"end\":\"({%-?)\\\\s*(endjavascript)\\\\s*(-?%})\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.javascript.end.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.end.liquid\"},\"2\":{\"name\":\"entity.name.tag.javascript.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.block.javascript.liquid\",\"patterns\":[{\"include\":\"source.js\"}]},\"json_codefence\":{\"begin\":\"({%-?)\\\\s*(schema)\\\\s*(-?%})\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.schema.start.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.liquid\"},\"2\":{\"name\":\"entity.name.tag.schema.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"contentName\":\"meta.embedded.block.json\",\"end\":\"({%-?)\\\\s*(endschema)\\\\s*(-?%})\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.schema.end.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.end.liquid\"},\"2\":{\"name\":\"entity.name.tag.schema.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.block.schema.liquid\",\"patterns\":[{\"include\":\"source.json\"}]},\"language_constant\":{\"match\":\"\\\\b(false|true|nil|blank)\\\\b|empty(?!\\\\?)\",\"name\":\"constant.language.liquid\"},\"liquid_doc_example_tag\":{\"captures\":{\"1\":{\"name\":\"storage.type.class.liquid\"}},\"match\":\"(@example)\\\\b\"},\"liquid_doc_fallback_tag\":{\"captures\":{\"1\":{\"name\":\"storage.type.class.liquid\"}},\"match\":\"(@\\\\w+)\\\\b\"},\"liquid_doc_param_tag\":{\"captures\":{\"1\":{\"name\":\"storage.type.class.liquid\"},\"2\":{\"name\":\"entity.name.type.instance.liquid\"},\"3\":{\"name\":\"variable.other.liquid\"}},\"match\":\"(@param)\\\\s+(?:({[^}]*}?)\\\\s+)?([a-zA-Z_]\\\\w*)?\"},\"number\":{\"match\":\"((-|\\\\+)\\\\s*)?\\\\d+(\\\\.\\\\d+)?\",\"name\":\"constant.numeric.liquid\"},\"object\":{\"begin\":\"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){{-?\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"end\":\"-?}}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.object.liquid\",\"patterns\":[{\"include\":\"#filter\"},{\"include\":\"#attribute\"},{\"include\":\"#value_expression\"}]},\"operator\":{\"captures\":{\"1\":{\"name\":\"keyword.operator.expression.liquid\"}},\"match\":\"(?:(?<=\\\\s)|\\\\b)(==|!=|>|<|>=|<=|or|and|contains)(?:(?=\\\\s)|\\\\b)\"},\"range\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.begin.liquid\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.liquid\"}},\"name\":\"meta.range.liquid\",\"patterns\":[{\"match\":\"\\\\.\\\\.\",\"name\":\"punctuation.range.liquid\"},{\"include\":\"#variable_lookup\"},{\"include\":\"#number\"}]},\"raw_tag\":{\"begin\":\"{%-?\\\\s*(raw)\\\\s*-?%}\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"contentName\":\"string.unquoted.liquid\",\"end\":\"{%-?\\\\s*(endraw)\\\\s*-?%}\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"name\":\"meta.entity.tag.raw.liquid\",\"patterns\":[{\"match\":\"(.(?!{%-?\\\\s*endraw\\\\s*-?%}))*.\"}]},\"string\":{\"patterns\":[{\"include\":\"#string_single\"},{\"include\":\"#string_double\"}]},\"string_double\":{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.liquid\"},\"string_single\":{\"begin\":\"'\",\"end\":\"'\",\"name\":\"string.quoted.single.liquid\"},\"style_codefence\":{\"begin\":\"({%-?)\\\\s*(style)\\\\s*(-?%})\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.start.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.liquid\"},\"2\":{\"name\":\"entity.name.tag.style.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"contentName\":\"meta.embedded.block.css\",\"end\":\"({%-?)\\\\s*(endstyle)\\\\s*(-?%})\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.end.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.end.liquid\"},\"2\":{\"name\":\"entity.name.tag.style.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.block.style.liquid\",\"patterns\":[{\"include\":\"source.css\"}]},\"stylesheet_codefence\":{\"begin\":\"({%-?)\\\\s*(stylesheet)\\\\s*(-?%})\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.start.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.liquid\"},\"2\":{\"name\":\"entity.name.tag.style.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"contentName\":\"meta.embedded.block.css\",\"end\":\"({%-?)\\\\s*(endstylesheet)\\\\s*(-?%})\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.end.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.end.liquid\"},\"2\":{\"name\":\"entity.name.tag.style.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.block.style.liquid\",\"patterns\":[{\"include\":\"source.css\"}]},\"tag\":{\"begin\":\"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"end\":\"-?%}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.tag.liquid\",\"patterns\":[{\"include\":\"#tag_body\"}]},\"tag_assign\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(assign|echo)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.liquid\",\"patterns\":[{\"include\":\"#filter\"},{\"include\":\"#attribute\"},{\"include\":\"#value_expression\"}]},\"tag_assign_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(assign|echo)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.liquid\",\"patterns\":[{\"include\":\"#filter\"},{\"include\":\"#attribute_liquid\"},{\"include\":\"#value_expression\"}]},\"tag_body\":{\"patterns\":[{\"include\":\"#tag_liquid\"},{\"include\":\"#tag_assign\"},{\"include\":\"#tag_comment_inline\"},{\"include\":\"#tag_case\"},{\"include\":\"#tag_conditional\"},{\"include\":\"#tag_for\"},{\"include\":\"#tag_paginate\"},{\"include\":\"#tag_render\"},{\"include\":\"#tag_tablerow\"},{\"include\":\"#tag_expression\"}]},\"tag_case\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(case|when)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.case.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.case.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"tag_case_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(case|when)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.case.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.case.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"tag_comment_block_liquid\":{\"begin\":\"(?:^\\\\s*)(comment)\\\\b\",\"end\":\"(?:^\\\\s*)(endcomment)\\\\b\",\"name\":\"comment.block.liquid\",\"patterns\":[{\"include\":\"#tag_comment_block_liquid\"},{\"match\":\"(?:^\\\\s*)(?!(comment|endcomment)).*\"}]},\"tag_comment_inline\":{\"begin\":\"#\",\"end\":\"(?=%})\",\"name\":\"comment.line.number-sign.liquid\"},\"tag_comment_inline_liquid\":{\"begin\":\"(?:^\\\\s*)#.*\",\"end\":\"$\",\"name\":\"comment.line.number-sign.liquid\"},\"tag_conditional\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(if|elsif|unless)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.conditional.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"tag_conditional_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(if|elsif|unless)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.conditional.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"tag_expression\":{\"patterns\":[{\"include\":\"#tag_expression_without_arguments\"},{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(\\\\w+)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]}]},\"tag_expression_liquid\":{\"patterns\":[{\"include\":\"#tag_expression_without_arguments\"},{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(\\\\w+)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]}]},\"tag_expression_without_arguments\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.conditional.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(endunless|endif)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.loop.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(endfor|endtablerow|endpaginate)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.case.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(endcase)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.other.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(capture|case|comment|for|form|if|javascript|paginate|schema|style)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.other.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.other.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(else|break|continue)\\\\b\"}]},\"tag_for\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.for.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.for.liquid\",\"patterns\":[{\"include\":\"#tag_for_body\"}]},\"tag_for_body\":{\"patterns\":[{\"match\":\"\\\\b(in|reversed)\\\\b\",\"name\":\"keyword.control.liquid\"},{\"match\":\"\\\\b(offset|limit):\",\"name\":\"keyword.control.liquid\"},{\"include\":\"#value_expression\"}]},\"tag_for_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.for.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.for.liquid\",\"patterns\":[{\"include\":\"#tag_for_body\"}]},\"tag_injection\":{\"begin\":\"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?(?!-?\\\\s*(endstyle|endjavascript|endcomment|endraw))\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"end\":\"-?%}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.tag.liquid\",\"patterns\":[{\"include\":\"#tag_body\"}]},\"tag_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(liquid)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.liquid.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.liquid.liquid\",\"patterns\":[{\"include\":\"#tag_comment_block_liquid\"},{\"include\":\"#tag_comment_inline_liquid\"},{\"include\":\"#tag_assign_liquid\"},{\"include\":\"#tag_case_liquid\"},{\"include\":\"#tag_conditional_liquid\"},{\"include\":\"#tag_for_liquid\"},{\"include\":\"#tag_paginate_liquid\"},{\"include\":\"#tag_render_liquid\"},{\"include\":\"#tag_tablerow_liquid\"},{\"include\":\"#tag_expression_liquid\"}]},\"tag_paginate\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(paginate)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.paginate.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.paginate.liquid\",\"patterns\":[{\"include\":\"#tag_paginate_body\"}]},\"tag_paginate_body\":{\"patterns\":[{\"match\":\"\\\\b(by)\\\\b\",\"name\":\"keyword.control.liquid\"},{\"include\":\"#value_expression\"}]},\"tag_paginate_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(paginate)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.paginate.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.paginate.liquid\",\"patterns\":[{\"include\":\"#tag_paginate_body\"}]},\"tag_render\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(render)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.render.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.render.liquid\",\"patterns\":[{\"include\":\"#tag_render_special_keywords\"},{\"include\":\"#attribute\"},{\"include\":\"#value_expression\"}]},\"tag_render_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(render)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.render.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.render.liquid\",\"patterns\":[{\"include\":\"#tag_render_special_keywords\"},{\"include\":\"#attribute_liquid\"},{\"include\":\"#value_expression\"}]},\"tag_render_special_keywords\":{\"match\":\"\\\\b(with|as|for)\\\\b\",\"name\":\"keyword.control.other.liquid\"},\"tag_tablerow\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(tablerow)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.tablerow.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.tablerow.liquid\",\"patterns\":[{\"include\":\"#tag_tablerow_body\"}]},\"tag_tablerow_body\":{\"patterns\":[{\"match\":\"\\\\b(in)\\\\b\",\"name\":\"keyword.control.liquid\"},{\"match\":\"\\\\b(cols|offset|limit):\",\"name\":\"keyword.control.liquid\"},{\"include\":\"#value_expression\"}]},\"tag_tablerow_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(tablerow)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.tablerow.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.tablerow.liquid\",\"patterns\":[{\"include\":\"#tag_tablerow_body\"}]},\"value_expression\":{\"patterns\":[{\"captures\":{\"2\":{\"name\":\"invalid.illegal.filter.liquid\"},\"3\":{\"name\":\"invalid.illegal.filter.liquid\"}},\"match\":\"(\\\\[)(\\\\|)(?=[^\\\\]]*)(?=\\\\])\"},{\"match\":\"(?<=\\\\s)(\\\\+|-|\\\\/|\\\\*)(?=\\\\s)\",\"name\":\"invalid.illegal.filter.liquid\"},{\"include\":\"#language_constant\"},{\"include\":\"#operator\"},{\"include\":\"#invalid_range\"},{\"include\":\"#range\"},{\"include\":\"#number\"},{\"include\":\"#string\"},{\"include\":\"#variable_lookup\"}]},\"variable_lookup\":{\"patterns\":[{\"match\":\"\\\\b(additional_checkout_buttons|address|all_country_option_tags|all_products|article|articles|block|blog|blogs|canonical_url|cart|checkout|collection|collections|comment|content_for_additional_checkout_buttons|content_for_header|content_for_index|content_for_layout|country_option_tags|currency|current_page|current_tags|customer|customer_address|discount_allocation|discount_application|external_video|font|forloop|form|fulfillment|gift_card|handle|image|images|line_item|link|linklist|linklists|location|localization|metafield|model|model_source|order|page|page_description|page_image|page_title|pages|paginate|part|policy|powered_by_link|predictive_search|product|product_option|product_variant|recommendations|request|routes|script|scripts|search|section|selling_plan|selling_plan_allocation|selling_plan_group|settings|shipping_method|shop|shop_locale|store_availability|tablerow|tax_line|template|theme|transaction|unit_price_measurement|variant|video|video_source)\\\\b\",\"name\":\"variable.language.liquid\"},{\"match\":\"((?<=\\\\w:\\\\s)\\\\w+)\",\"name\":\"variable.parameter.liquid\"},{\"begin\":\"(?<=\\\\w)\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.begin.liquid\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.end.liquid\"}},\"name\":\"meta.brackets.liquid\",\"patterns\":[{\"include\":\"#string\"}]},{\"match\":\"(?<=(\\\\w|\\\\])\\\\.)([-\\\\w]+\\\\??)\",\"name\":\"variable.other.member.liquid\"},{\"match\":\"(?<=\\\\w)\\\\.(?=\\\\w)\",\"name\":\"punctuation.accessor.liquid\"},{\"match\":\"(?i)[a-z_](\\\\w|(?:-(?!\\\\}\\\\})))*\",\"name\":\"variable.other.liquid\"}]}},\"scopeName\":\"text.html.liquid\",\"embeddedLangs\":[\"html\",\"css\",\"json\",\"javascript\"]}"))
6
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Liquid\",\"fileTypes\":[\"liquid\"],\"foldingStartMarker\":\"{%-?\\\\s*(capture|case|comment|for|form|if|javascript|paginate|schema|style)[^(%})]+%}\",\"foldingStopMarker\":\"{%\\\\s*(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)[^(%})]+%}\",\"injections\":{\"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted\":{\"patterns\":[{\"include\":\"#injection\"}]}},\"name\":\"liquid\",\"patterns\":[{\"include\":\"#core\"}],\"repository\":{\"attribute\":{\"begin\":\"\\\\w+:\",\"beginCaptures\":{\"0\":{\"name\":\"entity.other.attribute-name.liquid\"}},\"end\":\"(?=,|%}|}}|\\\\|)\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"attribute_liquid\":{\"begin\":\"\\\\w+:\",\"beginCaptures\":{\"0\":{\"name\":\"entity.other.attribute-name.liquid\"}},\"end\":\"(?=,|\\\\|)|$\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"comment_block\":{\"begin\":\"{%-?\\\\s*comment\\\\s*-?%}\",\"end\":\"{%-?\\\\s*endcomment\\\\s*-?%}\",\"name\":\"comment.block.liquid\",\"patterns\":[{\"include\":\"#comment_block\"},{\"match\":\"(.(?!{%-?\\\\s*(comment|endcomment)\\\\s*-?%}))*.\"}]},\"core\":{\"patterns\":[{\"include\":\"#raw_tag\"},{\"include\":\"#doc_tag\"},{\"include\":\"#comment_block\"},{\"include\":\"#style_codefence\"},{\"include\":\"#stylesheet_codefence\"},{\"include\":\"#json_codefence\"},{\"include\":\"#javascript_codefence\"},{\"include\":\"#object\"},{\"include\":\"#tag\"},{\"include\":\"text.html.basic\"}]},\"doc_tag\":{\"begin\":\"{%-?\\\\s*(doc)\\\\s*-?%}\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.liquid\"},\"1\":{\"name\":\"entity.name.tag.doc.liquid\"}},\"contentName\":\"comment.block.documentation.liquid\",\"end\":\"{%-?\\\\s*(enddoc)\\\\s*-?%}\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.liquid\"},\"1\":{\"name\":\"entity.name.tag.doc.liquid\"}},\"name\":\"meta.block.doc.liquid\",\"patterns\":[{\"include\":\"#liquid_doc_param_tag\"},{\"include\":\"#liquid_doc_example_tag\"},{\"include\":\"#liquid_doc_fallback_tag\"}]},\"filter\":{\"captures\":{\"1\":{\"name\":\"support.function.liquid\"}},\"match\":\"\\\\|\\\\s*((?![\\\\.0-9])[a-zA-Z0-9_-]+\\\\:?)\\\\s*\"},\"injection\":{\"patterns\":[{\"include\":\"#raw_tag\"},{\"include\":\"#comment_block\"},{\"include\":\"#object\"},{\"include\":\"#tag_injection\"}]},\"invalid_range\":{\"match\":\"\\\\((.(?!\\\\.\\\\.))+\\\\)\",\"name\":\"invalid.illegal.range.liquid\"},\"javascript_codefence\":{\"begin\":\"({%-?)\\\\s*(javascript)\\\\s*(-?%})\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.javascript.start.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.liquid\"},\"2\":{\"name\":\"entity.name.tag.javascript.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"contentName\":\"meta.embedded.block.js\",\"end\":\"({%-?)\\\\s*(endjavascript)\\\\s*(-?%})\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.javascript.end.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.end.liquid\"},\"2\":{\"name\":\"entity.name.tag.javascript.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.block.javascript.liquid\",\"patterns\":[{\"include\":\"source.js\"}]},\"json_codefence\":{\"begin\":\"({%-?)\\\\s*(schema)\\\\s*(-?%})\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.schema.start.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.liquid\"},\"2\":{\"name\":\"entity.name.tag.schema.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"contentName\":\"meta.embedded.block.json\",\"end\":\"({%-?)\\\\s*(endschema)\\\\s*(-?%})\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.schema.end.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.end.liquid\"},\"2\":{\"name\":\"entity.name.tag.schema.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.block.schema.liquid\",\"patterns\":[{\"include\":\"source.json\"}]},\"language_constant\":{\"match\":\"\\\\b(false|true|nil|blank)\\\\b|empty(?!\\\\?)\",\"name\":\"constant.language.liquid\"},\"liquid_doc_example_tag\":{\"captures\":{\"1\":{\"name\":\"storage.type.class.liquid\"}},\"match\":\"(@example)\\\\b\"},\"liquid_doc_fallback_tag\":{\"captures\":{\"1\":{\"name\":\"storage.type.class.liquid\"}},\"match\":\"(@\\\\w+)\\\\b\"},\"liquid_doc_param_tag\":{\"captures\":{\"1\":{\"name\":\"storage.type.class.liquid\"},\"2\":{\"name\":\"entity.name.type.instance.liquid\"},\"3\":{\"name\":\"variable.other.liquid\"}},\"match\":\"(@param)\\\\s+(?:({[^}]*}?)\\\\s+)?([a-zA-Z_]\\\\w*)?\"},\"number\":{\"match\":\"((-|\\\\+)\\\\s*)?[0-9]+(\\\\.[0-9]+)?\",\"name\":\"constant.numeric.liquid\"},\"object\":{\"begin\":\"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){{-?\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"end\":\"-?}}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.object.liquid\",\"patterns\":[{\"include\":\"#filter\"},{\"include\":\"#attribute\"},{\"include\":\"#value_expression\"}]},\"operator\":{\"captures\":{\"1\":{\"name\":\"keyword.operator.expression.liquid\"}},\"match\":\"(?:(?<=\\\\s)|\\\\b)(\\\\=\\\\=|!\\\\=|\\\\>|\\\\<|\\\\>\\\\=|\\\\<\\\\=|or|and|contains)(?:(?=\\\\s)|\\\\b)\"},\"range\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.begin.liquid\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.liquid\"}},\"name\":\"meta.range.liquid\",\"patterns\":[{\"match\":\"\\\\.\\\\.\",\"name\":\"punctuation.range.liquid\"},{\"include\":\"#variable_lookup\"},{\"include\":\"#number\"}]},\"raw_tag\":{\"begin\":\"{%-?\\\\s*(raw)\\\\s*-?%}\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"contentName\":\"string.unquoted.liquid\",\"end\":\"{%-?\\\\s*(endraw)\\\\s*-?%}\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"name\":\"meta.entity.tag.raw.liquid\",\"patterns\":[{\"match\":\"(.(?!{%-?\\\\s*endraw\\\\s*-?%}))*.\"}]},\"string\":{\"patterns\":[{\"include\":\"#string_single\"},{\"include\":\"#string_double\"}]},\"string_double\":{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.liquid\"},\"string_single\":{\"begin\":\"'\",\"end\":\"'\",\"name\":\"string.quoted.single.liquid\"},\"style_codefence\":{\"begin\":\"({%-?)\\\\s*(style)\\\\s*(-?%})\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.start.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.liquid\"},\"2\":{\"name\":\"entity.name.tag.style.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"contentName\":\"meta.embedded.block.css\",\"end\":\"({%-?)\\\\s*(endstyle)\\\\s*(-?%})\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.end.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.end.liquid\"},\"2\":{\"name\":\"entity.name.tag.style.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.block.style.liquid\",\"patterns\":[{\"include\":\"source.css\"}]},\"stylesheet_codefence\":{\"begin\":\"({%-?)\\\\s*(stylesheet)\\\\s*(-?%})\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.start.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.liquid\"},\"2\":{\"name\":\"entity.name.tag.style.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"contentName\":\"meta.embedded.block.css\",\"end\":\"({%-?)\\\\s*(endstylesheet)\\\\s*(-?%})\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.end.liquid\"},\"1\":{\"name\":\"punctuation.definition.tag.end.liquid\"},\"2\":{\"name\":\"entity.name.tag.style.liquid\"},\"3\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.block.style.liquid\",\"patterns\":[{\"include\":\"source.css\"}]},\"tag\":{\"begin\":\"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.begin.liquid\"}},\"end\":\"-?%}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.tag.liquid\",\"patterns\":[{\"include\":\"#tag_body\"}]},\"tag_assign\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(assign|echo)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.liquid\",\"patterns\":[{\"include\":\"#filter\"},{\"include\":\"#attribute\"},{\"include\":\"#value_expression\"}]},\"tag_assign_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(assign|echo)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.liquid\",\"patterns\":[{\"include\":\"#filter\"},{\"include\":\"#attribute_liquid\"},{\"include\":\"#value_expression\"}]},\"tag_body\":{\"patterns\":[{\"include\":\"#tag_liquid\"},{\"include\":\"#tag_assign\"},{\"include\":\"#tag_comment_inline\"},{\"include\":\"#tag_case\"},{\"include\":\"#tag_conditional\"},{\"include\":\"#tag_for\"},{\"include\":\"#tag_paginate\"},{\"include\":\"#tag_render\"},{\"include\":\"#tag_tablerow\"},{\"include\":\"#tag_expression\"}]},\"tag_case\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(case|when)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.case.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.case.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"tag_case_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(case|when)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.case.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.case.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"tag_comment_block_liquid\":{\"begin\":\"(?:^\\\\s*)(comment)\\\\b\",\"end\":\"(?:^\\\\s*)(endcomment)\\\\b\",\"name\":\"comment.block.liquid\",\"patterns\":[{\"include\":\"#tag_comment_block_liquid\"},{\"match\":\"(?:^\\\\s*)(?!(comment|endcomment)).*\"}]},\"tag_comment_inline\":{\"begin\":\"#\",\"end\":\"(?=%})\",\"name\":\"comment.line.number-sign.liquid\"},\"tag_comment_inline_liquid\":{\"begin\":\"(?:^\\\\s*)#.*\",\"end\":\"$\",\"name\":\"comment.line.number-sign.liquid\"},\"tag_conditional\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(if|elsif|unless)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.conditional.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"tag_conditional_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(if|elsif|unless)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.conditional.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]},\"tag_expression\":{\"patterns\":[{\"include\":\"#tag_expression_without_arguments\"},{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(\\\\w+)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]}]},\"tag_expression_liquid\":{\"patterns\":[{\"include\":\"#tag_expression_without_arguments\"},{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(\\\\w+)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.liquid\",\"patterns\":[{\"include\":\"#value_expression\"}]}]},\"tag_expression_without_arguments\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.conditional.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(endunless|endif)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.loop.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(endfor|endtablerow|endpaginate)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.case.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(endcase)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.other.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(capture|case|comment|for|form|if|javascript|paginate|schema|style)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.other.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.other.liquid\"}},\"match\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(else|break|continue)\\\\b\"}]},\"tag_for\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.for.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.for.liquid\",\"patterns\":[{\"include\":\"#tag_for_body\"}]},\"tag_for_body\":{\"patterns\":[{\"match\":\"\\\\b(in|reversed)\\\\b\",\"name\":\"keyword.control.liquid\"},{\"match\":\"\\\\b(offset|limit):\",\"name\":\"keyword.control.liquid\"},{\"include\":\"#value_expression\"}]},\"tag_for_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.for.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.for.liquid\",\"patterns\":[{\"include\":\"#tag_for_body\"}]},\"tag_injection\":{\"begin\":\"(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?(?!-?\\\\s*(endstyle|endjavascript|endcomment|endraw))\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"end\":\"-?%}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag.end.liquid\"}},\"name\":\"meta.tag.liquid\",\"patterns\":[{\"include\":\"#tag_body\"}]},\"tag_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(liquid)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.liquid.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.liquid.liquid\",\"patterns\":[{\"include\":\"#tag_comment_block_liquid\"},{\"include\":\"#tag_comment_inline_liquid\"},{\"include\":\"#tag_assign_liquid\"},{\"include\":\"#tag_case_liquid\"},{\"include\":\"#tag_conditional_liquid\"},{\"include\":\"#tag_for_liquid\"},{\"include\":\"#tag_paginate_liquid\"},{\"include\":\"#tag_render_liquid\"},{\"include\":\"#tag_tablerow_liquid\"},{\"include\":\"#tag_expression_liquid\"}]},\"tag_paginate\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(paginate)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.paginate.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.paginate.liquid\",\"patterns\":[{\"include\":\"#tag_paginate_body\"}]},\"tag_paginate_body\":{\"patterns\":[{\"match\":\"\\\\b(by)\\\\b\",\"name\":\"keyword.control.liquid\"},{\"include\":\"#value_expression\"}]},\"tag_paginate_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(paginate)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.paginate.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.paginate.liquid\",\"patterns\":[{\"include\":\"#tag_paginate_body\"}]},\"tag_render\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(render)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.render.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.render.liquid\",\"patterns\":[{\"include\":\"#tag_render_special_keywords\"},{\"include\":\"#attribute\"},{\"include\":\"#value_expression\"}]},\"tag_render_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(render)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.tag.render.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.render.liquid\",\"patterns\":[{\"include\":\"#tag_render_special_keywords\"},{\"include\":\"#attribute_liquid\"},{\"include\":\"#value_expression\"}]},\"tag_render_special_keywords\":{\"match\":\"\\\\b(with|as|for)\\\\b\",\"name\":\"keyword.control.other.liquid\"},\"tag_tablerow\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(tablerow)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.tablerow.liquid\"}},\"end\":\"(?=%})\",\"name\":\"meta.entity.tag.tablerow.liquid\",\"patterns\":[{\"include\":\"#tag_tablerow_body\"}]},\"tag_tablerow_body\":{\"patterns\":[{\"match\":\"\\\\b(in)\\\\b\",\"name\":\"keyword.control.liquid\"},{\"match\":\"\\\\b(cols|offset|limit):\",\"name\":\"keyword.control.liquid\"},{\"include\":\"#value_expression\"}]},\"tag_tablerow_liquid\":{\"begin\":\"(?:(?:(?<={%)|(?<={%-)|^)\\\\s*)(tablerow)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.tablerow.liquid\"}},\"end\":\"$\",\"name\":\"meta.entity.tag.tablerow.liquid\",\"patterns\":[{\"include\":\"#tag_tablerow_body\"}]},\"value_expression\":{\"patterns\":[{\"captures\":{\"2\":{\"name\":\"invalid.illegal.filter.liquid\"},\"3\":{\"name\":\"invalid.illegal.filter.liquid\"}},\"match\":\"(\\\\[)(\\\\|)(?=[^\\\\]]*)(?=\\\\])\"},{\"match\":\"(?<=\\\\s)(\\\\+|\\\\-|\\\\/|\\\\*)(?=\\\\s)\",\"name\":\"invalid.illegal.filter.liquid\"},{\"include\":\"#language_constant\"},{\"include\":\"#operator\"},{\"include\":\"#invalid_range\"},{\"include\":\"#range\"},{\"include\":\"#number\"},{\"include\":\"#string\"},{\"include\":\"#variable_lookup\"}]},\"variable_lookup\":{\"patterns\":[{\"match\":\"\\\\b(additional_checkout_buttons|address|all_country_option_tags|all_products|article|articles|block|blog|blogs|canonical_url|cart|checkout|collection|collections|comment|content_for_additional_checkout_buttons|content_for_header|content_for_index|content_for_layout|country_option_tags|currency|current_page|current_tags|customer|customer_address|discount_allocation|discount_application|external_video|font|forloop|form|fulfillment|gift_card|handle|image|images|line_item|link|linklist|linklists|location|localization|metafield|model|model_source|order|page|page_description|page_image|page_title|pages|paginate|part|policy|powered_by_link|predictive_search|product|product_option|product_variant|recommendations|request|routes|script|scripts|search|section|selling_plan|selling_plan_allocation|selling_plan_group|settings|shipping_method|shop|shop_locale|store_availability|tablerow|tax_line|template|theme|transaction|unit_price_measurement|variant|video|video_source)\\\\b\",\"name\":\"variable.language.liquid\"},{\"match\":\"((?<=\\\\w\\\\:\\\\s)\\\\w+)\",\"name\":\"variable.parameter.liquid\"},{\"begin\":\"(?<=\\\\w)\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.begin.liquid\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.end.liquid\"}},\"name\":\"meta.brackets.liquid\",\"patterns\":[{\"include\":\"#string\"}]},{\"match\":\"(?<=(\\\\w|\\\\])\\\\.)([-\\\\w]+\\\\??)\",\"name\":\"variable.other.member.liquid\"},{\"match\":\"(?<=\\\\w)\\\\.(?=\\\\w)\",\"name\":\"punctuation.accessor.liquid\"},{\"match\":\"(?i)[a-z_](\\\\w|(?:-(?!\\\\}\\\\})))*\",\"name\":\"variable.other.liquid\"}]}},\"scopeName\":\"text.html.liquid\",\"embeddedLangs\":[\"html\",\"css\",\"json\",\"javascript\"]}"))
7
7
 
8
8
  export default [
9
9
  ...html,
package/dist/log.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"Log file\",\"fileTypes\":[\"log\"],\"name\":\"log\",\"patterns\":[{\"match\":\"\\\\b(Trace)\\\\b:\",\"name\":\"comment log.verbose\"},{\"match\":\"(?i)\\\\[(verbose|verb|vrb|vb|v)\\\\]\",\"name\":\"comment log.verbose\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bV\\\\b\",\"name\":\"comment log.verbose\"},{\"match\":\"\\\\b(DEBUG|Debug)\\\\b|(?i)\\\\b(debug):\",\"name\":\"markup.changed log.debug\"},{\"match\":\"(?i)\\\\[(debug|dbug|dbg|de|d)\\\\]\",\"name\":\"markup.changed log.debug\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bD\\\\b\",\"name\":\"markup.changed log.debug\"},{\"match\":\"\\\\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\\\\b|(?i)\\\\b(info|information):\",\"name\":\"markup.inserted log.info\"},{\"match\":\"(?i)\\\\[(information|info|inf|in|i)\\\\]\",\"name\":\"markup.inserted log.info\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bI\\\\b\",\"name\":\"markup.inserted log.info\"},{\"match\":\"\\\\b(WARNING|WARN|Warn|WW)\\\\b|(?i)\\\\b(warning):\",\"name\":\"markup.deleted log.warning\"},{\"match\":\"(?i)\\\\[(warning|warn|wrn|wn|w)\\\\]\",\"name\":\"markup.deleted log.warning\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bW\\\\b\",\"name\":\"markup.deleted log.warning\"},{\"match\":\"\\\\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\\\\b|(?i)\\\\b(error):\",\"name\":\"string.regexp, strong log.error\"},{\"match\":\"(?i)\\\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\\\\]\",\"name\":\"string.regexp, strong log.error\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bE\\\\b\",\"name\":\"string.regexp, strong log.error\"},{\"match\":\"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?=T|\\\\b)\",\"name\":\"comment log.date\"},{\"match\":\"(?<=(^|\\\\s))\\\\d{2}[^\\\\w\\\\s]\\\\d{2}[^\\\\w\\\\s]\\\\d{4}\\\\b\",\"name\":\"comment log.date\"},{\"match\":\"T?\\\\d{1,2}:\\\\d{2}(:\\\\d{2}([.,]\\\\d{1,})?)?(Z| ?[+-]\\\\d{1,2}:\\\\d{2})?\\\\b\",\"name\":\"comment log.date\"},{\"match\":\"T\\\\d{2}\\\\d{2}(\\\\d{2}([.,]\\\\d{1,})?)?(Z| ?[+-]\\\\d{1,2}\\\\d{2})?\\\\b\",\"name\":\"comment log.date\"},{\"match\":\"\\\\b([0-9a-fA-F]{40}|[0-9a-fA-F]{10}|[0-9a-fA-F]{7})\\\\b\",\"name\":\"constant.language\"},{\"match\":\"\\\\b[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}\\\\b\",\"name\":\"constant.language log.constant\"},{\"match\":\"\\\\b([0-9a-fA-F]{2,}[:-])+[0-9a-fA-F]{2,}+\\\\b\",\"name\":\"constant.language log.constant\"},{\"match\":\"\\\\b(\\\\d+|true|false|null)\\\\b\",\"name\":\"constant.language log.constant\"},{\"match\":\"\\\\b(0x[a-fA-F0-9]+)\\\\b\",\"name\":\"constant.language log.constant\"},{\"match\":\"\\\"[^\\\"]*\\\"\",\"name\":\"string log.string\"},{\"match\":\"(?<![\\\\w])'[^']*'\",\"name\":\"string log.string\"},{\"match\":\"\\\\b([a-zA-Z.]*Exception)\\\\b\",\"name\":\"string.regexp, emphasis log.exceptiontype\"},{\"begin\":\"^[\\\\t ]*at[\\\\t ]\",\"end\":\"$\",\"name\":\"string.key, emphasis log.exception\"},{\"match\":\"\\\\b[a-z]+://\\\\S+\\\\b/?\",\"name\":\"constant.language log.constant\"},{\"match\":\"(?<![\\\\w/\\\\\\\\])([\\\\w-]+\\\\.)+([\\\\w-])+(?![\\\\w/\\\\\\\\])\",\"name\":\"constant.language log.constant\"}],\"scopeName\":\"text.log\"}"))
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Log file\",\"fileTypes\":[\"log\"],\"name\":\"log\",\"patterns\":[{\"match\":\"\\\\b(Trace)\\\\b:\",\"name\":\"comment log.verbose\"},{\"match\":\"(?i)\\\\[(verbose|verb|vrb|vb|v)\\\\]\",\"name\":\"comment log.verbose\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bV\\\\b\",\"name\":\"comment log.verbose\"},{\"match\":\"\\\\b(DEBUG|Debug)\\\\b|(?i)\\\\b(debug)\\\\:\",\"name\":\"markup.changed log.debug\"},{\"match\":\"(?i)\\\\[(debug|dbug|dbg|de|d)\\\\]\",\"name\":\"markup.changed log.debug\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bD\\\\b\",\"name\":\"markup.changed log.debug\"},{\"match\":\"\\\\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\\\\b|(?i)\\\\b(info|information)\\\\:\",\"name\":\"markup.inserted log.info\"},{\"match\":\"(?i)\\\\[(information|info|inf|in|i)\\\\]\",\"name\":\"markup.inserted log.info\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bI\\\\b\",\"name\":\"markup.inserted log.info\"},{\"match\":\"\\\\b(WARNING|WARN|Warn|WW)\\\\b|(?i)\\\\b(warning)\\\\:\",\"name\":\"markup.deleted log.warning\"},{\"match\":\"(?i)\\\\[(warning|warn|wrn|wn|w)\\\\]\",\"name\":\"markup.deleted log.warning\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bW\\\\b\",\"name\":\"markup.deleted log.warning\"},{\"match\":\"\\\\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\\\\b|(?i)\\\\b(error)\\\\:\",\"name\":\"string.regexp, strong log.error\"},{\"match\":\"(?i)\\\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\\\\]\",\"name\":\"string.regexp, strong log.error\"},{\"match\":\"(?<=^[\\\\s\\\\d\\\\p]*)\\\\bE\\\\b\",\"name\":\"string.regexp, strong log.error\"},{\"match\":\"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?=T|\\\\b)\",\"name\":\"comment log.date\"},{\"match\":\"(?<=(^|\\\\s))\\\\d{2}[^\\\\w\\\\s]\\\\d{2}[^\\\\w\\\\s]\\\\d{4}\\\\b\",\"name\":\"comment log.date\"},{\"match\":\"T?\\\\d{1,2}:\\\\d{2}(:\\\\d{2}([.,]\\\\d{1,})?)?(Z| ?[+-]\\\\d{1,2}:\\\\d{2})?\\\\b\",\"name\":\"comment log.date\"},{\"match\":\"T\\\\d{2}\\\\d{2}(\\\\d{2}([.,]\\\\d{1,})?)?(Z| ?[+-]\\\\d{1,2}\\\\d{2})?\\\\b\",\"name\":\"comment log.date\"},{\"match\":\"\\\\b([0-9a-fA-F]{40}|[0-9a-fA-F]{10}|[0-9a-fA-F]{7})\\\\b\",\"name\":\"constant.language\"},{\"match\":\"\\\\b[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}\\\\b\",\"name\":\"constant.language log.constant\"},{\"match\":\"\\\\b([0-9a-fA-F]{2,}[:-])+[0-9a-fA-F]{2,}+\\\\b\",\"name\":\"constant.language log.constant\"},{\"match\":\"\\\\b([0-9]+|true|false|null)\\\\b\",\"name\":\"constant.language log.constant\"},{\"match\":\"\\\\b(0x[a-fA-F0-9]+)\\\\b\",\"name\":\"constant.language log.constant\"},{\"match\":\"\\\"[^\\\"]*\\\"\",\"name\":\"string log.string\"},{\"match\":\"(?<![\\\\w])'[^']*'\",\"name\":\"string log.string\"},{\"match\":\"\\\\b([a-zA-Z.]*Exception)\\\\b\",\"name\":\"string.regexp, emphasis log.exceptiontype\"},{\"begin\":\"^[\\\\t ]*at[\\\\t ]\",\"end\":\"$\",\"name\":\"string.key, emphasis log.exception\"},{\"match\":\"\\\\b[a-z]+://\\\\S+\\\\b/?\",\"name\":\"constant.language log.constant\"},{\"match\":\"(?<![\\\\w/\\\\\\\\])([\\\\w-]+\\\\.)+([\\\\w-])+(?![\\\\w/\\\\\\\\])\",\"name\":\"constant.language log.constant\"}],\"scopeName\":\"text.log\"}"))
2
2
 
3
3
  export default [
4
4
  lang
package/dist/logo.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"Logo\",\"fileTypes\":[],\"name\":\"logo\",\"patterns\":[{\"match\":\"^to [\\\\w.]+\",\"name\":\"entity.name.function.logo\"},{\"match\":\"continue|do\\\\.until|do\\\\.while|end|for(each)?|if(else|falsetrue|)|repeat|stop|until\",\"name\":\"keyword.control.logo\"},{\"match\":\"\\\\b(\\\\.defmacro|\\\\.eq|\\\\.macro|\\\\.maybeoutput|\\\\.setbf|\\\\.setfirst|\\\\.setitem|\\\\.setsegmentsize|allopen|allowgetset|and|apply|arc|arctan|arity|array|arrayp|arraytolist|ascii|ashift|back|background|backslashedp|beforep|bitand|bitnot|bitor|bitxor|buried|buriedp|bury|buryall|buryname|butfirst|butfirsts|butlast|bye|cascade|case|caseignoredp|catch|char|clean|clearscreen|cleartext|close|closeall|combine|cond|contents|copydef|cos|count|crossmap|cursor|define|definedp|dequeue|difference|dribble|edall|edit|editfile|edn|edns|edpl|edpls|edps|emptyp|eofp|epspict|equalp|erall|erase|erasefile|ern|erns|erpl|erpls|erps|erract|error|exp|fence|filep|fill|filter|find|first|firsts|forever|form|forward|fput|fullprintp|fullscreen|fulltext|gc|gensym|global|goto|gprop|greaterp|heading|help|hideturtle|home|ignore|int|invoke|iseq|item|keyp|label|last|left|lessp|list|listp|listtoarray|ln|load|loadnoisily|loadpict|local|localmake|log10|lowercase|lput|lshift|macroexpand|macrop|make|map|map.se|mdarray|mditem|mdsetitem|member|memberp|minus|modulo|name|namelist|namep|names|nodes|nodribble|norefresh|not|numberp|openappend|openread|openupdate|openwrite|or|output|palette|parse|pause|pen|pencolor|pendown|pendownp|penerase|penmode|penpaint|penreverse|pensize|penup|pick|plist|plistp|plists|pllist|po|poall|pon|pons|pop|popl|popls|pops|pos|pot|pots|power|pprop|prefix|primitivep|print|printdepthlimit|printwidthlimit|procedurep|procedures|product|push|queue|quoted|quotient|radarctan|radcos|radsin|random|rawascii|readchar|readchars|reader|readlist|readpos|readrawline|readword|redefp|reduce|refresh|remainder|remdup|remove|remprop|repcount|rerandom|reverse|right|round|rseq|run|runparse|runresult|save|savel|savepict|screenmode|scrunch|sentence|setbackground|setcursor|seteditor|setheading|sethelploc|setitem|setlibloc|setmargins|setpalette|setpen|setpencolor|setpensize|setpos|setprefix|setread|setreadpos|setscrunch|settemploc|settextcolor|setwrite|setwritepos|setx|setxy|sety|shell|show|shownp|showturtle|sin|splitscreen|sqrt|standout|startup|step|stepped|steppedp|substringp|sum|tag|test|text|textscreen|thing|throw|towards|trace|traced|tracedp|transfer|turtlemode|type|unbury|unburyall|unburyname|unburyonedit|unstep|untrace|uppercase|usealternatenam|wait|while|window|word|wordp|wrap|writepos|writer|xcor|ycor)\\\\b\",\"name\":\"keyword.other.logo\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.logo\"}},\"match\":\"(:)(?:\\\\|[^|]*\\\\||[-\\\\w.]*)+\",\"name\":\"variable.parameter.logo\"},{\"match\":\"\\\"(?:\\\\|[^|]*\\\\||[-\\\\w.]*)+\",\"name\":\"string.other.word.logo\"},{\"begin\":\"(^[ \\\\t]+)?(?=;)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.logo\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\";\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.logo\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.semicolon.logo\"}]}],\"scopeName\":\"source.logo\"}"))
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Logo\",\"fileTypes\":[],\"name\":\"logo\",\"patterns\":[{\"match\":\"^to [\\\\w.]+\",\"name\":\"entity.name.function.logo\"},{\"match\":\"continue|do\\\\.until|do\\\\.while|end|for(each)?|if(else|falsetrue|)|repeat|stop|until\",\"name\":\"keyword.control.logo\"},{\"match\":\"\\\\b(\\\\.defmacro|\\\\.eq|\\\\.macro|\\\\.maybeoutput|\\\\.setbf|\\\\.setfirst|\\\\.setitem|\\\\.setsegmentsize|allopen|allowgetset|and|apply|arc|arctan|arity|array|arrayp|arraytolist|ascii|ashift|back|background|backslashedp|beforep|bitand|bitnot|bitor|bitxor|buried|buriedp|bury|buryall|buryname|butfirst|butfirsts|butlast|bye|cascade|case|caseignoredp|catch|char|clean|clearscreen|cleartext|close|closeall|combine|cond|contents|copydef|cos|count|crossmap|cursor|define|definedp|dequeue|difference|dribble|edall|edit|editfile|edn|edns|edpl|edpls|edps|emptyp|eofp|epspict|equalp|erall|erase|erasefile|ern|erns|erpl|erpls|erps|erract|error|exp|fence|filep|fill|filter|find|first|firsts|forever|form|forward|fput|fullprintp|fullscreen|fulltext|gc|gensym|global|goto|gprop|greaterp|heading|help|hideturtle|home|ignore|int|invoke|iseq|item|keyp|label|last|left|lessp|list|listp|listtoarray|ln|load|loadnoisily|loadpict|local|localmake|log10|lowercase|lput|lshift|macroexpand|macrop|make|map|map.se|mdarray|mditem|mdsetitem|member|memberp|minus|modulo|name|namelist|namep|names|nodes|nodribble|norefresh|not|numberp|openappend|openread|openupdate|openwrite|or|output|palette|parse|pause|pen|pencolor|pendown|pendownp|penerase|penmode|penpaint|penreverse|pensize|penup|pick|plist|plistp|plists|pllist|po|poall|pon|pons|pop|popl|popls|pops|pos|pot|pots|power|pprop|prefix|primitivep|print|printdepthlimit|printwidthlimit|procedurep|procedures|product|push|queue|quoted|quotient|radarctan|radcos|radsin|random|rawascii|readchar|readchars|reader|readlist|readpos|readrawline|readword|redefp|reduce|refresh|remainder|remdup|remove|remprop|repcount|rerandom|reverse|right|round|rseq|run|runparse|runresult|save|savel|savepict|screenmode|scrunch|sentence|setbackground|setcursor|seteditor|setheading|sethelploc|setitem|setlibloc|setmargins|setpalette|setpen|setpencolor|setpensize|setpos|setprefix|setread|setreadpos|setscrunch|settemploc|settextcolor|setwrite|setwritepos|setx|setxy|sety|shell|show|shownp|showturtle|sin|splitscreen|sqrt|standout|startup|step|stepped|steppedp|substringp|sum|tag|test|text|textscreen|thing|throw|towards|trace|traced|tracedp|transfer|turtlemode|type|unbury|unburyall|unburyname|unburyonedit|unstep|untrace|uppercase|usealternatenam|wait|while|window|word|wordp|wrap|writepos|writer|xcor|ycor)\\\\b\",\"name\":\"keyword.other.logo\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.logo\"}},\"match\":\"(\\\\:)(?:\\\\|[^|]*\\\\||[-\\\\w.]*)+\",\"name\":\"variable.parameter.logo\"},{\"match\":\"\\\"(?:\\\\|[^|]*\\\\||[-\\\\w.]*)+\",\"name\":\"string.other.word.logo\"},{\"begin\":\"(^[ \\\\t]+)?(?=;)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.logo\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\";\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.logo\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.semicolon.logo\"}]}],\"scopeName\":\"source.logo\"}"))
2
2
 
3
3
  export default [
4
4
  lang
package/dist/lua.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import c from './c.mjs'
2
2
 
3
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"Lua\",\"name\":\"lua\",\"patterns\":[{\"begin\":\"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.local.lua\"},\"2\":{\"name\":\"keyword.control.lua\"}},\"end\":\"(?<=[)\\\\-{}\\\\[\\\\]\\\"'])\",\"name\":\"meta.function.lua\",\"patterns\":[{\"include\":\"#comment\"},{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.lua\"}},\"end\":\"(\\\\))|(?=[\\\\-\\\\.{}\\\\[\\\\]\\\"'])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.finish.lua\"}},\"name\":\"meta.parameter.lua\",\"patterns\":[{\"include\":\"#comment\"},{\"match\":\"[a-zA-Z_]\\\\w*\",\"name\":\"variable.parameter.function.lua\"},{\"match\":\",\",\"name\":\"punctuation.separator.arguments.lua\"},{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.separator.arguments.lua\"}},\"end\":\"(?=[),])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b\\\\s*(?=:)\",\"name\":\"entity.name.class.lua\"},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b\",\"name\":\"entity.name.function.lua\"}]},{\"match\":\"(?<![\\\\w\\\\d.])0[xX][0-9A-Fa-f]+(\\\\.[0-9A-Fa-f]*)?([eE]-?\\\\d*)?([pP][-+]\\\\d+)?\",\"name\":\"constant.numeric.float.hexadecimal.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])0[xX]\\\\.[0-9A-Fa-f]+([eE]-?\\\\d*)?([pP][-+]\\\\d+)?\",\"name\":\"constant.numeric.float.hexadecimal.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])\",\"name\":\"constant.numeric.integer.hexadecimal.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])\\\\d+(\\\\.\\\\d*)?([eE]-?\\\\d*)?\",\"name\":\"constant.numeric.float.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])\\\\.\\\\d+([eE]-?\\\\d*)?\",\"name\":\"constant.numeric.float.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])\\\\d+(?![pPeE.0-9])\",\"name\":\"constant.numeric.integer.lua\"},{\"include\":\"#string\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.lua\"}},\"match\":\"\\\\A(#!).*$\\\\n?\",\"name\":\"comment.line.shebang.lua\"},{\"include\":\"#comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.goto.lua\"},\"2\":{\"name\":\"string.tag.lua\"}},\"match\":\"\\\\b(goto)\\\\s+([a-zA-Z_]\\\\w*)\"},{\"captures\":{\"1\":{\"name\":\"punctuation.section.embedded.begin.lua\"},\"2\":{\"name\":\"punctuation.section.embedded.end.lua\"}},\"match\":\"(::)\\\\s*[a-zA-Z_]\\\\w*\\\\s*(::)\",\"name\":\"string.tag.lua\"},{\"captures\":{\"0\":{\"name\":\"storage.type.attribute.lua\"}},\"match\":\"<\\\\s*(const|close)\\\\s*>\"},{\"match\":\"<[a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*>\",\"name\":\"storage.type.generic.lua\"},{\"match\":\"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b\",\"name\":\"keyword.control.lua\"},{\"match\":\"\\\\b(local)\\\\b\",\"name\":\"keyword.local.lua\"},{\"match\":\"\\\\b(function)\\\\b(?![,:])\",\"name\":\"keyword.control.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(stdin|stdout|stderr)|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<![.])\\\\.{3}(?!\\\\.)\",\"name\":\"constant.language.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(self)\\\\b\",\"name\":\"variable.language.self.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))\",\"name\":\"support.function.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))\",\"name\":\"entity.name.tag.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\\\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\\\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\\\.(loadlib|seeall|searchpath)|debug\\\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\\\.(char|codes|codepoint|len|offset))\\\\b(?!\\\\s*=(?!=))\",\"name\":\"support.function.library.lua\"},{\"match\":\"\\\\b(and|or|not|\\\\|\\\\||\\\\&\\\\&|!)\\\\b\",\"name\":\"keyword.operator.lua\"},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b(?=\\\\s*(?:[({\\\"']|\\\\[\\\\[))\",\"name\":\"support.function.any-method.lua\"},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b(?=\\\\s*\\\\??:)\",\"name\":\"entity.name.class.lua\"},{\"match\":\"(?<=[^.]\\\\.|:)\\\\b([a-zA-Z_]\\\\w*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"entity.other.attribute.lua\"},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"variable.other.lua\"},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b(?=\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"entity.name.function.lua\"},{\"match\":\"\\\\+|-|%|#|\\\\*|\\\\/|\\\\^|==?|~=|!=|<=?|>=?|(?<!\\\\.)\\\\.{2}(?!\\\\.)\",\"name\":\"keyword.operator.lua\"}],\"repository\":{\"comment\":{\"patterns\":[{\"begin\":\"(^[ \\\\t]+)?(?=--)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.lua\"}},\"end\":\"(?!\\\\G)((?!^)[ \\\\t]+\\\\n)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.trailing.lua\"}},\"patterns\":[{\"begin\":\"--\\\\[(=*)\\\\[@@@\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"(--)?\\\\]\\\\1\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"\",\"patterns\":[{\"include\":\"source.lua\"}]},{\"begin\":\"--\\\\[(=*)\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"(--)?\\\\]\\\\1\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"comment.block.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]},{\"begin\":\"----\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.lua\"},{\"begin\":\"---\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.documentation.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]},{\"begin\":\"--\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.lua\",\"patterns\":[{\"include\":\"#ldoc_tag\"}]}]},{\"begin\":\"\\\\/\\\\*\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"\\\\*\\\\/\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"comment.block.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]}]},\"emmydoc\":{\"patterns\":[{\"begin\":\"(?<=---)[ \\\\t]*@class\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"match\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"name\":\"support.class.lua\"},{\"match\":\":|,\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@enum\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.lua\"}},\"end\":\"(?=\\\\n)\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@type\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@alias\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*(@operator)\\\\s*(\\\\b[a-z]+)?\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.annotation.lua\"},\"2\":{\"name\":\"support.function.library.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@cast\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.other.lua\"}},\"end\":\"(?=\\\\n)\",\"patterns\":[{\"include\":\"#emmydoc.type\"},{\"match\":\"([+-|])\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@param\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b(\\\\??)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.variable.lua\"},\"2\":{\"name\":\"keyword.operator.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@return\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"match\":\"\\\\?\",\"name\":\"keyword.operator.lua\"},{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@field\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"(\\\\b([a-zA-Z_]\\\\w*)\\\\b|(\\\\[))(\\\\??)\",\"beginCaptures\":{\"2\":{\"name\":\"entity.name.variable.lua\"},\"3\":{\"name\":\"keyword.operator.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#string\"},{\"include\":\"#emmydoc.type\"},{\"match\":\"\\\\]\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@generic\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.generic.lua\"}},\"end\":\"(?=\\\\n)|(,)\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.lua\"}},\"patterns\":[{\"match\":\":\",\"name\":\"keyword.operator.lua\"},{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@vararg\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@overload\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@deprecated\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@meta\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@private\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@protected\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@package\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@version\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"match\":\"\\\\b(5\\\\.1|5\\\\.2|5\\\\.3|5\\\\.4|JIT)\\\\b\",\"name\":\"support.class.lua\"},{\"match\":\",|>|<\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@see\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"match\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"name\":\"support.class.lua\"},{\"match\":\"#\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@diagnostic\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"([a-zA-Z_\\\\-0-9]+)[ \\\\t]*(:)?\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.unit\"},\"2\":{\"name\":\"keyword.operator.unit\"}},\"end\":\"(?=\\\\n)\",\"patterns\":[{\"match\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\-]*)\",\"name\":\"support.class.lua\"},{\"match\":\",\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@module\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#string\"}]},{\"match\":\"(?<=---)[ \\\\t]*@(async|nodiscard)\",\"name\":\"storage.type.annotation.lua\"},{\"begin\":\"(?<=---)\\\\|\\\\s*[>+]?\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#string\"}]}]},\"emmydoc.type\":{\"patterns\":[{\"begin\":\"\\\\bfun\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.lua\"}},\"end\":\"(?=[\\\\s#])\",\"patterns\":[{\"match\":\"[(),:?][ \\\\t]*\",\"name\":\"keyword.operator.lua\"},{\"match\":\"([a-zA-Z_][a-zA-Z0-9_\\\\.\\\\*\\\\[\\\\]<>\\\\,\\\\-]*)(?<!,)[ \\\\t]*(?=\\\\??:)\",\"name\":\"entity.name.variable.lua\"},{\"include\":\"#emmydoc.type\"},{\"include\":\"#string\"}]},{\"match\":\"<[a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*>\",\"name\":\"storage.type.generic.lua\"},{\"match\":\"\\\\basync\\\\b\",\"name\":\"entity.name.tag.lua\"},{\"match\":\"[{}:\\\\,?\\\\|\\\\`][ \\\\t]*\",\"name\":\"keyword.operator.lua\"},{\"begin\":\"(?=[a-zA-Z_\\\\.\\\\*\\\"'\\\\[])\",\"end\":\"(?=[\\\\s)\\\\,?:}\\\\|#])\",\"patterns\":[{\"match\":\"([a-zA-Z0-9_\\\\.\\\\*\\\\[\\\\]<>\\\\,\\\\-]+)(?<!,)[ \\\\t]*\",\"name\":\"support.type.lua\"},{\"match\":\"(\\\\.\\\\.\\\\.)[ \\\\t]*\",\"name\":\"constant.language.lua\"},{\"include\":\"#string\"}]}]},\"escaped_char\":{\"patterns\":[{\"match\":\"\\\\\\\\[abfnrtv\\\\\\\\\\\"'\\\\n]\",\"name\":\"constant.character.escape.lua\"},{\"match\":\"\\\\\\\\z[\\\\n\\\\t ]*\",\"name\":\"constant.character.escape.lua\"},{\"match\":\"\\\\\\\\\\\\d{1,3}\",\"name\":\"constant.character.escape.byte.lua\"},{\"match\":\"\\\\\\\\x[0-9A-Fa-f][0-9A-Fa-f]\",\"name\":\"constant.character.escape.byte.lua\"},{\"match\":\"\\\\\\\\u\\\\{[0-9A-Fa-f]+\\\\}\",\"name\":\"constant.character.escape.unicode.lua\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.illegal.character.escape.lua\"}]},\"ldoc_tag\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.block.tag.ldoc\"},\"2\":{\"name\":\"storage.type.class.ldoc\"}},\"match\":\"\\\\G[ \\\\t]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\\\b\"},\"string\":{\"patterns\":[{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"'[ \\\\t]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.single.lua\",\"patterns\":[{\"include\":\"#escaped_char\"}]},{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"\\\"[ \\\\t]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.double.lua\",\"patterns\":[{\"include\":\"#escaped_char\"}]},{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"`[ \\\\t]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.double.lua\"},{\"begin\":\"(?<=\\\\.cdef)\\\\s*(\\\\[(=*)\\\\[)\",\"beginCaptures\":{\"0\":{\"name\":\"string.quoted.other.multiline.lua\"},\"1\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"contentName\":\"meta.embedded.lua\",\"end\":\"(\\\\]\\\\2\\\\])[ \\\\t]*\",\"endCaptures\":{\"0\":{\"name\":\"string.quoted.other.multiline.lua\"},\"1\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"patterns\":[{\"include\":\"source.c\"}]},{\"begin\":\"(?<!--)\\\\[(=*)\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"\\\\]\\\\1\\\\][ \\\\t]*\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.other.multiline.lua\"}]}},\"scopeName\":\"source.lua\",\"embeddedLangs\":[\"c\"]}"))
3
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Lua\",\"name\":\"lua\",\"patterns\":[{\"begin\":\"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.local.lua\"},\"2\":{\"name\":\"keyword.control.lua\"}},\"end\":\"(?<=[\\\\)\\\\-{}\\\\[\\\\]\\\"'])\",\"name\":\"meta.function.lua\",\"patterns\":[{\"include\":\"#comment\"},{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.lua\"}},\"end\":\"(\\\\))|(?=[\\\\-\\\\.{}\\\\[\\\\]\\\"'])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.finish.lua\"}},\"name\":\"meta.parameter.lua\",\"patterns\":[{\"include\":\"#comment\"},{\"match\":\"[a-zA-Z_][a-zA-Z0-9_]*\",\"name\":\"variable.parameter.function.lua\"},{\"match\":\",\",\"name\":\"punctuation.separator.arguments.lua\"},{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.separator.arguments.lua\"}},\"end\":\"(?=[\\\\),])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\\\\s*(?=:)\",\"name\":\"entity.name.class.lua\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\",\"name\":\"entity.name.function.lua\"}]},{\"match\":\"(?<![\\\\w\\\\d.])0[xX][0-9A-Fa-f]+(\\\\.[0-9A-Fa-f]*)?([eE]-?\\\\d*)?([pP][-+]\\\\d+)?\",\"name\":\"constant.numeric.float.hexadecimal.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])0[xX]\\\\.[0-9A-Fa-f]+([eE]-?\\\\d*)?([pP][-+]\\\\d+)?\",\"name\":\"constant.numeric.float.hexadecimal.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])\",\"name\":\"constant.numeric.integer.hexadecimal.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])\\\\d+(\\\\.\\\\d*)?([eE]-?\\\\d*)?\",\"name\":\"constant.numeric.float.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])\\\\.\\\\d+([eE]-?\\\\d*)?\",\"name\":\"constant.numeric.float.lua\"},{\"match\":\"(?<![\\\\w\\\\d.])\\\\d+(?![pPeE.0-9])\",\"name\":\"constant.numeric.integer.lua\"},{\"include\":\"#string\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.lua\"}},\"match\":\"\\\\A(#!).*$\\\\n?\",\"name\":\"comment.line.shebang.lua\"},{\"include\":\"#comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.goto.lua\"},\"2\":{\"name\":\"string.tag.lua\"}},\"match\":\"\\\\b(goto)\\\\s+([a-zA-Z_][a-zA-Z0-9_]*)\"},{\"captures\":{\"1\":{\"name\":\"punctuation.section.embedded.begin.lua\"},\"2\":{\"name\":\"punctuation.section.embedded.end.lua\"}},\"match\":\"(::)\\\\s*[a-zA-Z_][a-zA-Z0-9_]*\\\\s*(::)\",\"name\":\"string.tag.lua\"},{\"captures\":{\"0\":{\"name\":\"storage.type.attribute.lua\"}},\"match\":\"<\\\\s*(const|close)\\\\s*>\"},{\"match\":\"\\\\<[a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*\\\\>\",\"name\":\"storage.type.generic.lua\"},{\"match\":\"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b\",\"name\":\"keyword.control.lua\"},{\"match\":\"\\\\b(local)\\\\b\",\"name\":\"keyword.local.lua\"},{\"match\":\"\\\\b(function)\\\\b(?![,:])\",\"name\":\"keyword.control.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(stdin|stdout|stderr)|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<![.])\\\\.{3}(?!\\\\.)\",\"name\":\"constant.language.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(self)\\\\b\",\"name\":\"variable.language.self.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))\",\"name\":\"support.function.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))\",\"name\":\"entity.name.tag.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\\\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\\\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\\\.(loadlib|seeall|searchpath)|debug\\\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\\\.(char|codes|codepoint|len|offset))\\\\b(?!\\\\s*=(?!=))\",\"name\":\"support.function.library.lua\"},{\"match\":\"\\\\b(and|or|not|\\\\|\\\\||\\\\&\\\\&|\\\\!)\\\\b\",\"name\":\"keyword.operator.lua\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(?=\\\\s*(?:[({\\\"']|\\\\[\\\\[))\",\"name\":\"support.function.any-method.lua\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(?=\\\\s*\\\\??:)\",\"name\":\"entity.name.class.lua\"},{\"match\":\"(?<=[^.]\\\\.|:)\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"entity.other.attribute.lua\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"variable.other.lua\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(?=\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"entity.name.function.lua\"},{\"match\":\"\\\\+|-|%|#|\\\\*|\\\\/|\\\\^|==?|~=|!=|<=?|>=?|(?<!\\\\.)\\\\.{2}(?!\\\\.)\",\"name\":\"keyword.operator.lua\"}],\"repository\":{\"comment\":{\"patterns\":[{\"begin\":\"(^[ \\\\t]+)?(?=--)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.lua\"}},\"end\":\"(?!\\\\G)((?!^)[ \\\\t]+\\\\n)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.trailing.lua\"}},\"patterns\":[{\"begin\":\"--\\\\[(=*)\\\\[@@@\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"(--)?\\\\]\\\\1\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"\",\"patterns\":[{\"include\":\"source.lua\"}]},{\"begin\":\"--\\\\[(=*)\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"(--)?\\\\]\\\\1\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"comment.block.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]},{\"begin\":\"----\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.lua\"},{\"begin\":\"---\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.documentation.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]},{\"begin\":\"--\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.lua\",\"patterns\":[{\"include\":\"#ldoc_tag\"}]}]},{\"begin\":\"\\\\/\\\\*\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"\\\\*\\\\/\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"comment.block.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]}]},\"emmydoc\":{\"patterns\":[{\"begin\":\"(?<=---)[ \\\\t]*@class\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"match\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"name\":\"support.class.lua\"},{\"match\":\":|,\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@enum\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.lua\"}},\"end\":\"(?=\\\\n)\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@type\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@alias\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*(@operator)\\\\s*(\\\\b[a-z]+)?\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.annotation.lua\"},\"2\":{\"name\":\"support.function.library.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@cast\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.other.lua\"}},\"end\":\"(?=\\\\n)\",\"patterns\":[{\"include\":\"#emmydoc.type\"},{\"match\":\"([+-|])\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@param\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(\\\\??)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.variable.lua\"},\"2\":{\"name\":\"keyword.operator.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@return\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"match\":\"\\\\?\",\"name\":\"keyword.operator.lua\"},{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@field\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"(\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b|(\\\\[))(\\\\??)\",\"beginCaptures\":{\"2\":{\"name\":\"entity.name.variable.lua\"},\"3\":{\"name\":\"keyword.operator.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#string\"},{\"include\":\"#emmydoc.type\"},{\"match\":\"\\\\]\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@generic\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.generic.lua\"}},\"end\":\"(?=\\\\n)|(,)\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.lua\"}},\"patterns\":[{\"match\":\":\",\"name\":\"keyword.operator.lua\"},{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@vararg\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@overload\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@deprecated\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@meta\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@private\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@protected\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@package\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\"},{\"begin\":\"(?<=---)[ \\\\t]*@version\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"match\":\"\\\\b(5\\\\.1|5\\\\.2|5\\\\.3|5\\\\.4|JIT)\\\\b\",\"name\":\"support.class.lua\"},{\"match\":\",|\\\\>|\\\\<\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@see\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"match\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*)\",\"name\":\"support.class.lua\"},{\"match\":\"#\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[ \\\\t]*@diagnostic\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"begin\":\"([a-zA-Z_\\\\-0-9]+)[ \\\\t]*(:)?\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.unit\"},\"2\":{\"name\":\"keyword.operator.unit\"}},\"end\":\"(?=\\\\n)\",\"patterns\":[{\"match\":\"\\\\b([a-zA-Z_\\\\*][a-zA-Z0-9_\\\\-]*)\",\"name\":\"support.class.lua\"},{\"match\":\",\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[ \\\\t]*@module\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#string\"}]},{\"match\":\"(?<=---)[ \\\\t]*@(async|nodiscard)\",\"name\":\"storage.type.annotation.lua\"},{\"begin\":\"(?<=---)\\\\|\\\\s*[\\\\>\\\\+]?\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n@#])\",\"patterns\":[{\"include\":\"#string\"}]}]},\"emmydoc.type\":{\"patterns\":[{\"begin\":\"\\\\bfun\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.lua\"}},\"end\":\"(?=[\\\\s#])\",\"patterns\":[{\"match\":\"[\\\\(\\\\),:\\\\?][ \\\\t]*\",\"name\":\"keyword.operator.lua\"},{\"match\":\"([a-zA-Z_][a-zA-Z0-9_\\\\.\\\\*\\\\[\\\\]\\\\<\\\\>\\\\,\\\\-]*)(?<!,)[ \\\\t]*(?=\\\\??:)\",\"name\":\"entity.name.variable.lua\"},{\"include\":\"#emmydoc.type\"},{\"include\":\"#string\"}]},{\"match\":\"\\\\<[a-zA-Z_\\\\*][a-zA-Z0-9_\\\\.\\\\*\\\\-]*\\\\>\",\"name\":\"storage.type.generic.lua\"},{\"match\":\"\\\\basync\\\\b\",\"name\":\"entity.name.tag.lua\"},{\"match\":\"[\\\\{\\\\}\\\\:\\\\,\\\\?\\\\|\\\\`][ \\\\t]*\",\"name\":\"keyword.operator.lua\"},{\"begin\":\"(?=[a-zA-Z_\\\\.\\\\*\\\"'\\\\[])\",\"end\":\"(?=[\\\\s\\\\)\\\\,\\\\?\\\\:\\\\}\\\\|#])\",\"patterns\":[{\"match\":\"([a-zA-Z0-9_\\\\.\\\\*\\\\[\\\\]\\\\<\\\\>\\\\,\\\\-]+)(?<!,)[ \\\\t]*\",\"name\":\"support.type.lua\"},{\"match\":\"(\\\\.\\\\.\\\\.)[ \\\\t]*\",\"name\":\"constant.language.lua\"},{\"include\":\"#string\"}]}]},\"escaped_char\":{\"patterns\":[{\"match\":\"\\\\\\\\[abfnrtv\\\\\\\\\\\"'\\\\n]\",\"name\":\"constant.character.escape.lua\"},{\"match\":\"\\\\\\\\z[\\\\n\\\\t ]*\",\"name\":\"constant.character.escape.lua\"},{\"match\":\"\\\\\\\\\\\\d{1,3}\",\"name\":\"constant.character.escape.byte.lua\"},{\"match\":\"\\\\\\\\x[0-9A-Fa-f][0-9A-Fa-f]\",\"name\":\"constant.character.escape.byte.lua\"},{\"match\":\"\\\\\\\\u\\\\{[0-9A-Fa-f]+\\\\}\",\"name\":\"constant.character.escape.unicode.lua\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.illegal.character.escape.lua\"}]},\"ldoc_tag\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.block.tag.ldoc\"},\"2\":{\"name\":\"storage.type.class.ldoc\"}},\"match\":\"\\\\G[ \\\\t]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\\\b\"},\"string\":{\"patterns\":[{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"'[ \\\\t]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.single.lua\",\"patterns\":[{\"include\":\"#escaped_char\"}]},{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"\\\"[ \\\\t]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.double.lua\",\"patterns\":[{\"include\":\"#escaped_char\"}]},{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"`[ \\\\t]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.double.lua\"},{\"begin\":\"(?<=\\\\.cdef)\\\\s*(\\\\[(=*)\\\\[)\",\"beginCaptures\":{\"0\":{\"name\":\"string.quoted.other.multiline.lua\"},\"1\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"contentName\":\"meta.embedded.lua\",\"end\":\"(\\\\]\\\\2\\\\])[ \\\\t]*\",\"endCaptures\":{\"0\":{\"name\":\"string.quoted.other.multiline.lua\"},\"1\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"patterns\":[{\"include\":\"source.c\"}]},{\"begin\":\"(?<!--)\\\\[(=*)\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"\\\\]\\\\1\\\\][ \\\\t]*\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.other.multiline.lua\"}]}},\"scopeName\":\"source.lua\",\"embeddedLangs\":[\"c\"]}"))
4
4
 
5
5
  export default [
6
6
  ...c,
package/dist/luau.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"Luau\",\"fileTypes\":[\"luau\"],\"name\":\"luau\",\"patterns\":[{\"include\":\"#function-definition\"},{\"include\":\"#number\"},{\"include\":\"#string\"},{\"include\":\"#shebang\"},{\"include\":\"#comment\"},{\"include\":\"#local-declaration\"},{\"include\":\"#for-loop\"},{\"include\":\"#type-alias-declaration\"},{\"include\":\"#keyword\"},{\"include\":\"#language_constant\"},{\"include\":\"#standard_library\"},{\"include\":\"#identifier\"},{\"include\":\"#operator\"},{\"include\":\"#parentheses\"},{\"include\":\"#table\"},{\"include\":\"#type_cast\"},{\"include\":\"#type_annotation\"},{\"include\":\"#attribute\"}],\"repository\":{\"attribute\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.operator.attribute.luau\"},\"2\":{\"name\":\"storage.type.attribute.luau\"}},\"match\":\"(@)([a-zA-Z_]\\\\w*)\",\"name\":\"meta.attribute.luau\"}]},\"comment\":{\"patterns\":[{\"begin\":\"--\\\\[(=*)\\\\[\",\"end\":\"\\\\]\\\\1\\\\]\",\"name\":\"comment.block.luau\",\"patterns\":[{\"begin\":\"(```luau?)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"comment.luau\"}},\"end\":\"(```)\",\"endCaptures\":{\"1\":{\"name\":\"comment.luau\"}},\"name\":\"keyword.operator.other.luau\",\"patterns\":[{\"include\":\"source.luau\"}]},{\"include\":\"#doc_comment_tags\"}]},{\"begin\":\"---\",\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.documentation.luau\",\"patterns\":[{\"include\":\"#doc_comment_tags\"}]},{\"begin\":\"--\",\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.luau\"}]},\"doc_comment_tags\":{\"patterns\":[{\"match\":\"@\\\\w+\",\"name\":\"storage.type.class.luadoc.luau\"},{\"captures\":{\"1\":{\"name\":\"storage.type.class.luadoc.luau\"},\"2\":{\"name\":\"variable.parameter.luau\"}},\"match\":\"((?<=[\\\\s*!\\\\/])[\\\\\\\\@]param)(?:\\\\s)+(\\\\b\\\\w+\\\\b)\"}]},\"for-loop\":{\"begin\":\"\\\\b(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.luau\"}},\"end\":\"\\\\b(in)\\\\b|(=)\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.luau\"},\"2\":{\"name\":\"keyword.operator.assignment.luau\"}},\"patterns\":[{\"begin\":\"(:)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.type.luau\"}},\"end\":\"(?=\\\\s*in\\\\b|\\\\s*[=,]|\\\\s*$)\",\"patterns\":[{\"include\":\"#type_literal\"}]},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b\",\"name\":\"variable.parameter.luau\"}]},\"function-definition\":{\"begin\":\"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.local.luau\"},\"2\":{\"name\":\"keyword.control.luau\"}},\"end\":\"(?<=[)\\\\-{}\\\\[\\\\]\\\"'])\",\"name\":\"meta.function.luau\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#generics-declaration\"},{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.luau\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.end.luau\"}},\"name\":\"meta.parameter.luau\",\"patterns\":[{\"include\":\"#comment\"},{\"match\":\"\\\\.\\\\.\\\\.\",\"name\":\"variable.parameter.function.varargs.luau\"},{\"match\":\"[a-zA-Z_]\\\\w*\",\"name\":\"variable.parameter.function.luau\"},{\"match\":\",\",\"name\":\"punctuation.separator.arguments.luau\"},{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.luau\"}},\"end\":\"(?=[),])\",\"patterns\":[{\"include\":\"#type_literal\"}]}]},{\"match\":\"\\\\b(__add|__call|__concat|__div|__eq|__index|__le|__len|__lt|__metatable|__mod|__mode|__mul|__newindex|__pow|__sub|__tostring|__unm|__iter|__idiv)\\\\b\",\"name\":\"variable.language.metamethod.luau\"},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b\",\"name\":\"entity.name.function.luau\"}]},\"generics-declaration\":{\"begin\":\"(<)\",\"end\":\"(>)\",\"patterns\":[{\"match\":\"[a-zA-Z_]\\\\w*\",\"name\":\"entity.name.type.luau\"},{\"match\":\"=\",\"name\":\"keyword.operator.assignment.luau\"},{\"include\":\"#type_literal\"}]},\"identifier\":{\"patterns\":[{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b(?=\\\\s*(?:[({\\\"']|\\\\[\\\\[))\",\"name\":\"entity.name.function.luau\"},{\"match\":\"(?<=[^.]\\\\.|:)\\\\b([a-zA-Z_]\\\\w*)\\\\b\",\"name\":\"variable.other.property.luau\"},{\"match\":\"\\\\b([A-Z_][A-Z0-9_]*)\\\\b\",\"name\":\"variable.other.constant.luau\"},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b\",\"name\":\"variable.other.readwrite.luau\"}]},\"interpolated_string_expression\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.interpolated-string-expression.begin.luau\"}},\"contentName\":\"meta.embedded.line.luau\",\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.interpolated-string-expression.end.luau\"}},\"name\":\"meta.template.expression.luau\",\"patterns\":[{\"include\":\"source.luau\"}]},\"keyword\":{\"patterns\":[{\"match\":\"\\\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\\\b\",\"name\":\"keyword.control.luau\"},{\"match\":\"\\\\b(local)\\\\b\",\"name\":\"storage.modifier.local.luau\"},{\"match\":\"\\\\b(function)\\\\b(?![,:])\",\"name\":\"keyword.control.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(self)\\\\b\",\"name\":\"variable.language.self.luau\"},{\"match\":\"\\\\b(and|or|not)\\\\b\",\"name\":\"keyword.operator.logical.luau keyword.operator.wordlike.luau\"},{\"match\":\"(?<=[^.]\\\\.|:)\\\\b(__add|__call|__concat|__div|__eq|__index|__le|__len|__lt|__metatable|__mod|__mode|__mul|__newindex|__pow|__sub|__tostring|__unm)\\\\b\",\"name\":\"variable.language.metamethod.luau\"},{\"match\":\"(?<![.])\\\\.{3}(?!\\\\.)\",\"name\":\"keyword.other.unit.luau\"}]},\"language_constant\":{\"patterns\":[{\"match\":\"(?<![^.]\\\\.|:)\\\\b(false)\\\\b\",\"name\":\"constant.language.boolean.false.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(true)\\\\b\",\"name\":\"constant.language.boolean.true.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(nil(?!:))\\\\b\",\"name\":\"constant.language.nil.luau\"}]},\"local-declaration\":{\"begin\":\"\\\\b(local)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.local.luau\"}},\"end\":\"(?=\\\\s*do\\\\b|\\\\s*[=;]|\\\\s*$)\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#attribute\"},{\"begin\":\"(:)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.type.luau\"}},\"end\":\"(?=\\\\s*do\\\\b|\\\\s*[=;,]|\\\\s*$)\",\"patterns\":[{\"include\":\"#type_literal\"}]},{\"match\":\"\\\\b([A-Z_][A-Z0-9_]*)\\\\b\",\"name\":\"variable.other.constant.luau\"},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b\",\"name\":\"variable.other.readwrite.luau\"}]},\"number\":{\"patterns\":[{\"match\":\"\\\\b0_*[xX]_*[\\\\da-fA-F_]*(?:[eE][+\\\\-]?_*\\\\d[\\\\d_]*(?:\\\\.[\\\\d_]*)?)?\",\"name\":\"constant.numeric.hex.luau\"},{\"match\":\"\\\\b0_*[bB][01_]+(?:[eE][+\\\\-]?_*\\\\d[\\\\d_]*(?:\\\\.[\\\\d_]*)?)?\",\"name\":\"constant.numeric.binary.luau\"},{\"match\":\"(?:\\\\d[\\\\d_]*(?:\\\\.[\\\\d_]*)?|\\\\.\\\\d[\\\\d_]*)(?:[eE][+\\\\-]?_*\\\\d[\\\\d_]*(?:\\\\.[\\\\d_]*)?)?\",\"name\":\"constant.numeric.decimal.luau\"}]},\"operator\":{\"patterns\":[{\"match\":\"==|~=|!=|<=?|>=?\",\"name\":\"keyword.operator.comparison.luau\"},{\"match\":\"\\\\+=|-=|/=|//=|\\\\*=|%=|\\\\^=|\\\\.\\\\.=|=\",\"name\":\"keyword.operator.assignment.luau\"},{\"match\":\"\\\\+|-|%|\\\\*|\\\\/\\\\/|\\\\/|\\\\^\",\"name\":\"keyword.operator.arithmetic.luau\"},{\"match\":\"#|(?<!\\\\.)\\\\.{2}(?!\\\\.)\",\"name\":\"keyword.operator.other.luau\"}]},\"parentheses\":{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.arguments.begin.luau\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.arguments.end.luau\"}},\"patterns\":[{\"match\":\",\",\"name\":\"punctuation.separator.arguments.luau\"},{\"include\":\"source.luau\"}]},\"shebang\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.luau\"}},\"match\":\"\\\\A(#!).*$\\\\n?\",\"name\":\"comment.line.shebang.luau\"},\"standard_library\":{\"patterns\":[{\"match\":\"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|error|gcinfo|getfenv|getmetatable|ipairs|loadstring|newproxy|next|pairs|pcall|print|rawequal|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|typeof|unpack|xpcall)\\\\b\",\"name\":\"support.function.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(_G|_VERSION)\\\\b\",\"name\":\"constant.language.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(bit32\\\\.(?:arshift|band|bnot|bor|btest|bxor|extract|lrotate|lshift|replace|rrotate|rshift|countlz|countrz|byteswap)|coroutine\\\\.(?:create|isyieldable|resume|running|status|wrap|yield|close)|debug\\\\.(?:info|loadmodule|profilebegin|profileend|traceback)|math\\\\.(?:abs|acos|asin|atan|atan2|ceil|clamp|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|noise|pow|rad|random|randomseed|round|sign|sin|sinh|sqrt|tan|tanh)|os\\\\.(?:clock|date|difftime|time)|string\\\\.(?:byte|char|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|split|sub|unpack|upper)|table\\\\.(?:concat|create|find|foreach|foreachi|getn|insert|maxn|move|pack|remove|sort|unpack|clear|freeze|isfrozen|clone)|task\\\\.(?:spawn|synchronize|desynchronize|wait|defer|delay)|utf8\\\\.(?:char|codepoint|codes|graphemes|len|nfcnormalize|nfdnormalize|offset)|buffer\\\\.(?:create|fromstring|tostring|len|readi8|readu8|readi16|readu16|readi32|readu32|readf32|readf64|writei8|writeu8|writei16|writeu16|writei32|writeu32|writef32|writef64|readstring|writestring|copy|fill))\\\\b\",\"name\":\"support.function.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(bit32|buffer|coroutine|debug|math(\\\\.(huge|pi))?|os|string|table|task|utf8(\\\\.charpattern)?)\\\\b\",\"name\":\"support.constant.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(delay|DebuggerManager|elapsedTime|PluginManager|printidentity|settings|spawn|stats|tick|time|UserSettings|version|wait|warn)\\\\b\",\"name\":\"support.function.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(game|plugin|shared|script|workspace|Enum(?:\\\\.\\\\w+){0,2})\\\\b\",\"name\":\"constant.language.luau\"}]},\"string\":{\"patterns\":[{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.luau\",\"patterns\":[{\"include\":\"#string_escape\"}]},{\"begin\":\"'\",\"end\":\"'\",\"name\":\"string.quoted.single.luau\",\"patterns\":[{\"include\":\"#string_escape\"}]},{\"begin\":\"\\\\[(=*)\\\\[\",\"end\":\"\\\\]\\\\1\\\\]\",\"name\":\"string.other.multiline.luau\"},{\"begin\":\"`\",\"end\":\"`\",\"name\":\"string.interpolated.luau\",\"patterns\":[{\"include\":\"#interpolated_string_expression\"},{\"include\":\"#string_escape\"}]}]},\"string_escape\":{\"patterns\":[{\"match\":\"\\\\\\\\[abfnrtvz'\\\"`{\\\\\\\\]\",\"name\":\"constant.character.escape.luau\"},{\"match\":\"\\\\\\\\\\\\d{1,3}\",\"name\":\"constant.character.escape.luau\"},{\"match\":\"\\\\\\\\x[0-9a-fA-F]{2}\",\"name\":\"constant.character.escape.luau\"},{\"match\":\"\\\\\\\\u\\\\{[0-9a-fA-F]*\\\\}\",\"name\":\"constant.character.escape.luau\"},{\"match\":\"\\\\\\\\$\",\"name\":\"constant.character.escape.luau\"}]},\"table\":{\"begin\":\"(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.table.begin.luau\"}},\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.table.end.luau\"}},\"patterns\":[{\"match\":\"[,;]\",\"name\":\"punctuation.separator.fields.luau\"},{\"include\":\"source.luau\"}]},\"type-alias-declaration\":{\"begin\":\"^\\\\b(?:(export)\\\\s+)?(type)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.visibility.luau\"},\"2\":{\"name\":\"storage.type.luau\"}},\"end\":\"(?=\\\\s*$)|(?=\\\\s*;)\",\"patterns\":[{\"include\":\"#type_literal\"},{\"match\":\"=\",\"name\":\"keyword.operator.assignment.luau\"}]},\"type_annotation\":{\"begin\":\":(?!\\\\b([a-zA-Z_]\\\\w*)\\\\b(?=\\\\s*(?:[({\\\"']|\\\\[\\\\[)))\",\"end\":\"(?<=\\\\))(?!\\\\s*->)|=|;|$|(?=\\\\breturn\\\\b)|(?=\\\\bend\\\\b)\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#type_literal\"}]},\"type_cast\":{\"begin\":\"(::)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.typecast.luau\"}},\"end\":\"(?=^|[;),}\\\\]:?\\\\-+>](?!\\\\s*[&\\\\|])|$|\\\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\\\b)\",\"patterns\":[{\"include\":\"#type_literal\"}]},\"type_literal\":{\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#string\"},{\"match\":\"\\\\?|\\\\&|\\\\|\",\"name\":\"keyword.operator.type.luau\"},{\"match\":\"->\",\"name\":\"keyword.operator.type.function.luau\"},{\"match\":\"\\\\b(false)\\\\b\",\"name\":\"constant.language.boolean.false.luau\"},{\"match\":\"\\\\b(true)\\\\b\",\"name\":\"constant.language.boolean.true.luau\"},{\"match\":\"\\\\b(nil|string|number|boolean|thread|userdata|symbol|any)\\\\b\",\"name\":\"support.type.primitive.luau\"},{\"begin\":\"\\\\b(typeof)\\\\b(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.luau\"},\"2\":{\"name\":\"punctuation.arguments.begin.typeof.luau\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.arguments.end.typeof.luau\"}},\"patterns\":[{\"include\":\"source.luau\"}]},{\"begin\":\"(<)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.begin.luau\"}},\"end\":\"(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.end.luau\"}},\"patterns\":[{\"match\":\"=\",\"name\":\"keyword.operator.assignment.luau\"},{\"include\":\"#type_literal\"}]},{\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b\",\"name\":\"entity.name.type.luau\"},{\"begin\":\"\\\\{\",\"end\":\"\\\\}\",\"patterns\":[{\"begin\":\"\\\\[\",\"end\":\"\\\\]\",\"patterns\":[{\"include\":\"#type_literal\"}]},{\"captures\":{\"1\":{\"name\":\"variable.property.luau\"},\"2\":{\"name\":\"keyword.operator.type.luau\"}},\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b(:)\"},{\"include\":\"#type_literal\"},{\"match\":\"[,;]\",\"name\":\"punctuation.separator.fields.type.luau\"}]},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.luau\"},\"2\":{\"name\":\"keyword.operator.type.luau\"}},\"match\":\"\\\\b([a-zA-Z_]\\\\w*)\\\\b(:)\",\"name\":\"variable.parameter.luau\"},{\"include\":\"#type_literal\"}]}]}},\"scopeName\":\"source.luau\"}"))
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Luau\",\"fileTypes\":[\"luau\"],\"name\":\"luau\",\"patterns\":[{\"include\":\"#function-definition\"},{\"include\":\"#number\"},{\"include\":\"#string\"},{\"include\":\"#shebang\"},{\"include\":\"#comment\"},{\"include\":\"#local-declaration\"},{\"include\":\"#for-loop\"},{\"include\":\"#type-alias-declaration\"},{\"include\":\"#keyword\"},{\"include\":\"#language_constant\"},{\"include\":\"#standard_library\"},{\"include\":\"#identifier\"},{\"include\":\"#operator\"},{\"include\":\"#parentheses\"},{\"include\":\"#table\"},{\"include\":\"#type_cast\"},{\"include\":\"#type_annotation\"},{\"include\":\"#attribute\"}],\"repository\":{\"attribute\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.operator.attribute.luau\"},\"2\":{\"name\":\"storage.type.attribute.luau\"}},\"match\":\"(@)([a-zA-Z_][a-zA-Z0-9_]*)\",\"name\":\"meta.attribute.luau\"}]},\"comment\":{\"patterns\":[{\"begin\":\"--\\\\[(=*)\\\\[\",\"end\":\"\\\\]\\\\1\\\\]\",\"name\":\"comment.block.luau\",\"patterns\":[{\"begin\":\"(```luau?)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"comment.luau\"}},\"end\":\"(```)\",\"endCaptures\":{\"1\":{\"name\":\"comment.luau\"}},\"name\":\"keyword.operator.other.luau\",\"patterns\":[{\"include\":\"source.luau\"}]},{\"include\":\"#doc_comment_tags\"}]},{\"begin\":\"---\",\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.documentation.luau\",\"patterns\":[{\"include\":\"#doc_comment_tags\"}]},{\"begin\":\"--\",\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.luau\"}]},\"doc_comment_tags\":{\"patterns\":[{\"match\":\"@\\\\w+\",\"name\":\"storage.type.class.luadoc.luau\"},{\"captures\":{\"1\":{\"name\":\"storage.type.class.luadoc.luau\"},\"2\":{\"name\":\"variable.parameter.luau\"}},\"match\":\"((?<=[\\\\s*!\\\\/])[\\\\\\\\@]param)(?:\\\\s)+(\\\\b\\\\w+\\\\b)\"}]},\"for-loop\":{\"begin\":\"\\\\b(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.luau\"}},\"end\":\"\\\\b(in)\\\\b|(=)\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.luau\"},\"2\":{\"name\":\"keyword.operator.assignment.luau\"}},\"patterns\":[{\"begin\":\"(:)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.type.luau\"}},\"end\":\"(?=\\\\s*in\\\\b|\\\\s*[=,]|\\\\s*$)\",\"patterns\":[{\"include\":\"#type_literal\"}]},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\",\"name\":\"variable.parameter.luau\"}]},\"function-definition\":{\"begin\":\"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.local.luau\"},\"2\":{\"name\":\"keyword.control.luau\"}},\"end\":\"(?<=[\\\\)\\\\-{}\\\\[\\\\]\\\"'])\",\"name\":\"meta.function.luau\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#generics-declaration\"},{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.luau\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.end.luau\"}},\"name\":\"meta.parameter.luau\",\"patterns\":[{\"include\":\"#comment\"},{\"match\":\"\\\\.\\\\.\\\\.\",\"name\":\"variable.parameter.function.varargs.luau\"},{\"match\":\"[a-zA-Z_][a-zA-Z0-9_]*\",\"name\":\"variable.parameter.function.luau\"},{\"match\":\",\",\"name\":\"punctuation.separator.arguments.luau\"},{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.luau\"}},\"end\":\"(?=[\\\\),])\",\"patterns\":[{\"include\":\"#type_literal\"}]}]},{\"match\":\"\\\\b(__add|__call|__concat|__div|__eq|__index|__le|__len|__lt|__metatable|__mod|__mode|__mul|__newindex|__pow|__sub|__tostring|__unm|__iter|__idiv)\\\\b\",\"name\":\"variable.language.metamethod.luau\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\",\"name\":\"entity.name.function.luau\"}]},\"generics-declaration\":{\"begin\":\"(<)\",\"end\":\"(>)\",\"patterns\":[{\"match\":\"[a-zA-Z_][a-zA-Z0-9_]*\",\"name\":\"entity.name.type.luau\"},{\"match\":\"=\",\"name\":\"keyword.operator.assignment.luau\"},{\"include\":\"#type_literal\"}]},\"identifier\":{\"patterns\":[{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(?=\\\\s*(?:[({\\\"']|\\\\[\\\\[))\",\"name\":\"entity.name.function.luau\"},{\"match\":\"(?<=[^.]\\\\.|:)\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\",\"name\":\"variable.other.property.luau\"},{\"match\":\"\\\\b([A-Z_][A-Z0-9_]*)\\\\b\",\"name\":\"variable.other.constant.luau\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\",\"name\":\"variable.other.readwrite.luau\"}]},\"interpolated_string_expression\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.interpolated-string-expression.begin.luau\"}},\"contentName\":\"meta.embedded.line.luau\",\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.interpolated-string-expression.end.luau\"}},\"name\":\"meta.template.expression.luau\",\"patterns\":[{\"include\":\"source.luau\"}]},\"keyword\":{\"patterns\":[{\"match\":\"\\\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\\\b\",\"name\":\"keyword.control.luau\"},{\"match\":\"\\\\b(local)\\\\b\",\"name\":\"storage.modifier.local.luau\"},{\"match\":\"\\\\b(function)\\\\b(?![,:])\",\"name\":\"keyword.control.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(self)\\\\b\",\"name\":\"variable.language.self.luau\"},{\"match\":\"\\\\b(and|or|not)\\\\b\",\"name\":\"keyword.operator.logical.luau keyword.operator.wordlike.luau\"},{\"match\":\"(?<=[^.]\\\\.|:)\\\\b(__add|__call|__concat|__div|__eq|__index|__le|__len|__lt|__metatable|__mod|__mode|__mul|__newindex|__pow|__sub|__tostring|__unm)\\\\b\",\"name\":\"variable.language.metamethod.luau\"},{\"match\":\"(?<![.])\\\\.{3}(?!\\\\.)\",\"name\":\"keyword.other.unit.luau\"}]},\"language_constant\":{\"patterns\":[{\"match\":\"(?<![^.]\\\\.|:)\\\\b(false)\\\\b\",\"name\":\"constant.language.boolean.false.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(true)\\\\b\",\"name\":\"constant.language.boolean.true.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(nil(?!:))\\\\b\",\"name\":\"constant.language.nil.luau\"}]},\"local-declaration\":{\"begin\":\"\\\\b(local)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.local.luau\"}},\"end\":\"(?=\\\\s*do\\\\b|\\\\s*[=;]|\\\\s*$)\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#attribute\"},{\"begin\":\"(:)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.type.luau\"}},\"end\":\"(?=\\\\s*do\\\\b|\\\\s*[=;,]|\\\\s*$)\",\"patterns\":[{\"include\":\"#type_literal\"}]},{\"match\":\"\\\\b([A-Z_][A-Z0-9_]*)\\\\b\",\"name\":\"variable.other.constant.luau\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\",\"name\":\"variable.other.readwrite.luau\"}]},\"number\":{\"patterns\":[{\"match\":\"\\\\b0_*[xX]_*[\\\\da-fA-F_]*(?:[eE][\\\\+\\\\-]?_*\\\\d[\\\\d_]*(?:\\\\.[\\\\d_]*)?)?\",\"name\":\"constant.numeric.hex.luau\"},{\"match\":\"\\\\b0_*[bB][01_]+(?:[eE][\\\\+\\\\-]?_*\\\\d[\\\\d_]*(?:\\\\.[\\\\d_]*)?)?\",\"name\":\"constant.numeric.binary.luau\"},{\"match\":\"(?:\\\\d[\\\\d_]*(?:\\\\.[\\\\d_]*)?|\\\\.\\\\d[\\\\d_]*)(?:[eE][\\\\+\\\\-]?_*\\\\d[\\\\d_]*(?:\\\\.[\\\\d_]*)?)?\",\"name\":\"constant.numeric.decimal.luau\"}]},\"operator\":{\"patterns\":[{\"match\":\"==|~=|!=|<=?|>=?\",\"name\":\"keyword.operator.comparison.luau\"},{\"match\":\"\\\\+=|-=|/=|//=|\\\\*=|%=|\\\\^=|\\\\.\\\\.=|=\",\"name\":\"keyword.operator.assignment.luau\"},{\"match\":\"\\\\+|-|%|\\\\*|\\\\/\\\\/|\\\\/|\\\\^\",\"name\":\"keyword.operator.arithmetic.luau\"},{\"match\":\"#|(?<!\\\\.)\\\\.{2}(?!\\\\.)\",\"name\":\"keyword.operator.other.luau\"}]},\"parentheses\":{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.arguments.begin.luau\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.arguments.end.luau\"}},\"patterns\":[{\"match\":\",\",\"name\":\"punctuation.separator.arguments.luau\"},{\"include\":\"source.luau\"}]},\"shebang\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.luau\"}},\"match\":\"\\\\A(#!).*$\\\\n?\",\"name\":\"comment.line.shebang.luau\"},\"standard_library\":{\"patterns\":[{\"match\":\"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|error|gcinfo|getfenv|getmetatable|ipairs|loadstring|newproxy|next|pairs|pcall|print|rawequal|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|typeof|unpack|xpcall)\\\\b\",\"name\":\"support.function.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(_G|_VERSION)\\\\b\",\"name\":\"constant.language.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(bit32\\\\.(?:arshift|band|bnot|bor|btest|bxor|extract|lrotate|lshift|replace|rrotate|rshift|countlz|countrz|byteswap)|coroutine\\\\.(?:create|isyieldable|resume|running|status|wrap|yield|close)|debug\\\\.(?:info|loadmodule|profilebegin|profileend|traceback)|math\\\\.(?:abs|acos|asin|atan|atan2|ceil|clamp|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|noise|pow|rad|random|randomseed|round|sign|sin|sinh|sqrt|tan|tanh)|os\\\\.(?:clock|date|difftime|time)|string\\\\.(?:byte|char|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|split|sub|unpack|upper)|table\\\\.(?:concat|create|find|foreach|foreachi|getn|insert|maxn|move|pack|remove|sort|unpack|clear|freeze|isfrozen|clone)|task\\\\.(?:spawn|synchronize|desynchronize|wait|defer|delay)|utf8\\\\.(?:char|codepoint|codes|graphemes|len|nfcnormalize|nfdnormalize|offset)|buffer\\\\.(?:create|fromstring|tostring|len|readi8|readu8|readi16|readu16|readi32|readu32|readf32|readf64|writei8|writeu8|writei16|writeu16|writei32|writeu32|writef32|writef64|readstring|writestring|copy|fill))\\\\b\",\"name\":\"support.function.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(bit32|buffer|coroutine|debug|math(\\\\.(huge|pi))?|os|string|table|task|utf8(\\\\.charpattern)?)\\\\b\",\"name\":\"support.constant.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(delay|DebuggerManager|elapsedTime|PluginManager|printidentity|settings|spawn|stats|tick|time|UserSettings|version|wait|warn)\\\\b\",\"name\":\"support.function.luau\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(game|plugin|shared|script|workspace|Enum(?:\\\\.\\\\w+){0,2})\\\\b\",\"name\":\"constant.language.luau\"}]},\"string\":{\"patterns\":[{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.luau\",\"patterns\":[{\"include\":\"#string_escape\"}]},{\"begin\":\"'\",\"end\":\"'\",\"name\":\"string.quoted.single.luau\",\"patterns\":[{\"include\":\"#string_escape\"}]},{\"begin\":\"\\\\[(=*)\\\\[\",\"end\":\"\\\\]\\\\1\\\\]\",\"name\":\"string.other.multiline.luau\"},{\"begin\":\"`\",\"end\":\"`\",\"name\":\"string.interpolated.luau\",\"patterns\":[{\"include\":\"#interpolated_string_expression\"},{\"include\":\"#string_escape\"}]}]},\"string_escape\":{\"patterns\":[{\"match\":\"\\\\\\\\[abfnrtvz'\\\"`{\\\\\\\\]\",\"name\":\"constant.character.escape.luau\"},{\"match\":\"\\\\\\\\\\\\d{1,3}\",\"name\":\"constant.character.escape.luau\"},{\"match\":\"\\\\\\\\x[0-9a-fA-F]{2}\",\"name\":\"constant.character.escape.luau\"},{\"match\":\"\\\\\\\\u\\\\{[0-9a-fA-F]*\\\\}\",\"name\":\"constant.character.escape.luau\"},{\"match\":\"\\\\\\\\$\",\"name\":\"constant.character.escape.luau\"}]},\"table\":{\"begin\":\"(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.table.begin.luau\"}},\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.table.end.luau\"}},\"patterns\":[{\"match\":\"[,;]\",\"name\":\"punctuation.separator.fields.luau\"},{\"include\":\"source.luau\"}]},\"type-alias-declaration\":{\"begin\":\"^\\\\b(?:(export)\\\\s+)?(type)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.visibility.luau\"},\"2\":{\"name\":\"storage.type.luau\"}},\"end\":\"(?=\\\\s*$)|(?=\\\\s*;)\",\"patterns\":[{\"include\":\"#type_literal\"},{\"match\":\"=\",\"name\":\"keyword.operator.assignment.luau\"}]},\"type_annotation\":{\"begin\":\":(?!\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(?=\\\\s*(?:[({\\\"']|\\\\[\\\\[)))\",\"end\":\"(?<=\\\\))(?!\\\\s*->)|=|;|$|(?=\\\\breturn\\\\b)|(?=\\\\bend\\\\b)\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#type_literal\"}]},\"type_cast\":{\"begin\":\"(::)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.typecast.luau\"}},\"end\":\"(?=^|[;),}\\\\]:?\\\\-\\\\+\\\\>](?!\\\\s*[&\\\\|])|$|\\\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\\\b)\",\"patterns\":[{\"include\":\"#type_literal\"}]},\"type_literal\":{\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#string\"},{\"match\":\"\\\\?|\\\\&|\\\\|\",\"name\":\"keyword.operator.type.luau\"},{\"match\":\"->\",\"name\":\"keyword.operator.type.function.luau\"},{\"match\":\"\\\\b(false)\\\\b\",\"name\":\"constant.language.boolean.false.luau\"},{\"match\":\"\\\\b(true)\\\\b\",\"name\":\"constant.language.boolean.true.luau\"},{\"match\":\"\\\\b(nil|string|number|boolean|thread|userdata|symbol|any)\\\\b\",\"name\":\"support.type.primitive.luau\"},{\"begin\":\"\\\\b(typeof)\\\\b(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.luau\"},\"2\":{\"name\":\"punctuation.arguments.begin.typeof.luau\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.arguments.end.typeof.luau\"}},\"patterns\":[{\"include\":\"source.luau\"}]},{\"begin\":\"(<)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.begin.luau\"}},\"end\":\"(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.end.luau\"}},\"patterns\":[{\"match\":\"=\",\"name\":\"keyword.operator.assignment.luau\"},{\"include\":\"#type_literal\"}]},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b\",\"name\":\"entity.name.type.luau\"},{\"begin\":\"\\\\{\",\"end\":\"\\\\}\",\"patterns\":[{\"begin\":\"\\\\[\",\"end\":\"\\\\]\",\"patterns\":[{\"include\":\"#type_literal\"}]},{\"captures\":{\"1\":{\"name\":\"variable.property.luau\"},\"2\":{\"name\":\"keyword.operator.type.luau\"}},\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(:)\"},{\"include\":\"#type_literal\"},{\"match\":\"[,;]\",\"name\":\"punctuation.separator.fields.type.luau\"}]},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.luau\"},\"2\":{\"name\":\"keyword.operator.type.luau\"}},\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)\\\\b(:)\",\"name\":\"variable.parameter.luau\"},{\"include\":\"#type_literal\"}]}]}},\"scopeName\":\"source.luau\"}"))
2
2
 
3
3
  export default [
4
4
  lang
package/dist/make.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"Makefile\",\"name\":\"make\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variables\"},{\"include\":\"#variable-assignment\"},{\"include\":\"#directives\"},{\"include\":\"#recipe\"},{\"include\":\"#target\"}],\"repository\":{\"another-variable-braces\":{\"patterns\":[{\"begin\":\"(?<={)(?!})\",\"end\":\"(?=}|((?<!\\\\\\\\)\\\\n))\",\"name\":\"variable.other.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"another-variable-parentheses\":{\"patterns\":[{\"begin\":\"(?<=\\\\()(?!\\\\))\",\"end\":\"(?=\\\\)|((?<!\\\\\\\\)\\\\n))\",\"name\":\"variable.other.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"braces-interpolation\":{\"begin\":\"{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#interpolation\"}]},\"builtin-variable-braces\":{\"patterns\":[{\"match\":\"(?<={)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\\\.LIBPATTERNS)(?=\\\\s*})\",\"name\":\"variable.language.makefile\"}]},\"builtin-variable-parentheses\":{\"patterns\":[{\"match\":\"(?<=\\\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\\\.LIBPATTERNS)(?=\\\\s*\\\\))\",\"name\":\"variable.language.makefile\"}]},\"comma\":{\"match\":\",\",\"name\":\"punctuation.separator.delimeter.comma.makefile\"},\"comment\":{\"begin\":\"(^[ ]+)?((?<!\\\\\\\\)(\\\\\\\\\\\\\\\\)*)(?=#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.makefile\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.makefile\"}},\"end\":\"(?=[^\\\\\\\\])$\",\"name\":\"comment.line.number-sign.makefile\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"directives\":{\"patterns\":[{\"begin\":\"^[ ]*([s\\\\-]?include)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.include.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variables\"},{\"match\":\"%\",\"name\":\"constant.other.placeholder.makefile\"}]},{\"begin\":\"^[ ]*(vpath)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.vpath.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variables\"},{\"match\":\"%\",\"name\":\"constant.other.placeholder.makefile\"}]},{\"begin\":\"^\\\\s*(?:(override)\\\\s*)?(define)\\\\s*([^\\\\s]+)\\\\s*(=|\\\\?=|:=|\\\\+=)?(?=\\\\s)\",\"captures\":{\"1\":{\"name\":\"keyword.control.override.makefile\"},\"2\":{\"name\":\"keyword.control.define.makefile\"},\"3\":{\"name\":\"variable.other.makefile\"},\"4\":{\"name\":\"punctuation.separator.key-value.makefile\"}},\"end\":\"^\\\\s*(endef)\\\\b\",\"name\":\"meta.scope.conditional.makefile\",\"patterns\":[{\"begin\":\"\\\\G(?!\\\\n)\",\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"}]},{\"include\":\"#variables\"},{\"include\":\"#directives\"}]},{\"begin\":\"^[ ]*(export)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variable-assignment\"},{\"match\":\"[^\\\\s]+\",\"name\":\"variable.other.makefile\"}]},{\"begin\":\"^[ ]*(override|private)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variable-assignment\"}]},{\"begin\":\"^[ ]*(unexport|undefine)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"match\":\"[^\\\\s]+\",\"name\":\"variable.other.makefile\"}]},{\"begin\":\"^\\\\s*(ifeq|ifneq|ifdef|ifndef)(?=\\\\s)\",\"captures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"^\\\\s*(endif)\\\\b\",\"name\":\"meta.scope.conditional.makefile\",\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"^\",\"name\":\"meta.scope.condition.makefile\",\"patterns\":[{\"include\":\"#comma\"},{\"include\":\"#variables\"},{\"include\":\"#comment\"}]},{\"begin\":\"^\\\\s*else(?=\\\\s)\\\\s*(ifeq|ifneq|ifdef|ifndef)*(?=\\\\s)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.else.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comma\"},{\"include\":\"#variables\"},{\"include\":\"#comment\"}]},{\"include\":\"$self\"}]}]},\"flavor-variable-braces\":{\"patterns\":[{\"begin\":\"(?<={)(origin|flavor)\\\\s(?=[^\\\\s}]+\\\\s*})\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.$1.makefile\"}},\"contentName\":\"variable.other.makefile\",\"end\":\"(?=})\",\"name\":\"meta.scope.function-call.makefile\",\"patterns\":[{\"include\":\"#variables\"}]}]},\"flavor-variable-parentheses\":{\"patterns\":[{\"begin\":\"(?<=\\\\()(origin|flavor)\\\\s(?=[^\\\\s)]+\\\\s*\\\\))\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.$1.makefile\"}},\"contentName\":\"variable.other.makefile\",\"end\":\"(?=\\\\))\",\"name\":\"meta.scope.function-call.makefile\",\"patterns\":[{\"include\":\"#variables\"}]}]},\"function-variable-braces\":{\"patterns\":[{\"begin\":\"(?<={)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\\\s\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.$1.makefile\"}},\"end\":\"(?=}|((?<!\\\\\\\\)\\\\n))\",\"name\":\"meta.scope.function-call.makefile\",\"patterns\":[{\"include\":\"#comma\"},{\"include\":\"#variables\"},{\"include\":\"#interpolation\"},{\"match\":\"%|\\\\*\",\"name\":\"constant.other.placeholder.makefile\"},{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"function-variable-parentheses\":{\"patterns\":[{\"begin\":\"(?<=\\\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\\\s\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.$1.makefile\"}},\"end\":\"(?=\\\\)|((?<!\\\\\\\\)\\\\n))\",\"name\":\"meta.scope.function-call.makefile\",\"patterns\":[{\"include\":\"#comma\"},{\"include\":\"#variables\"},{\"include\":\"#interpolation\"},{\"match\":\"%|\\\\*\",\"name\":\"constant.other.placeholder.makefile\"},{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"interpolation\":{\"patterns\":[{\"include\":\"#parentheses-interpolation\"},{\"include\":\"#braces-interpolation\"}]},\"parentheses-interpolation\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#interpolation\"}]},\"recipe\":{\"begin\":\"^\\\\t([+\\\\-@]*)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"[^\\\\\\\\]$\",\"name\":\"meta.scope.recipe.makefile\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"},{\"include\":\"#variables\"}]},\"simple-variable\":{\"patterns\":[{\"match\":\"\\\\$[^(){}]\",\"name\":\"variable.language.makefile\"}]},\"target\":{\"begin\":\"^(?!\\\\t)([^:]*)(:)(?!=)\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"support.function.target.$1.makefile\"}},\"match\":\"^\\\\s*(\\\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\\\s*$\"},{\"begin\":\"(?=\\\\S)\",\"end\":\"(?=\\\\s|$)\",\"name\":\"entity.name.function.target.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"%\",\"name\":\"constant.other.placeholder.makefile\"}]}]},\"2\":{\"name\":\"punctuation.separator.key-value.makefile\"}},\"end\":\"[^\\\\\\\\]$\",\"name\":\"meta.scope.target.makefile\",\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=[^\\\\\\\\])$\",\"name\":\"meta.scope.prerequisites.makefile\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"},{\"match\":\"%|\\\\*\",\"name\":\"constant.other.placeholder.makefile\"},{\"include\":\"#comment\"},{\"include\":\"#variables\"}]}]},\"variable-assignment\":{\"begin\":\"(^[ ]*|\\\\G\\\\s*)([^\\\\s:#=]+)\\\\s*((?<![?:+!])=|\\\\?=|:=|\\\\+=|!=)\",\"beginCaptures\":{\"2\":{\"name\":\"variable.other.makefile\",\"patterns\":[{\"include\":\"#variables\"}]},\"3\":{\"name\":\"punctuation.separator.key-value.makefile\"}},\"end\":\"\\\\n\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"},{\"include\":\"#comment\"},{\"include\":\"#variables\"}]},\"variable-braces\":{\"patterns\":[{\"begin\":\"\\\\${\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.variable.makefile\"}},\"end\":\"}|((?<!\\\\\\\\)\\\\n)\",\"name\":\"string.interpolated.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#builtin-variable-braces\"},{\"include\":\"#function-variable-braces\"},{\"include\":\"#flavor-variable-braces\"},{\"include\":\"#another-variable-braces\"}]}]},\"variable-parentheses\":{\"patterns\":[{\"begin\":\"\\\\$\\\\(\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.variable.makefile\"}},\"end\":\"\\\\)|((?<!\\\\\\\\)\\\\n)\",\"name\":\"string.interpolated.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#builtin-variable-parentheses\"},{\"include\":\"#function-variable-parentheses\"},{\"include\":\"#flavor-variable-parentheses\"},{\"include\":\"#another-variable-parentheses\"}]}]},\"variables\":{\"patterns\":[{\"include\":\"#simple-variable\"},{\"include\":\"#variable-parentheses\"},{\"include\":\"#variable-braces\"}]}},\"scopeName\":\"source.makefile\",\"aliases\":[\"makefile\"]}"))
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Makefile\",\"name\":\"make\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variables\"},{\"include\":\"#variable-assignment\"},{\"include\":\"#directives\"},{\"include\":\"#recipe\"},{\"include\":\"#target\"}],\"repository\":{\"another-variable-braces\":{\"patterns\":[{\"begin\":\"(?<={)(?!})\",\"end\":\"(?=}|((?<!\\\\\\\\)\\\\n))\",\"name\":\"variable.other.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"another-variable-parentheses\":{\"patterns\":[{\"begin\":\"(?<=\\\\()(?!\\\\))\",\"end\":\"(?=\\\\)|((?<!\\\\\\\\)\\\\n))\",\"name\":\"variable.other.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"braces-interpolation\":{\"begin\":\"{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#interpolation\"}]},\"builtin-variable-braces\":{\"patterns\":[{\"match\":\"(?<={)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\\\.LIBPATTERNS)(?=\\\\s*})\",\"name\":\"variable.language.makefile\"}]},\"builtin-variable-parentheses\":{\"patterns\":[{\"match\":\"(?<=\\\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\\\.LIBPATTERNS)(?=\\\\s*\\\\))\",\"name\":\"variable.language.makefile\"}]},\"comma\":{\"match\":\",\",\"name\":\"punctuation.separator.delimeter.comma.makefile\"},\"comment\":{\"begin\":\"(^[ ]+)?((?<!\\\\\\\\)(\\\\\\\\\\\\\\\\)*)(?=#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.makefile\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.makefile\"}},\"end\":\"(?=[^\\\\\\\\])$\",\"name\":\"comment.line.number-sign.makefile\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"directives\":{\"patterns\":[{\"begin\":\"^[ ]*([s\\\\-]?include)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.include.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variables\"},{\"match\":\"%\",\"name\":\"constant.other.placeholder.makefile\"}]},{\"begin\":\"^[ ]*(vpath)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.vpath.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variables\"},{\"match\":\"%\",\"name\":\"constant.other.placeholder.makefile\"}]},{\"begin\":\"^\\\\s*(?:(override)\\\\s*)?(define)\\\\s*([^\\\\s]+)\\\\s*(=|\\\\?=|:=|\\\\+=)?(?=\\\\s)\",\"captures\":{\"1\":{\"name\":\"keyword.control.override.makefile\"},\"2\":{\"name\":\"keyword.control.define.makefile\"},\"3\":{\"name\":\"variable.other.makefile\"},\"4\":{\"name\":\"punctuation.separator.key-value.makefile\"}},\"end\":\"^\\\\s*(endef)\\\\b\",\"name\":\"meta.scope.conditional.makefile\",\"patterns\":[{\"begin\":\"\\\\G(?!\\\\n)\",\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"}]},{\"include\":\"#variables\"},{\"include\":\"#directives\"}]},{\"begin\":\"^[ ]*(export)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variable-assignment\"},{\"match\":\"[^\\\\s]+\",\"name\":\"variable.other.makefile\"}]},{\"begin\":\"^[ ]*(override|private)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#variable-assignment\"}]},{\"begin\":\"^[ ]*(unexport|undefine)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comment\"},{\"match\":\"[^\\\\s]+\",\"name\":\"variable.other.makefile\"}]},{\"begin\":\"^\\\\s*(ifeq|ifneq|ifdef|ifndef)(?=\\\\s)\",\"captures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"^\\\\s*(endif)\\\\b\",\"name\":\"meta.scope.conditional.makefile\",\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"^\",\"name\":\"meta.scope.condition.makefile\",\"patterns\":[{\"include\":\"#comma\"},{\"include\":\"#variables\"},{\"include\":\"#comment\"}]},{\"begin\":\"^\\\\s*else(?=\\\\s)\\\\s*(ifeq|ifneq|ifdef|ifndef)*(?=\\\\s)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.else.makefile\"}},\"end\":\"^\",\"patterns\":[{\"include\":\"#comma\"},{\"include\":\"#variables\"},{\"include\":\"#comment\"}]},{\"include\":\"$self\"}]}]},\"flavor-variable-braces\":{\"patterns\":[{\"begin\":\"(?<={)(origin|flavor)\\\\s(?=[^\\\\s}]+\\\\s*})\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.$1.makefile\"}},\"contentName\":\"variable.other.makefile\",\"end\":\"(?=})\",\"name\":\"meta.scope.function-call.makefile\",\"patterns\":[{\"include\":\"#variables\"}]}]},\"flavor-variable-parentheses\":{\"patterns\":[{\"begin\":\"(?<=\\\\()(origin|flavor)\\\\s(?=[^\\\\s)]+\\\\s*\\\\))\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.$1.makefile\"}},\"contentName\":\"variable.other.makefile\",\"end\":\"(?=\\\\))\",\"name\":\"meta.scope.function-call.makefile\",\"patterns\":[{\"include\":\"#variables\"}]}]},\"function-variable-braces\":{\"patterns\":[{\"begin\":\"(?<={)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\\\s\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.$1.makefile\"}},\"end\":\"(?=}|((?<!\\\\\\\\)\\\\n))\",\"name\":\"meta.scope.function-call.makefile\",\"patterns\":[{\"include\":\"#comma\"},{\"include\":\"#variables\"},{\"include\":\"#interpolation\"},{\"match\":\"%|\\\\*\",\"name\":\"constant.other.placeholder.makefile\"},{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"function-variable-parentheses\":{\"patterns\":[{\"begin\":\"(?<=\\\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\\\s\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.$1.makefile\"}},\"end\":\"(?=\\\\)|((?<!\\\\\\\\)\\\\n))\",\"name\":\"meta.scope.function-call.makefile\",\"patterns\":[{\"include\":\"#comma\"},{\"include\":\"#variables\"},{\"include\":\"#interpolation\"},{\"match\":\"%|\\\\*\",\"name\":\"constant.other.placeholder.makefile\"},{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"}]}]},\"interpolation\":{\"patterns\":[{\"include\":\"#parentheses-interpolation\"},{\"include\":\"#braces-interpolation\"}]},\"parentheses-interpolation\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#interpolation\"}]},\"recipe\":{\"begin\":\"^\\\\t([+\\\\-@]*)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.$1.makefile\"}},\"end\":\"[^\\\\\\\\]$\",\"name\":\"meta.scope.recipe.makefile\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"},{\"include\":\"#variables\"}]},\"simple-variable\":{\"patterns\":[{\"match\":\"\\\\$[^(){}]\",\"name\":\"variable.language.makefile\"}]},\"target\":{\"begin\":\"^(?!\\\\t)([^:]*)(:)(?!\\\\=)\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"support.function.target.$1.makefile\"}},\"match\":\"^\\\\s*(\\\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\\\s*$\"},{\"begin\":\"(?=\\\\S)\",\"end\":\"(?=\\\\s|$)\",\"name\":\"entity.name.function.target.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"%\",\"name\":\"constant.other.placeholder.makefile\"}]}]},\"2\":{\"name\":\"punctuation.separator.key-value.makefile\"}},\"end\":\"[^\\\\\\\\]$\",\"name\":\"meta.scope.target.makefile\",\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=[^\\\\\\\\])$\",\"name\":\"meta.scope.prerequisites.makefile\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"},{\"match\":\"%|\\\\*\",\"name\":\"constant.other.placeholder.makefile\"},{\"include\":\"#comment\"},{\"include\":\"#variables\"}]}]},\"variable-assignment\":{\"begin\":\"(^[ ]*|\\\\G\\\\s*)([^\\\\s:#=]+)\\\\s*((?<![?:+!])=|\\\\?=|:=|\\\\+=|!=)\",\"beginCaptures\":{\"2\":{\"name\":\"variable.other.makefile\",\"patterns\":[{\"include\":\"#variables\"}]},\"3\":{\"name\":\"punctuation.separator.key-value.makefile\"}},\"end\":\"\\\\n\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\n\",\"name\":\"constant.character.escape.continuation.makefile\"},{\"include\":\"#comment\"},{\"include\":\"#variables\"}]},\"variable-braces\":{\"patterns\":[{\"begin\":\"\\\\${\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.variable.makefile\"}},\"end\":\"}|((?<!\\\\\\\\)\\\\n)\",\"name\":\"string.interpolated.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#builtin-variable-braces\"},{\"include\":\"#function-variable-braces\"},{\"include\":\"#flavor-variable-braces\"},{\"include\":\"#another-variable-braces\"}]}]},\"variable-parentheses\":{\"patterns\":[{\"begin\":\"\\\\$\\\\(\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.variable.makefile\"}},\"end\":\"\\\\)|((?<!\\\\\\\\)\\\\n)\",\"name\":\"string.interpolated.makefile\",\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#builtin-variable-parentheses\"},{\"include\":\"#function-variable-parentheses\"},{\"include\":\"#flavor-variable-parentheses\"},{\"include\":\"#another-variable-parentheses\"}]}]},\"variables\":{\"patterns\":[{\"include\":\"#simple-variable\"},{\"include\":\"#variable-parentheses\"},{\"include\":\"#variable-braces\"}]}},\"scopeName\":\"source.makefile\",\"aliases\":[\"makefile\"]}"))
2
2
 
3
3
  export default [
4
4
  lang