@shikijs/langs 3.2.2 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/dist/abap.mjs +1 -1
  2. package/dist/actionscript-3.mjs +1 -1
  3. package/dist/ada.mjs +1 -1
  4. package/dist/angular-expression.mjs +1 -1
  5. package/dist/angular-html.mjs +1 -1
  6. package/dist/angular-inline-style.mjs +1 -1
  7. package/dist/angular-inline-template.mjs +1 -1
  8. package/dist/angular-let-declaration.mjs +1 -1
  9. package/dist/angular-template-blocks.mjs +1 -1
  10. package/dist/angular-ts.mjs +1 -1
  11. package/dist/apache.mjs +1 -1
  12. package/dist/apex.mjs +1 -1
  13. package/dist/apl.mjs +1 -1
  14. package/dist/applescript.mjs +1 -1
  15. package/dist/ara.mjs +1 -1
  16. package/dist/asciidoc.mjs +1 -1
  17. package/dist/asm.mjs +1 -1
  18. package/dist/astro.mjs +1 -1
  19. package/dist/awk.mjs +1 -1
  20. package/dist/ballerina.mjs +1 -1
  21. package/dist/bat.mjs +1 -1
  22. package/dist/beancount.mjs +1 -1
  23. package/dist/berry.mjs +1 -1
  24. package/dist/bibtex.mjs +1 -1
  25. package/dist/bicep.mjs +1 -1
  26. package/dist/blade.mjs +1 -1
  27. package/dist/bsl.mjs +1 -1
  28. package/dist/c.mjs +1 -1
  29. package/dist/cadence.mjs +1 -1
  30. package/dist/cairo.mjs +1 -1
  31. package/dist/clarity.mjs +1 -1
  32. package/dist/clojure.mjs +1 -1
  33. package/dist/cobol.mjs +1 -1
  34. package/dist/codeql.mjs +1 -1
  35. package/dist/coffee.mjs +1 -1
  36. package/dist/common-lisp.mjs +1 -1
  37. package/dist/coq.mjs +1 -1
  38. package/dist/cpp-macro.mjs +1 -1
  39. package/dist/cpp.mjs +1 -1
  40. package/dist/crystal.mjs +1 -1
  41. package/dist/csharp.mjs +1 -1
  42. package/dist/css.mjs +1 -1
  43. package/dist/cue.mjs +1 -1
  44. package/dist/cypher.mjs +1 -1
  45. package/dist/d.mjs +1 -1
  46. package/dist/dart.mjs +1 -1
  47. package/dist/dax.mjs +1 -1
  48. package/dist/desktop.mjs +1 -1
  49. package/dist/diff.mjs +1 -1
  50. package/dist/dotenv.mjs +1 -1
  51. package/dist/dream-maker.mjs +1 -1
  52. package/dist/edge.mjs +1 -1
  53. package/dist/elixir.mjs +1 -1
  54. package/dist/elm.mjs +1 -1
  55. package/dist/emacs-lisp.mjs +1 -1
  56. package/dist/erb.mjs +1 -1
  57. package/dist/erlang.mjs +1 -1
  58. package/dist/es-tag-css.mjs +1 -1
  59. package/dist/es-tag-glsl.mjs +1 -1
  60. package/dist/es-tag-html.mjs +1 -1
  61. package/dist/es-tag-sql.mjs +1 -1
  62. package/dist/es-tag-xml.mjs +1 -1
  63. package/dist/fennel.mjs +1 -1
  64. package/dist/fish.mjs +1 -1
  65. package/dist/fluent.mjs +1 -1
  66. package/dist/fortran-fixed-form.mjs +1 -1
  67. package/dist/fortran-free-form.mjs +1 -1
  68. package/dist/fsharp.mjs +1 -1
  69. package/dist/gdresource.mjs +1 -1
  70. package/dist/gdscript.mjs +1 -1
  71. package/dist/gdshader.mjs +1 -1
  72. package/dist/genie.mjs +1 -1
  73. package/dist/gherkin.mjs +1 -1
  74. package/dist/gleam.mjs +1 -1
  75. package/dist/glimmer-js.mjs +1 -1
  76. package/dist/glimmer-ts.mjs +1 -1
  77. package/dist/glsl.mjs +1 -1
  78. package/dist/gnuplot.mjs +1 -1
  79. package/dist/go.mjs +1 -1
  80. package/dist/graphql.mjs +1 -1
  81. package/dist/groovy.mjs +1 -1
  82. package/dist/hack.mjs +1 -1
  83. package/dist/haml.mjs +1 -1
  84. package/dist/handlebars.mjs +1 -1
  85. package/dist/haskell.mjs +1 -1
  86. package/dist/haxe.mjs +1 -1
  87. package/dist/hcl.mjs +1 -1
  88. package/dist/hjson.mjs +1 -1
  89. package/dist/hlsl.mjs +1 -1
  90. package/dist/html-derivative.mjs +1 -1
  91. package/dist/html.mjs +1 -1
  92. package/dist/http.mjs +1 -1
  93. package/dist/hxml.mjs +1 -1
  94. package/dist/hy.mjs +1 -1
  95. package/dist/imba.mjs +1 -1
  96. package/dist/ini.mjs +1 -1
  97. package/dist/java.mjs +1 -1
  98. package/dist/javascript.mjs +1 -1
  99. package/dist/jinja.mjs +1 -1
  100. package/dist/jison.mjs +1 -1
  101. package/dist/json.mjs +1 -1
  102. package/dist/json5.mjs +1 -1
  103. package/dist/jsonc.mjs +1 -1
  104. package/dist/jsonl.mjs +1 -1
  105. package/dist/jsonnet.mjs +1 -1
  106. package/dist/jssm.mjs +1 -1
  107. package/dist/jsx.mjs +1 -1
  108. package/dist/julia.mjs +1 -1
  109. package/dist/kotlin.mjs +1 -1
  110. package/dist/kusto.mjs +1 -1
  111. package/dist/latex.mjs +1 -1
  112. package/dist/lean.mjs +1 -1
  113. package/dist/less.mjs +1 -1
  114. package/dist/liquid.mjs +1 -1
  115. package/dist/llvm.mjs +1 -1
  116. package/dist/log.mjs +1 -1
  117. package/dist/logo.mjs +1 -1
  118. package/dist/lua.mjs +1 -1
  119. package/dist/luau.mjs +1 -1
  120. package/dist/make.mjs +1 -1
  121. package/dist/markdown-vue.mjs +1 -1
  122. package/dist/markdown.mjs +1 -1
  123. package/dist/marko.mjs +1 -1
  124. package/dist/matlab.mjs +1 -1
  125. package/dist/mdc.mjs +1 -1
  126. package/dist/mdx.mjs +1 -1
  127. package/dist/mermaid.mjs +1 -1
  128. package/dist/mipsasm.mjs +1 -1
  129. package/dist/mojo.mjs +1 -1
  130. package/dist/move.mjs +1 -1
  131. package/dist/narrat.mjs +1 -1
  132. package/dist/nextflow.mjs +1 -1
  133. package/dist/nginx.mjs +1 -1
  134. package/dist/nim.mjs +1 -1
  135. package/dist/nix.mjs +1 -1
  136. package/dist/nushell.mjs +1 -1
  137. package/dist/objective-c.mjs +1 -1
  138. package/dist/objective-cpp.mjs +1 -1
  139. package/dist/ocaml.mjs +1 -1
  140. package/dist/pascal.mjs +1 -1
  141. package/dist/perl.mjs +1 -1
  142. package/dist/php.mjs +1 -1
  143. package/dist/plsql.mjs +1 -1
  144. package/dist/po.mjs +1 -1
  145. package/dist/polar.mjs +1 -1
  146. package/dist/postcss.mjs +1 -1
  147. package/dist/powerquery.mjs +1 -1
  148. package/dist/powershell.mjs +1 -1
  149. package/dist/prisma.mjs +1 -1
  150. package/dist/prolog.mjs +1 -1
  151. package/dist/proto.mjs +1 -1
  152. package/dist/pug.mjs +1 -1
  153. package/dist/puppet.mjs +1 -1
  154. package/dist/purescript.mjs +1 -1
  155. package/dist/python.mjs +1 -1
  156. package/dist/qml.mjs +1 -1
  157. package/dist/qss.mjs +1 -1
  158. package/dist/r.mjs +1 -1
  159. package/dist/racket.mjs +1 -1
  160. package/dist/raku.mjs +1 -1
  161. package/dist/razor.mjs +1 -1
  162. package/dist/reg.mjs +1 -1
  163. package/dist/regexp.mjs +1 -1
  164. package/dist/rel.mjs +1 -1
  165. package/dist/riscv.mjs +1 -1
  166. package/dist/rst.mjs +1 -1
  167. package/dist/ruby.mjs +1 -1
  168. package/dist/rust.mjs +1 -1
  169. package/dist/sas.mjs +1 -1
  170. package/dist/sass.mjs +1 -1
  171. package/dist/scala.mjs +1 -1
  172. package/dist/scheme.mjs +1 -1
  173. package/dist/scss.mjs +1 -1
  174. package/dist/sdbl.mjs +1 -1
  175. package/dist/shaderlab.mjs +1 -1
  176. package/dist/shellscript.mjs +1 -1
  177. package/dist/shellsession.mjs +1 -1
  178. package/dist/smalltalk.mjs +1 -1
  179. package/dist/solidity.mjs +1 -1
  180. package/dist/soy.mjs +1 -1
  181. package/dist/sparql.mjs +1 -1
  182. package/dist/splunk.mjs +1 -1
  183. package/dist/sql.mjs +1 -1
  184. package/dist/ssh-config.mjs +1 -1
  185. package/dist/stata.mjs +1 -1
  186. package/dist/stylus.mjs +1 -1
  187. package/dist/svelte.mjs +1 -1
  188. package/dist/swift.mjs +1 -1
  189. package/dist/system-verilog.mjs +1 -1
  190. package/dist/systemd.mjs +1 -1
  191. package/dist/talonscript.mjs +1 -1
  192. package/dist/tasl.mjs +1 -1
  193. package/dist/tcl.mjs +1 -1
  194. package/dist/templ.mjs +1 -1
  195. package/dist/terraform.mjs +1 -1
  196. package/dist/tex.mjs +1 -1
  197. package/dist/toml.mjs +1 -1
  198. package/dist/tsx.mjs +1 -1
  199. package/dist/turtle.mjs +1 -1
  200. package/dist/twig.mjs +1 -1
  201. package/dist/typescript.mjs +1 -1
  202. package/dist/typespec.mjs +1 -1
  203. package/dist/typst.mjs +1 -1
  204. package/dist/v.mjs +1 -1
  205. package/dist/vala.mjs +1 -1
  206. package/dist/vb.mjs +1 -1
  207. package/dist/verilog.mjs +1 -1
  208. package/dist/vhdl.mjs +1 -1
  209. package/dist/viml.mjs +1 -1
  210. package/dist/vue-html.mjs +1 -1
  211. package/dist/vue-sfc-style-variable-injection.mjs +1 -1
  212. package/dist/vue.mjs +3 -3
  213. package/dist/vyper.mjs +1 -1
  214. package/dist/wasm.mjs +1 -1
  215. package/dist/wenyan.mjs +1 -1
  216. package/dist/wgsl.mjs +1 -1
  217. package/dist/wikitext.mjs +1 -1
  218. package/dist/wit.mjs +1 -1
  219. package/dist/wolfram.mjs +1 -1
  220. package/dist/xml.mjs +1 -1
  221. package/dist/xsl.mjs +1 -1
  222. package/dist/yaml.mjs +1 -1
  223. package/dist/zenscript.mjs +1 -1
  224. package/dist/zig.mjs +1 -1
  225. package/package.json +3 -3
package/dist/nim.mjs CHANGED
@@ -6,7 +6,7 @@ import css from './css.mjs'
6
6
  import glsl from './glsl.mjs'
7
7
  import markdown from './markdown.mjs'
8
8
 
9
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"Nim\",\"fileTypes\":[\"nim\"],\"name\":\"nim\",\"patterns\":[{\"begin\":\"[ \\\\t]*##\\\\[\",\"contentName\":\"comment.block.doc-comment.content.nim\",\"end\":\"]##\",\"name\":\"comment.block.doc-comment.nim\",\"patterns\":[{\"include\":\"#multilinedoccomment\",\"name\":\"comment.block.doc-comment.nested.nim\"}]},{\"begin\":\"[ \\\\t]*#\\\\[\",\"contentName\":\"comment.block.content.nim\",\"end\":\"]#\",\"name\":\"comment.block.nim\",\"patterns\":[{\"include\":\"#multilinecomment\",\"name\":\"comment.block.nested.nim\"}]},{\"begin\":\"(^[ \\\\t]+)?(?=##)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.nim\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"##\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.nim\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.number-sign.doc-comment.nim\"}]},{\"begin\":\"(^[ \\\\t]+)?(?=#[^\\\\[])\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.nim\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.nim\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.number-sign.nim\"}]},{\"name\":\"meta.proc.nim\",\"patterns\":[{\"begin\":\"\\\\b(proc|method|template|macro|iterator|converter|func)\\\\s+`?([^:{\\\\s`*(]*)`?(\\\\s*\\\\*)?\\\\s*(?=[(=:\\\\[\\\\n{])\",\"captures\":{\"1\":{\"name\":\"keyword.other\"},\"2\":{\"name\":\"entity.name.function.nim\"},\"3\":{\"name\":\"keyword.control.export\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]}]},{\"begin\":\"discard \\\"\\\"\\\"\",\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"name\":\"comment.line.discarded.nim\"},{\"include\":\"#float_literal\"},{\"include\":\"#integer_literal\"},{\"match\":\"(?<=`)[^` ]+(?=`)\",\"name\":\"entity.name.function.nim\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.export\"}},\"match\":\"\\\\b\\\\s*(\\\\*)(?:\\\\s*(?=[,:])|\\\\s+(?==))\"},{\"captures\":{\"1\":{\"name\":\"support.type.nim\"},\"2\":{\"name\":\"keyword.control.export\"}},\"match\":\"\\\\b([A-Z]\\\\w+)(\\\\*)\"},{\"include\":\"#string_literal\"},{\"match\":\"\\\\b(true|false|Inf|NegInf|NaN|nil)\\\\b\",\"name\":\"constant.language.nim\"},{\"match\":\"\\\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\\\b\",\"name\":\"keyword.control.nim\"},{\"match\":\"(\\\\b(and|in|is|isnot|not|notin|or|xor)\\\\b)\",\"name\":\"keyword.boolean.nim\"},{\"match\":\"([=+\\\\-*/<>@$~\\\\&%!?^.:\\\\\\\\])+\",\"name\":\"keyword.operator.nim\"},{\"match\":\"(\\\\b(addr|as|asm|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|tuple|iterator|macro|func|method|proc|template)\\\\b)\",\"name\":\"keyword.other.nim\"},{\"match\":\"(\\\\b(generic|interface|lambda|out|shared)\\\\b)\",\"name\":\"invalid.illegal.invalid-keyword.nim\"},{\"match\":\"\\\\b(new|await|assert|echo|defined|declared|newException|countup|countdown|high|low)\\\\b\",\"name\":\"keyword.other.common.function.nim\"},{\"match\":\"\\\\b(((uint|int)(8|16|32|64)?)|float(32|64)?|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed)\\\\b\",\"name\":\"storage.type.concrete.nim\"},{\"match\":\"\\\\b(range|array|seq|set|pointer)\\\\b\",\"name\":\"storage.type.generic.nim\"},{\"match\":\"\\\\b(openarray|varargs|void)\\\\b\",\"name\":\"storage.type.generic.nim\"},{\"match\":\"\\\\b[A-Z][A-Z0-9_]+\\\\b\",\"name\":\"support.constant.nim\"},{\"match\":\"\\\\b[A-Z]\\\\w+\\\\b\",\"name\":\"support.type.nim\"},{\"match\":\"\\\\b\\\\w+\\\\b(?=(\\\\[([a-zA-Z0-9_,\\\\s])+])?\\\\()\",\"name\":\"support.function.any-method.nim\"},{\"match\":\"(?!(openarray|varargs|void|range|array|seq|set|pointer|new|await|assert|echo|defined|declared|newException|countup|countdown|high|low|((uint|int)(8|16|32|64)?)|float(32|64)?|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed|addr|as|asm|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|tuple|iterator|macro|func|method|proc|template|and|in|is|isnot|not|notin|or|xor|proc|method|template|macro|iterator|converter|func|true|false|Inf|NegInf|NaN|nil|block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\\\b)\\\\w+\\\\s+(?!(and|in|is|isnot|not|notin|or|xor|[^a-zA-Z0-9_\\\"'`(-+]+)\\\\b)(?=[a-zA-Z0-9_\\\"'`(-+])\",\"name\":\"support.function.any-method.nim\"},{\"begin\":\"(^\\\\s*)?(?=\\\\{\\\\.emit: ?\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"\\\\{\\\\.(emit:) ?(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.c\",\"end\":\"(\\\")\\\"\\\"(?!\\\")(\\\\.?})?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.c\"}},\"name\":\"meta.embedded.block.c\",\"patterns\":[{\"begin\":\"`\",\"end\":\"`\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.c\"}]}]},{\"begin\":\"\\\\{\\\\.\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.pragma.start.nim\"}},\"end\":\"\\\\.?}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.pragma.end.nim\"}},\"patterns\":[{\"begin\":\"\\\\b(\\\\p{alpha}\\\\w*)(?:\\\\s|\\\\s*:)\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"(?=\\\\.?}|,)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"\\\\b(\\\\p{alpha}\\\\w*)\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"captures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"match\":\"\\\\b(\\\\p{alpha}\\\\w*)(?=\\\\.?}|,)\"},{\"begin\":\"\\\\b(\\\\p{alpha}\\\\w*)(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\"},{\"begin\":\"\\\\b(\\\\p{alpha}\\\\w*)(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.raw.nim\"},{\"begin\":\"\\\\b(hint\\\\[\\\\w+]):\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"(?=\\\\.?}|,)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\",\",\"name\":\"punctuation.separator.comma.nim\"}]},{\"begin\":\"(^\\\\s*)?(?=asm \\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(asm) (\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.asm\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.asm\"}},\"name\":\"meta.embedded.block.asm\",\"patterns\":[{\"begin\":\"`\",\"end\":\"`\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.asm\"}]}]},{\"captures\":{\"1\":{\"name\":\"storage.type.function.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"match\":\"(tmpl(i)?)(?=( (html|xml|js|css|glsl|md))?\\\"\\\"\\\")\"},{\"begin\":\"(^\\\\s*)?(?=html\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(html)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"text.html\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"text.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([{\\\\n])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"text.html.basic\"}]}]},{\"begin\":\"(^\\\\s*)?(?=xml\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(xml)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"text.xml\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"text.xml\"}},\"name\":\"meta.embedded.block.xml\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([{\\\\n])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"text.xml\"}]}]},{\"begin\":\"(^\\\\s*)?(?=js\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(js)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.js\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.js\"}},\"name\":\"meta.embedded.block.js\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([{\\\\n])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.js\"}]}]},{\"begin\":\"(^\\\\s*)?(?=css\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(css)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.css\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.css\"}},\"name\":\"meta.embedded.block.css\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([{\\\\n])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.css\"}]}]},{\"begin\":\"(^\\\\s*)?(?=glsl\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(glsl)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.glsl\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.glsl\"}},\"name\":\"meta.embedded.block.glsl\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([{\\\\n])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.glsl\"}]}]},{\"begin\":\"(^\\\\s*)?(?=md\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(md)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"text.html.markdown\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"text.html.markdown\"}},\"name\":\"meta.embedded.block.html.markdown\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([{\\\\n])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"text.html.markdown\"}]}]}],\"repository\":{\"char_escapes\":{\"patterns\":[{\"match\":\"\\\\\\\\[cCrR]\",\"name\":\"constant.character.escape.carriagereturn.nim\"},{\"match\":\"\\\\\\\\[lLnN]\",\"name\":\"constant.character.escape.linefeed.nim\"},{\"match\":\"\\\\\\\\[fF]\",\"name\":\"constant.character.escape.formfeed.nim\"},{\"match\":\"\\\\\\\\[tT]\",\"name\":\"constant.character.escape.tabulator.nim\"},{\"match\":\"\\\\\\\\[vV]\",\"name\":\"constant.character.escape.verticaltabulator.nim\"},{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.double-quote.nim\"},{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.single-quote.nim\"},{\"match\":\"\\\\\\\\[0-9]+\",\"name\":\"constant.character.escape.chardecimalvalue.nim\"},{\"match\":\"\\\\\\\\[aA]\",\"name\":\"constant.character.escape.alert.nim\"},{\"match\":\"\\\\\\\\[bB]\",\"name\":\"constant.character.escape.backspace.nim\"},{\"match\":\"\\\\\\\\[eE]\",\"name\":\"constant.character.escape.escape.nim\"},{\"match\":\"\\\\\\\\[xX]\\\\h\\\\h\",\"name\":\"constant.character.escape.hex.nim\"},{\"match\":\"\\\\\\\\\\\\\\\\\",\"name\":\"constant.character.escape.backslash.nim\"}]},\"extended_string_quoted_double_raw\":{\"begin\":\"\\\\b(\\\\w+)(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.raw.nim\",\"patterns\":[{\"include\":\"#raw_string_escapes\"}]},\"extended_string_quoted_triple_raw\":{\"begin\":\"\\\\b(\\\\w+)(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\"},\"float_literal\":{\"patterns\":[{\"match\":\"\\\\b\\\\d[_\\\\d]*((\\\\.\\\\d[_\\\\d]*([eE][+-]?\\\\d[_\\\\d]*)?)|([eE][+-]?\\\\d[_\\\\d]*))('([fF](32|64|128)|[fFdD]))?\",\"name\":\"constant.numeric.float.decimal.nim\"},{\"match\":\"\\\\b0[xX]\\\\h[_\\\\h]*'([fF](32|64|128)|[fFdD])\",\"name\":\"constant.numeric.float.hexadecimal.nim\"},{\"match\":\"\\\\b0o[0-7][_0-7]*'([fF](32|64|128)|[fFdD])\",\"name\":\"constant.numeric.float.octal.nim\"},{\"match\":\"\\\\b0([bB])[01][_01]*'([fF](32|64|128)|[fFdD])\",\"name\":\"constant.numeric.float.binary.nim\"},{\"match\":\"\\\\b(\\\\d[_\\\\d]*)'([fF](32|64|128)|[fFdD])\",\"name\":\"constant.numeric.float.decimal.nim\"}]},\"fmt_interpolation\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.template-expression.begin.nim\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.template-expression.end.nim\"}},\"name\":\"meta.template.expression.nim\",\"patterns\":[{\"begin\":\":\",\"end\":\"(?=})\",\"name\":\"meta.template.format-specifier.nim\"},{\"include\":\"source.nim\"}]},\"fmt_string\":{\"begin\":\"\\\\b(fmt)(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.raw.nim\",\"patterns\":[{\"match\":\"(?<!\\\")\\\"(?!\\\")\",\"name\":\"invalid.illegal.nim\"},{\"include\":\"#raw_string_escapes\"},{\"include\":\"#fmt_interpolation\"}]},\"fmt_string_call\":{\"begin\":\"(fmt)\\\\((?=\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"(?=\\\\))\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.nim\",\"patterns\":[{\"match\":\"\\\"\",\"name\":\"invalid.illegal.nim\"},{\"include\":\"#string_escapes\"},{\"include\":\"#fmt_interpolation\"}]}]},\"fmt_string_operator\":{\"begin\":\"(&)(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.nim\",\"patterns\":[{\"match\":\"\\\"\",\"name\":\"invalid.illegal.nim\"},{\"include\":\"#string_escapes\"},{\"include\":\"#fmt_interpolation\"}]},\"fmt_string_triple\":{\"begin\":\"\\\\b(fmt)(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\",\"patterns\":[{\"include\":\"#fmt_interpolation\"}]},\"fmt_string_triple_operator\":{\"begin\":\"(&)(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\",\"patterns\":[{\"include\":\"#fmt_interpolation\"}]},\"integer_literal\":{\"patterns\":[{\"match\":\"\\\\b(0[xX]\\\\h[_\\\\h]*)('(([iIuU](8|16|32|64))|[uU]))?\",\"name\":\"constant.numeric.integer.hexadecimal.nim\"},{\"match\":\"\\\\b(0o[0-7][_0-7]*)('(([iIuU](8|16|32|64))|[uU]))?\",\"name\":\"constant.numeric.integer.octal.nim\"},{\"match\":\"\\\\b(0([bB])[01][_01]*)('(([iIuU](8|16|32|64))|[uU]))?\",\"name\":\"constant.numeric.integer.binary.nim\"},{\"match\":\"\\\\b(\\\\d[_\\\\d]*)('(([iIuU](8|16|32|64))|[uU]))?\",\"name\":\"constant.numeric.integer.decimal.nim\"}]},\"multilinecomment\":{\"begin\":\"#\\\\[\",\"end\":\"]#\",\"patterns\":[{\"include\":\"#multilinecomment\"}]},\"multilinedoccomment\":{\"begin\":\"##\\\\[\",\"end\":\"]##\",\"patterns\":[{\"include\":\"#multilinedoccomment\"}]},\"raw_string_escapes\":{\"captures\":{\"1\":{\"name\":\"constant.character.escape.double-quote.nim\"}},\"match\":\"[^\\\"](\\\"\\\")\"},\"string_escapes\":{\"patterns\":[{\"match\":\"\\\\\\\\[pP]\",\"name\":\"constant.character.escape.newline.nim\"},{\"match\":\"\\\\\\\\[uU]\\\\h\\\\h\\\\h\\\\h\",\"name\":\"constant.character.escape.hex.nim\"},{\"match\":\"\\\\\\\\[uU]\\\\{\\\\h+}\",\"name\":\"constant.character.escape.hex.nim\"},{\"include\":\"#char_escapes\"}]},\"string_literal\":{\"patterns\":[{\"include\":\"#fmt_string_triple\"},{\"include\":\"#fmt_string_triple_operator\"},{\"include\":\"#extended_string_quoted_triple_raw\"},{\"include\":\"#string_quoted_triple_raw\"},{\"include\":\"#fmt_string_operator\"},{\"include\":\"#fmt_string\"},{\"include\":\"#fmt_string_call\"},{\"include\":\"#string_quoted_double_raw\"},{\"include\":\"#extended_string_quoted_double_raw\"},{\"include\":\"#string_quoted_single\"},{\"include\":\"#string_quoted_triple\"},{\"include\":\"#string_quoted_double\"}]},\"string_quoted_double\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.nim\",\"patterns\":[{\"include\":\"#string_escapes\"}]},\"string_quoted_double_raw\":{\"begin\":\"\\\\br\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.raw.nim\",\"patterns\":[{\"include\":\"#raw_string_escapes\"}]},\"string_quoted_single\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.single.nim\",\"patterns\":[{\"include\":\"#char_escapes\"},{\"match\":\"([^']{2,}?)\",\"name\":\"invalid.illegal.character.nim\"}]},\"string_quoted_triple\":{\"begin\":\"\\\"\\\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.nim\"},\"string_quoted_triple_raw\":{\"begin\":\"r\\\"\\\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\"}},\"scopeName\":\"source.nim\",\"embeddedLangs\":[\"c\",\"html\",\"xml\",\"javascript\",\"css\",\"glsl\",\"markdown\"]}"))
9
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Nim\",\"fileTypes\":[\"nim\"],\"name\":\"nim\",\"patterns\":[{\"begin\":\"[\\\\t ]*##\\\\[\",\"contentName\":\"comment.block.doc-comment.content.nim\",\"end\":\"]##\",\"name\":\"comment.block.doc-comment.nim\",\"patterns\":[{\"include\":\"#multilinedoccomment\",\"name\":\"comment.block.doc-comment.nested.nim\"}]},{\"begin\":\"[\\\\t ]*#\\\\[\",\"contentName\":\"comment.block.content.nim\",\"end\":\"]#\",\"name\":\"comment.block.nim\",\"patterns\":[{\"include\":\"#multilinecomment\",\"name\":\"comment.block.nested.nim\"}]},{\"begin\":\"(^[\\\\t ]+)?(?=##)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.nim\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"##\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.nim\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.number-sign.doc-comment.nim\"}]},{\"begin\":\"(^[\\\\t ]+)?(?=#[^\\\\[])\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.nim\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.nim\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.number-sign.nim\"}]},{\"name\":\"meta.proc.nim\",\"patterns\":[{\"begin\":\"\\\\b(proc|method|template|macro|iterator|converter|func)\\\\s+`?([^(*:`{\\\\s]*)`?(\\\\s*\\\\*)?\\\\s*(?=[\\\\n(:=\\\\[{])\",\"captures\":{\"1\":{\"name\":\"keyword.other\"},\"2\":{\"name\":\"entity.name.function.nim\"},\"3\":{\"name\":\"keyword.control.export\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]}]},{\"begin\":\"discard \\\"\\\"\\\"\",\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"name\":\"comment.line.discarded.nim\"},{\"include\":\"#float_literal\"},{\"include\":\"#integer_literal\"},{\"match\":\"(?<=`)[^ `]+(?=`)\",\"name\":\"entity.name.function.nim\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.export\"}},\"match\":\"\\\\b\\\\s*(\\\\*)(?:\\\\s*(?=[,:])|\\\\s+(?==))\"},{\"captures\":{\"1\":{\"name\":\"support.type.nim\"},\"2\":{\"name\":\"keyword.control.export\"}},\"match\":\"\\\\b([A-Z]\\\\w+)(\\\\*)\"},{\"include\":\"#string_literal\"},{\"match\":\"\\\\b(true|false|Inf|NegInf|NaN|nil)\\\\b\",\"name\":\"constant.language.nim\"},{\"match\":\"\\\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\\\b\",\"name\":\"keyword.control.nim\"},{\"match\":\"\\\\b((and|in|is|isnot|not|notin|or|xor))\\\\b\",\"name\":\"keyword.boolean.nim\"},{\"match\":\"([-!$%\\\\&*+./:<-@\\\\\\\\^~])+\",\"name\":\"keyword.operator.nim\"},{\"match\":\"\\\\b((addr|as|asm|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|tuple|iterator|macro|func|method|proc|template))\\\\b\",\"name\":\"keyword.other.nim\"},{\"match\":\"\\\\b((generic|interface|lambda|out|shared))\\\\b\",\"name\":\"invalid.illegal.invalid-keyword.nim\"},{\"match\":\"\\\\b(new|await|assert|echo|defined|declared|newException|countup|countdown|high|low)\\\\b\",\"name\":\"keyword.other.common.function.nim\"},{\"match\":\"\\\\b((((?:u|)int)(8|16|32|64)?)|float(32|64)?|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed)\\\\b\",\"name\":\"storage.type.concrete.nim\"},{\"match\":\"\\\\b(range|array|seq|set|pointer)\\\\b\",\"name\":\"storage.type.generic.nim\"},{\"match\":\"\\\\b(openarray|varargs|void)\\\\b\",\"name\":\"storage.type.generic.nim\"},{\"match\":\"\\\\b[A-Z][0-9A-Z_]+\\\\b\",\"name\":\"support.constant.nim\"},{\"match\":\"\\\\b[A-Z]\\\\w+\\\\b\",\"name\":\"support.type.nim\"},{\"match\":\"\\\\b\\\\w+\\\\b(?=(\\\\[([,0-9A-Z_a-z\\\\s])+])?\\\\()\",\"name\":\"support.function.any-method.nim\"},{\"match\":\"(?!(openarray|varargs|void|range|array|seq|set|pointer|new|await|assert|echo|defined|declared|newException|countup|countdown|high|low|(((?:u|)int)(8|16|32|64)?)|float(32|64)?|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed|addr|as|asm|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|tuple|iterator|macro|func|method|proc|template|and|in|is|isnot|not|notin|or|xor|proc|method|template|macro|iterator|converter|func|true|false|Inf|NegInf|NaN|nil|block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\\\b)\\\\w+\\\\s+(?!(and|in|is|isnot|not|notin|or|xor|[^\\\"'-+0-9A-Z_-z]+)\\\\b)(?=[\\\"'-+0-9A-Z_-z])\",\"name\":\"support.function.any-method.nim\"},{\"begin\":\"(^\\\\s*)?(?=\\\\{\\\\.emit: ?\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"\\\\{\\\\.(emit:) ?(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.c\",\"end\":\"(\\\")\\\"\\\"(?!\\\")(\\\\.?})?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.c\"}},\"name\":\"meta.embedded.block.c\",\"patterns\":[{\"begin\":\"`\",\"end\":\"`\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.c\"}]}]},{\"begin\":\"\\\\{\\\\.\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.pragma.start.nim\"}},\"end\":\"\\\\.?}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.pragma.end.nim\"}},\"patterns\":[{\"begin\":\"\\\\b(\\\\p{alpha}\\\\w*)(?:\\\\s|\\\\s*:)\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"(?=\\\\.?}|,)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"\\\\b(\\\\p{alpha}\\\\w*)\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"captures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"match\":\"\\\\b(\\\\p{alpha}\\\\w*)(?=\\\\.?}|,)\"},{\"begin\":\"\\\\b(\\\\p{alpha}\\\\w*)(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\"},{\"begin\":\"\\\\b(\\\\p{alpha}\\\\w*)(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.raw.nim\"},{\"begin\":\"\\\\b(hint\\\\[\\\\w+]):\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"(?=\\\\.?}|,)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\",\",\"name\":\"punctuation.separator.comma.nim\"}]},{\"begin\":\"(^\\\\s*)?(?=asm \\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(asm) (\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.asm\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.asm\"}},\"name\":\"meta.embedded.block.asm\",\"patterns\":[{\"begin\":\"`\",\"end\":\"`\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.asm\"}]}]},{\"captures\":{\"1\":{\"name\":\"storage.type.function.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"match\":\"(tmpl(i)?)(?=( (html|xml|js|css|glsl|md))?\\\"\\\"\\\")\"},{\"begin\":\"(^\\\\s*)?(?=html\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(html)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"text.html\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"text.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([\\\\n{])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"text.html.basic\"}]}]},{\"begin\":\"(^\\\\s*)?(?=xml\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(xml)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"text.xml\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"text.xml\"}},\"name\":\"meta.embedded.block.xml\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([\\\\n{])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"text.xml\"}]}]},{\"begin\":\"(^\\\\s*)?(?=js\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(js)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.js\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.js\"}},\"name\":\"meta.embedded.block.js\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([\\\\n{])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.js\"}]}]},{\"begin\":\"(^\\\\s*)?(?=css\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(css)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.css\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.css\"}},\"name\":\"meta.embedded.block.css\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([\\\\n{])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.css\"}]}]},{\"begin\":\"(^\\\\s*)?(?=glsl\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(glsl)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"source.glsl\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"source.glsl\"}},\"name\":\"meta.embedded.block.glsl\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([\\\\n{])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"source.glsl\"}]}]},{\"begin\":\"(^\\\\s*)?(?=md\\\"\\\"\\\")\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.leading.nim\"}},\"end\":\"(?!\\\\G)(\\\\s*$\\\\n?)?\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.whitespace.embedded.trailing.nim\"}},\"patterns\":[{\"begin\":\"(md)(\\\"\\\"\\\")\",\"captures\":{\"1\":{\"name\":\"keyword.other.nim\"},\"2\":{\"name\":\"punctuation.section.embedded.begin.nim\"}},\"contentName\":\"text.html.markdown\",\"end\":\"(\\\")\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nim\"},\"1\":{\"name\":\"text.html.markdown\"}},\"name\":\"meta.embedded.block.html.markdown\",\"patterns\":[{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\(\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)\\\\{\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )\",\"captures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"keyword.operator.nim\"}},\"end\":\"([\\\\n{])\",\"endCaptures\":{\"1\":{\"name\":\"plain\"}},\"patterns\":[{\"include\":\"source.nim\"}]},{\"match\":\"(?<!\\\\$)(\\\\$\\\\w+)\",\"name\":\"keyword.operator.nim\"},{\"include\":\"text.html.markdown\"}]}]}],\"repository\":{\"char_escapes\":{\"patterns\":[{\"match\":\"\\\\\\\\[CRcr]\",\"name\":\"constant.character.escape.carriagereturn.nim\"},{\"match\":\"\\\\\\\\[LNln]\",\"name\":\"constant.character.escape.linefeed.nim\"},{\"match\":\"\\\\\\\\[Ff]\",\"name\":\"constant.character.escape.formfeed.nim\"},{\"match\":\"\\\\\\\\[Tt]\",\"name\":\"constant.character.escape.tabulator.nim\"},{\"match\":\"\\\\\\\\[Vv]\",\"name\":\"constant.character.escape.verticaltabulator.nim\"},{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.double-quote.nim\"},{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.single-quote.nim\"},{\"match\":\"\\\\\\\\[0-9]+\",\"name\":\"constant.character.escape.chardecimalvalue.nim\"},{\"match\":\"\\\\\\\\[Aa]\",\"name\":\"constant.character.escape.alert.nim\"},{\"match\":\"\\\\\\\\[Bb]\",\"name\":\"constant.character.escape.backspace.nim\"},{\"match\":\"\\\\\\\\[Ee]\",\"name\":\"constant.character.escape.escape.nim\"},{\"match\":\"\\\\\\\\[Xx]\\\\h\\\\h\",\"name\":\"constant.character.escape.hex.nim\"},{\"match\":\"\\\\\\\\\\\\\\\\\",\"name\":\"constant.character.escape.backslash.nim\"}]},\"extended_string_quoted_double_raw\":{\"begin\":\"\\\\b(\\\\w+)(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.raw.nim\",\"patterns\":[{\"include\":\"#raw_string_escapes\"}]},\"extended_string_quoted_triple_raw\":{\"begin\":\"\\\\b(\\\\w+)(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\"},\"float_literal\":{\"patterns\":[{\"match\":\"\\\\b\\\\d[_\\\\d]*((\\\\.\\\\d[_\\\\d]*([Ee][-+]?\\\\d[_\\\\d]*)?)|([Ee][-+]?\\\\d[_\\\\d]*))('([Ff](32|64|128)|[DFdf]))?\",\"name\":\"constant.numeric.float.decimal.nim\"},{\"match\":\"\\\\b0[Xx]\\\\h[_\\\\h]*'([Ff](32|64|128)|[DFdf])\",\"name\":\"constant.numeric.float.hexadecimal.nim\"},{\"match\":\"\\\\b0o[0-7][0-7_]*'([Ff](32|64|128)|[DFdf])\",\"name\":\"constant.numeric.float.octal.nim\"},{\"match\":\"\\\\b0([Bb])[01][01_]*'([Ff](32|64|128)|[DFdf])\",\"name\":\"constant.numeric.float.binary.nim\"},{\"match\":\"\\\\b(\\\\d[_\\\\d]*)'([Ff](32|64|128)|[DFdf])\",\"name\":\"constant.numeric.float.decimal.nim\"}]},\"fmt_interpolation\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.template-expression.begin.nim\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.template-expression.end.nim\"}},\"name\":\"meta.template.expression.nim\",\"patterns\":[{\"begin\":\":\",\"end\":\"(?=})\",\"name\":\"meta.template.format-specifier.nim\"},{\"include\":\"source.nim\"}]},\"fmt_string\":{\"begin\":\"\\\\b(fmt)(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.raw.nim\",\"patterns\":[{\"match\":\"(?<!\\\")\\\"(?!\\\")\",\"name\":\"invalid.illegal.nim\"},{\"include\":\"#raw_string_escapes\"},{\"include\":\"#fmt_interpolation\"}]},\"fmt_string_call\":{\"begin\":\"(fmt)\\\\((?=\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"(?=\\\\))\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.nim\",\"patterns\":[{\"match\":\"\\\"\",\"name\":\"invalid.illegal.nim\"},{\"include\":\"#string_escapes\"},{\"include\":\"#fmt_interpolation\"}]}]},\"fmt_string_operator\":{\"begin\":\"(&)(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.nim\",\"patterns\":[{\"match\":\"\\\"\",\"name\":\"invalid.illegal.nim\"},{\"include\":\"#string_escapes\"},{\"include\":\"#fmt_interpolation\"}]},\"fmt_string_triple\":{\"begin\":\"\\\\b(fmt)(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.any-method.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\",\"patterns\":[{\"include\":\"#fmt_interpolation\"}]},\"fmt_string_triple_operator\":{\"begin\":\"(&)(\\\"\\\"\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nim\"},\"2\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\",\"patterns\":[{\"include\":\"#fmt_interpolation\"}]},\"integer_literal\":{\"patterns\":[{\"match\":\"\\\\b(0[Xx]\\\\h[_\\\\h]*)('(([IUiu](8|16|32|64))|[Uu]))?\",\"name\":\"constant.numeric.integer.hexadecimal.nim\"},{\"match\":\"\\\\b(0o[0-7][0-7_]*)('(([IUiu](8|16|32|64))|[Uu]))?\",\"name\":\"constant.numeric.integer.octal.nim\"},{\"match\":\"\\\\b(0([Bb])[01][01_]*)('(([IUiu](8|16|32|64))|[Uu]))?\",\"name\":\"constant.numeric.integer.binary.nim\"},{\"match\":\"\\\\b(\\\\d[_\\\\d]*)('(([IUiu](8|16|32|64))|[Uu]))?\",\"name\":\"constant.numeric.integer.decimal.nim\"}]},\"multilinecomment\":{\"begin\":\"#\\\\[\",\"end\":\"]#\",\"patterns\":[{\"include\":\"#multilinecomment\"}]},\"multilinedoccomment\":{\"begin\":\"##\\\\[\",\"end\":\"]##\",\"patterns\":[{\"include\":\"#multilinedoccomment\"}]},\"raw_string_escapes\":{\"captures\":{\"1\":{\"name\":\"constant.character.escape.double-quote.nim\"}},\"match\":\"[^\\\"](\\\"\\\")\"},\"string_escapes\":{\"patterns\":[{\"match\":\"\\\\\\\\[Pp]\",\"name\":\"constant.character.escape.newline.nim\"},{\"match\":\"\\\\\\\\[Uu]\\\\h\\\\h\\\\h\\\\h\",\"name\":\"constant.character.escape.hex.nim\"},{\"match\":\"\\\\\\\\[Uu]\\\\{\\\\h+}\",\"name\":\"constant.character.escape.hex.nim\"},{\"include\":\"#char_escapes\"}]},\"string_literal\":{\"patterns\":[{\"include\":\"#fmt_string_triple\"},{\"include\":\"#fmt_string_triple_operator\"},{\"include\":\"#extended_string_quoted_triple_raw\"},{\"include\":\"#string_quoted_triple_raw\"},{\"include\":\"#fmt_string_operator\"},{\"include\":\"#fmt_string\"},{\"include\":\"#fmt_string_call\"},{\"include\":\"#string_quoted_double_raw\"},{\"include\":\"#extended_string_quoted_double_raw\"},{\"include\":\"#string_quoted_single\"},{\"include\":\"#string_quoted_triple\"},{\"include\":\"#string_quoted_double\"}]},\"string_quoted_double\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.nim\",\"patterns\":[{\"include\":\"#string_escapes\"}]},\"string_quoted_double_raw\":{\"begin\":\"\\\\br\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.double.raw.nim\",\"patterns\":[{\"include\":\"#raw_string_escapes\"}]},\"string_quoted_single\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.single.nim\",\"patterns\":[{\"include\":\"#char_escapes\"},{\"match\":\"([^']{2,}?)\",\"name\":\"invalid.illegal.character.nim\"}]},\"string_quoted_triple\":{\"begin\":\"\\\"\\\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.nim\"},\"string_quoted_triple_raw\":{\"begin\":\"r\\\"\\\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nim\"}},\"end\":\"\\\"\\\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nim\"}},\"name\":\"string.quoted.triple.raw.nim\"}},\"scopeName\":\"source.nim\",\"embeddedLangs\":[\"c\",\"html\",\"xml\",\"javascript\",\"css\",\"glsl\",\"markdown\"]}"))
10
10
 
11
11
  export default [
12
12
  ...c,
package/dist/nix.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"Nix\",\"fileTypes\":[\"nix\"],\"name\":\"nix\",\"patterns\":[{\"include\":\"#expression\"}],\"repository\":{\"attribute-bind\":{\"patterns\":[{\"include\":\"#attribute-name\"},{\"include\":\"#attribute-bind-from-equals\"}]},\"attribute-bind-from-equals\":{\"begin\":\"=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.bind.nix\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.bind.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"attribute-inherit\":{\"begin\":\"\\\\binherit\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.inherit.nix\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.inherit.nix\"}},\"patterns\":[{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.function.arguments.nix\"}},\"end\":\"(?=;)\",\"patterns\":[{\"begin\":\"\\\\)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.function.arguments.nix\"}},\"end\":\"(?=;)\",\"patterns\":[{\"include\":\"#bad-reserved\"},{\"include\":\"#attribute-name-single\"},{\"include\":\"#others\"}]},{\"include\":\"#expression\"}]},{\"begin\":\"(?=[a-zA-Z_])\",\"end\":\"(?=;)\",\"patterns\":[{\"include\":\"#bad-reserved\"},{\"include\":\"#attribute-name-single\"},{\"include\":\"#others\"}]},{\"include\":\"#others\"}]},\"attribute-name\":{\"patterns\":[{\"match\":\"\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*\",\"name\":\"entity.other.attribute-name.multipart.nix\"},{\"match\":\"\\\\.\"},{\"include\":\"#string-quoted\"},{\"include\":\"#interpolation\"}]},\"attribute-name-single\":{\"match\":\"\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*\",\"name\":\"entity.other.attribute-name.single.nix\"},\"attrset-contents\":{\"patterns\":[{\"include\":\"#attribute-inherit\"},{\"include\":\"#bad-reserved\"},{\"include\":\"#attribute-bind\"},{\"include\":\"#others\"}]},\"attrset-definition\":{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"(\\\\{)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.attrset.nix\"}},\"end\":\"(})\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.attrset.nix\"}},\"patterns\":[{\"include\":\"#attrset-contents\"}]},{\"begin\":\"(?<=})\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]}]},\"attrset-definition-brace-opened\":{\"patterns\":[{\"begin\":\"(?<=})\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"(?=.?)\",\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.attrset.nix\"}},\"patterns\":[{\"include\":\"#attrset-contents\"}]}]},\"attrset-for-sure\":{\"patterns\":[{\"begin\":\"(?=\\\\brec\\\\b)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"\\\\brec\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"(?=\\\\{)\",\"patterns\":[{\"include\":\"#others\"}]},{\"include\":\"#attrset-definition\"},{\"include\":\"#others\"}]},{\"begin\":\"(?=\\\\{\\\\s*(}|[^,?]*([=;])))\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#attrset-definition\"},{\"include\":\"#others\"}]}]},\"attrset-or-function\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.attrset-or-function.nix\"}},\"end\":\"(?=([\\\\])};]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"(?=(\\\\s*}|\\\"|\\\\binherit\\\\b|\\\\$\\\\{|\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*(\\\\s*\\\\.|\\\\s*=[^=])))\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#attrset-definition-brace-opened\"}]},{\"begin\":\"(?=(\\\\.\\\\.\\\\.|\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*\\\\s*[,?]))\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-definition-brace-opened\"}]},{\"include\":\"#bad-reserved\"},{\"begin\":\"\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*\",\"beginCaptures\":{\"0\":{\"name\":\"variable.parameter.function.maybe.nix\"}},\"end\":\"(?=([\\\\])};]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"(?=\\\\.)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#attrset-definition-brace-opened\"}]},{\"begin\":\"\\\\s*(,)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-definition-brace-opened\"}]},{\"begin\":\"(?==)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#attribute-bind-from-equals\"},{\"include\":\"#attrset-definition-brace-opened\"}]},{\"begin\":\"(?=\\\\?)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-parameter-default\"},{\"begin\":\",\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-definition-brace-opened\"}]}]},{\"include\":\"#others\"}]},{\"include\":\"#others\"}]},\"bad-reserved\":{\"match\":\"(?<![\\\\w'-])(if|then|else|assert|with|let|in|rec|inherit)(?![\\\\w'-])\",\"name\":\"invalid.illegal.reserved.nix\"},\"comment\":{\"patterns\":[{\"begin\":\"/\\\\*([^*]|\\\\*[^/])*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.nix\",\"patterns\":[{\"include\":\"#comment-remark\"}]},{\"begin\":\"#\",\"end\":\"$\",\"name\":\"comment.line.number-sign.nix\",\"patterns\":[{\"include\":\"#comment-remark\"}]}]},\"comment-remark\":{\"captures\":{\"1\":{\"name\":\"markup.bold.comment.nix\"}},\"match\":\"(TODO|FIXME|BUG|!!!):?\"},\"constants\":{\"patterns\":[{\"begin\":\"\\\\b(builtins|true|false|null)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"constant.language.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"\\\\b(scopedImport|import|isNull|abort|throw|baseNameOf|dirOf|removeAttrs|map|toString|derivationStrict|derivation)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"support.function.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"\\\\b[0-9]+\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"constant.numeric.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]}]},\"expression\":{\"patterns\":[{\"include\":\"#parens-and-cont\"},{\"include\":\"#list-and-cont\"},{\"include\":\"#string\"},{\"include\":\"#interpolation\"},{\"include\":\"#with-assert\"},{\"include\":\"#function-for-sure\"},{\"include\":\"#attrset-for-sure\"},{\"include\":\"#attrset-or-function\"},{\"include\":\"#let\"},{\"include\":\"#if\"},{\"include\":\"#operator-unary\"},{\"include\":\"#constants\"},{\"include\":\"#bad-reserved\"},{\"include\":\"#parameter-name-and-cont\"},{\"include\":\"#others\"}]},\"expression-cont\":{\"begin\":\"(?=.?)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#parens\"},{\"include\":\"#list\"},{\"include\":\"#string\"},{\"include\":\"#interpolation\"},{\"include\":\"#function-for-sure\"},{\"include\":\"#attrset-for-sure\"},{\"include\":\"#attrset-or-function\"},{\"match\":\"(\\\\bor\\\\b|\\\\.|\\\\|>|<\\\\||==|!=|!|<=|<|>=|>|&&|\\\\|\\\\||->|//|\\\\?|\\\\+\\\\+|[-*]|/(?=([^*]|$))|\\\\+)\",\"name\":\"keyword.operator.nix\"},{\"include\":\"#constants\"},{\"include\":\"#bad-reserved\"},{\"include\":\"#parameter-name\"},{\"include\":\"#others\"}]},\"function-body\":{\"begin\":\"(@\\\\s*([a-zA-Z_][a-zA-Z0-9_'-]*)\\\\s*)?(:)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression\"}]},\"function-body-from-colon\":{\"begin\":\"(:)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression\"}]},\"function-contents\":{\"patterns\":[{\"include\":\"#bad-reserved\"},{\"include\":\"#function-parameter\"},{\"include\":\"#others\"}]},\"function-definition\":{\"begin\":\"(?=.?)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-body-from-colon\"},{\"begin\":\"(?=.?)\",\"end\":\"(?=:)\",\"patterns\":[{\"begin\":\"(\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.parameter.function.4.nix\"}},\"end\":\"(?=:)\",\"patterns\":[{\"begin\":\"@\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-until-colon-no-arg\"},{\"include\":\"#others\"}]},{\"include\":\"#others\"}]},{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-until-colon-with-arg\"}]}]},{\"include\":\"#others\"}]},\"function-definition-brace-opened\":{\"begin\":\"(?=.?)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-body-from-colon\"},{\"begin\":\"(?=.?)\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-close-brace-with-arg\"},{\"begin\":\"(?=.?)\",\"end\":\"(?=})\",\"patterns\":[{\"include\":\"#function-contents\"}]}]},{\"include\":\"#others\"}]},\"function-for-sure\":{\"patterns\":[{\"begin\":\"(?=(\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*\\\\s*[:@]|\\\\{[^}]*}\\\\s*:|\\\\{[^#}\\\"'/=]*[,?]))\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-definition\"}]}]},\"function-header-close-brace-no-arg\":{\"begin\":\"}\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.entity.function.nix\"}},\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#others\"}]},\"function-header-close-brace-with-arg\":{\"begin\":\"}\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.entity.function.nix\"}},\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-terminal-arg\"},{\"include\":\"#others\"}]},\"function-header-open-brace\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.entity.function.2.nix\"}},\"end\":\"(?=})\",\"patterns\":[{\"include\":\"#function-contents\"}]},\"function-header-terminal-arg\":{\"begin\":\"(?=@)\",\"end\":\"(?=:)\",\"patterns\":[{\"begin\":\"@\",\"end\":\"(?=:)\",\"patterns\":[{\"begin\":\"(\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*)\",\"end\":\"(?=:)\",\"name\":\"variable.parameter.function.3.nix\"},{\"include\":\"#others\"}]},{\"include\":\"#others\"}]},\"function-header-until-colon-no-arg\":{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-open-brace\"},{\"include\":\"#function-header-close-brace-no-arg\"}]},\"function-header-until-colon-with-arg\":{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-open-brace\"},{\"include\":\"#function-header-close-brace-with-arg\"}]},\"function-parameter\":{\"patterns\":[{\"begin\":\"(\\\\.\\\\.\\\\.)\",\"end\":\"(,|(?=}))\",\"name\":\"keyword.operator.nix\",\"patterns\":[{\"include\":\"#others\"}]},{\"begin\":\"\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*\",\"beginCaptures\":{\"0\":{\"name\":\"variable.parameter.function.1.nix\"}},\"end\":\"(,|(?=}))\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.nix\"}},\"patterns\":[{\"include\":\"#whitespace\"},{\"include\":\"#comment\"},{\"include\":\"#function-parameter-default\"},{\"include\":\"#expression\"}]},{\"include\":\"#others\"}]},\"function-parameter-default\":{\"begin\":\"\\\\?\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.nix\"}},\"end\":\"(?=[,}])\",\"patterns\":[{\"include\":\"#expression\"}]},\"if\":{\"begin\":\"(?=\\\\bif\\\\b)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"\\\\bif\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"\\\\bth(?=en\\\\b)\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},{\"begin\":\"(?<=th)en\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"\\\\bel(?=se\\\\b)\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},{\"begin\":\"(?<=el)se\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]}]},\"illegal\":{\"match\":\".\",\"name\":\"invalid.illegal\"},\"interpolation\":{\"begin\":\"\\\\$\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.begin.nix\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nix\"}},\"name\":\"meta.embedded\",\"patterns\":[{\"include\":\"#expression\"}]},\"let\":{\"begin\":\"(?=\\\\blet\\\\b)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"\\\\blet\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(in|else|then)\\\\b))\",\"patterns\":[{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"\\\\{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#attrset-contents\"}]},{\"begin\":\"(^|(?<=}))\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"include\":\"#others\"}]},{\"include\":\"#attrset-contents\"},{\"include\":\"#others\"}]},{\"begin\":\"\\\\bin\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression\"}]}]},\"list\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.list.nix\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.list.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"list-and-cont\":{\"begin\":\"(?=\\\\[)\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#list\"},{\"include\":\"#expression-cont\"}]},\"operator-unary\":{\"match\":\"([!-])\",\"name\":\"keyword.operator.unary.nix\"},\"others\":{\"patterns\":[{\"include\":\"#whitespace\"},{\"include\":\"#comment\"},{\"include\":\"#illegal\"}]},\"parameter-name\":{\"captures\":{\"0\":{\"name\":\"variable.parameter.name.nix\"}},\"match\":\"\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*\"},\"parameter-name-and-cont\":{\"begin\":\"\\\\b[a-zA-Z_][a-zA-Z0-9_'-]*\",\"beginCaptures\":{\"0\":{\"name\":\"variable.parameter.name.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},\"parens\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.expression.nix\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.expression.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"parens-and-cont\":{\"begin\":\"(?=\\\\()\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#parens\"},{\"include\":\"#expression-cont\"}]},\"string\":{\"patterns\":[{\"begin\":\"(?='')\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"''\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.other.start.nix\"}},\"end\":\"''(?![$']|\\\\\\\\.)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.other.end.nix\"}},\"name\":\"string.quoted.other.nix\",\"patterns\":[{\"match\":\"''([$']|\\\\\\\\.)\",\"name\":\"constant.character.escape.nix\"},{\"include\":\"#interpolation\"}]},{\"include\":\"#expression-cont\"}]},{\"begin\":\"(?=\\\")\",\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#string-quoted\"},{\"include\":\"#expression-cont\"}]},{\"begin\":\"(~?[a-zA-Z0-9._\\\\-+]*(/[a-zA-Z0-9._\\\\-+]+)+)\",\"beginCaptures\":{\"0\":{\"name\":\"string.unquoted.path.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"(<[a-zA-Z0-9._\\\\-+]+(/[a-zA-Z0-9._\\\\-+]+)*>)\",\"beginCaptures\":{\"0\":{\"name\":\"string.unquoted.spath.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"([a-zA-Z][a-zA-Z0-9+\\\\-.]*:[a-zA-Z0-9%/?:@\\\\&=+$,\\\\-_.!~*']+)\",\"beginCaptures\":{\"0\":{\"name\":\"string.unquoted.url.nix\"}},\"end\":\"(?=([\\\\])};,]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]}]},\"string-quoted\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.double.start.nix\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.double.end.nix\"}},\"name\":\"string.quoted.double.nix\",\"patterns\":[{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.nix\"},{\"include\":\"#interpolation\"}]},\"whitespace\":{\"match\":\"\\\\s+\"},\"with-assert\":{\"begin\":\"(?<![\\\\w'-])(with|assert)(?![\\\\w'-])\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\";\",\"patterns\":[{\"include\":\"#expression\"}]}},\"scopeName\":\"source.nix\"}"))
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"Nix\",\"fileTypes\":[\"nix\"],\"name\":\"nix\",\"patterns\":[{\"include\":\"#expression\"}],\"repository\":{\"attribute-bind\":{\"patterns\":[{\"include\":\"#attribute-name\"},{\"include\":\"#attribute-bind-from-equals\"}]},\"attribute-bind-from-equals\":{\"begin\":\"=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.bind.nix\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.bind.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"attribute-inherit\":{\"begin\":\"\\\\binherit\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.inherit.nix\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.inherit.nix\"}},\"patterns\":[{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.function.arguments.nix\"}},\"end\":\"(?=;)\",\"patterns\":[{\"begin\":\"\\\\)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.function.arguments.nix\"}},\"end\":\"(?=;)\",\"patterns\":[{\"include\":\"#bad-reserved\"},{\"include\":\"#attribute-name-single\"},{\"include\":\"#others\"}]},{\"include\":\"#expression\"}]},{\"begin\":\"(?=[A-Z_a-z])\",\"end\":\"(?=;)\",\"patterns\":[{\"include\":\"#bad-reserved\"},{\"include\":\"#attribute-name-single\"},{\"include\":\"#others\"}]},{\"include\":\"#others\"}]},\"attribute-name\":{\"patterns\":[{\"match\":\"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\",\"name\":\"entity.other.attribute-name.multipart.nix\"},{\"match\":\"\\\\.\"},{\"include\":\"#string-quoted\"},{\"include\":\"#interpolation\"}]},\"attribute-name-single\":{\"match\":\"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\",\"name\":\"entity.other.attribute-name.single.nix\"},\"attrset-contents\":{\"patterns\":[{\"include\":\"#attribute-inherit\"},{\"include\":\"#bad-reserved\"},{\"include\":\"#attribute-bind\"},{\"include\":\"#others\"}]},\"attrset-definition\":{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"(\\\\{)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.attrset.nix\"}},\"end\":\"(})\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.attrset.nix\"}},\"patterns\":[{\"include\":\"#attrset-contents\"}]},{\"begin\":\"(?<=})\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]}]},\"attrset-definition-brace-opened\":{\"patterns\":[{\"begin\":\"(?<=})\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"(?=.?)\",\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.attrset.nix\"}},\"patterns\":[{\"include\":\"#attrset-contents\"}]}]},\"attrset-for-sure\":{\"patterns\":[{\"begin\":\"(?=\\\\brec\\\\b)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"\\\\brec\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"(?=\\\\{)\",\"patterns\":[{\"include\":\"#others\"}]},{\"include\":\"#attrset-definition\"},{\"include\":\"#others\"}]},{\"begin\":\"(?=\\\\{\\\\s*(}|[^,?]*([;=])))\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#attrset-definition\"},{\"include\":\"#others\"}]}]},\"attrset-or-function\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.attrset-or-function.nix\"}},\"end\":\"(?=([]);}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"(?=(\\\\s*}|\\\"|\\\\binherit\\\\b|\\\\$\\\\{|\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*(\\\\s*\\\\.|\\\\s*=[^=])))\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#attrset-definition-brace-opened\"}]},{\"begin\":\"(?=(\\\\.\\\\.\\\\.|\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\\\\s*[,?]))\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-definition-brace-opened\"}]},{\"include\":\"#bad-reserved\"},{\"begin\":\"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\",\"beginCaptures\":{\"0\":{\"name\":\"variable.parameter.function.maybe.nix\"}},\"end\":\"(?=([]);}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"(?=\\\\.)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#attrset-definition-brace-opened\"}]},{\"begin\":\"\\\\s*(,)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-definition-brace-opened\"}]},{\"begin\":\"(?==)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#attribute-bind-from-equals\"},{\"include\":\"#attrset-definition-brace-opened\"}]},{\"begin\":\"(?=\\\\?)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-parameter-default\"},{\"begin\":\",\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-definition-brace-opened\"}]}]},{\"include\":\"#others\"}]},{\"include\":\"#others\"}]},\"bad-reserved\":{\"match\":\"(?<![-'\\\\w])(if|then|else|assert|with|let|in|rec|inherit)(?![-'\\\\w])\",\"name\":\"invalid.illegal.reserved.nix\"},\"comment\":{\"patterns\":[{\"begin\":\"/\\\\*([^*]|\\\\*[^/])*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.nix\",\"patterns\":[{\"include\":\"#comment-remark\"}]},{\"begin\":\"#\",\"end\":\"$\",\"name\":\"comment.line.number-sign.nix\",\"patterns\":[{\"include\":\"#comment-remark\"}]}]},\"comment-remark\":{\"captures\":{\"1\":{\"name\":\"markup.bold.comment.nix\"}},\"match\":\"(TODO|FIXME|BUG|!!!):?\"},\"constants\":{\"patterns\":[{\"begin\":\"\\\\b(builtins|true|false|null)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"constant.language.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"\\\\b(scopedImport|import|isNull|abort|throw|baseNameOf|dirOf|removeAttrs|map|toString|derivationStrict|derivation)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"support.function.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"\\\\b[0-9]+\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"constant.numeric.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]}]},\"expression\":{\"patterns\":[{\"include\":\"#parens-and-cont\"},{\"include\":\"#list-and-cont\"},{\"include\":\"#string\"},{\"include\":\"#interpolation\"},{\"include\":\"#with-assert\"},{\"include\":\"#function-for-sure\"},{\"include\":\"#attrset-for-sure\"},{\"include\":\"#attrset-or-function\"},{\"include\":\"#let\"},{\"include\":\"#if\"},{\"include\":\"#operator-unary\"},{\"include\":\"#constants\"},{\"include\":\"#bad-reserved\"},{\"include\":\"#parameter-name-and-cont\"},{\"include\":\"#others\"}]},\"expression-cont\":{\"begin\":\"(?=.?)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#parens\"},{\"include\":\"#list\"},{\"include\":\"#string\"},{\"include\":\"#interpolation\"},{\"include\":\"#function-for-sure\"},{\"include\":\"#attrset-for-sure\"},{\"include\":\"#attrset-or-function\"},{\"match\":\"(\\\\bor\\\\b|\\\\.|\\\\|>|<\\\\||==|!=|!|<=|<|>=|>|&&|\\\\|\\\\||->|//|\\\\?|\\\\+\\\\+|[-*]|/(?=([^*]|$))|\\\\+)\",\"name\":\"keyword.operator.nix\"},{\"include\":\"#constants\"},{\"include\":\"#bad-reserved\"},{\"include\":\"#parameter-name\"},{\"include\":\"#others\"}]},\"function-body\":{\"begin\":\"(@\\\\s*([A-Z_a-z][-'0-9A-Z_a-z]*)\\\\s*)?(:)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression\"}]},\"function-body-from-colon\":{\"begin\":\"(:)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression\"}]},\"function-contents\":{\"patterns\":[{\"include\":\"#bad-reserved\"},{\"include\":\"#function-parameter\"},{\"include\":\"#others\"}]},\"function-definition\":{\"begin\":\"(?=.?)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-body-from-colon\"},{\"begin\":\"(?=.?)\",\"end\":\"(?=:)\",\"patterns\":[{\"begin\":\"\\\\b([A-Z_a-z][-'0-9A-Z_a-z]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.parameter.function.4.nix\"}},\"end\":\"(?=:)\",\"patterns\":[{\"begin\":\"@\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-until-colon-no-arg\"},{\"include\":\"#others\"}]},{\"include\":\"#others\"}]},{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-until-colon-with-arg\"}]}]},{\"include\":\"#others\"}]},\"function-definition-brace-opened\":{\"begin\":\"(?=.?)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-body-from-colon\"},{\"begin\":\"(?=.?)\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-close-brace-with-arg\"},{\"begin\":\"(?=.?)\",\"end\":\"(?=})\",\"patterns\":[{\"include\":\"#function-contents\"}]}]},{\"include\":\"#others\"}]},\"function-for-sure\":{\"patterns\":[{\"begin\":\"(?=(\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\\\\s*[:@]|\\\\{[^}]*}\\\\s*:|\\\\{[^\\\"#'/=}]*[,?]))\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#function-definition\"}]}]},\"function-header-close-brace-no-arg\":{\"begin\":\"}\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.entity.function.nix\"}},\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#others\"}]},\"function-header-close-brace-with-arg\":{\"begin\":\"}\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.entity.function.nix\"}},\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-terminal-arg\"},{\"include\":\"#others\"}]},\"function-header-open-brace\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.entity.function.2.nix\"}},\"end\":\"(?=})\",\"patterns\":[{\"include\":\"#function-contents\"}]},\"function-header-terminal-arg\":{\"begin\":\"(?=@)\",\"end\":\"(?=:)\",\"patterns\":[{\"begin\":\"@\",\"end\":\"(?=:)\",\"patterns\":[{\"begin\":\"\\\\b([A-Z_a-z][-'0-9A-Z_a-z]*)\",\"end\":\"(?=:)\",\"name\":\"variable.parameter.function.3.nix\"},{\"include\":\"#others\"}]},{\"include\":\"#others\"}]},\"function-header-until-colon-no-arg\":{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-open-brace\"},{\"include\":\"#function-header-close-brace-no-arg\"}]},\"function-header-until-colon-with-arg\":{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=:)\",\"patterns\":[{\"include\":\"#function-header-open-brace\"},{\"include\":\"#function-header-close-brace-with-arg\"}]},\"function-parameter\":{\"patterns\":[{\"begin\":\"(\\\\.\\\\.\\\\.)\",\"end\":\"(,|(?=}))\",\"name\":\"keyword.operator.nix\",\"patterns\":[{\"include\":\"#others\"}]},{\"begin\":\"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\",\"beginCaptures\":{\"0\":{\"name\":\"variable.parameter.function.1.nix\"}},\"end\":\"(,|(?=}))\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.nix\"}},\"patterns\":[{\"include\":\"#whitespace\"},{\"include\":\"#comment\"},{\"include\":\"#function-parameter-default\"},{\"include\":\"#expression\"}]},{\"include\":\"#others\"}]},\"function-parameter-default\":{\"begin\":\"\\\\?\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.nix\"}},\"end\":\"(?=[,}])\",\"patterns\":[{\"include\":\"#expression\"}]},\"if\":{\"begin\":\"(?=\\\\bif\\\\b)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"\\\\bif\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"\\\\bth(?=en\\\\b)\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},{\"begin\":\"(?<=th)en\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"\\\\bel(?=se\\\\b)\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},{\"begin\":\"(?<=el)se\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]}]},\"illegal\":{\"match\":\".\",\"name\":\"invalid.illegal\"},\"interpolation\":{\"begin\":\"\\\\$\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.begin.nix\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.embedded.end.nix\"}},\"name\":\"meta.embedded\",\"patterns\":[{\"include\":\"#expression\"}]},\"let\":{\"begin\":\"(?=\\\\blet\\\\b)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"\\\\blet\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(in|else|then)\\\\b))\",\"patterns\":[{\"begin\":\"(?=\\\\{)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"\\\\{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#attrset-contents\"}]},{\"begin\":\"(^|(?<=}))\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"include\":\"#others\"}]},{\"include\":\"#attrset-contents\"},{\"include\":\"#others\"}]},{\"begin\":\"\\\\bin\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression\"}]}]},\"list\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.list.nix\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.list.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"list-and-cont\":{\"begin\":\"(?=\\\\[)\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#list\"},{\"include\":\"#expression-cont\"}]},\"operator-unary\":{\"match\":\"([-!])\",\"name\":\"keyword.operator.unary.nix\"},\"others\":{\"patterns\":[{\"include\":\"#whitespace\"},{\"include\":\"#comment\"},{\"include\":\"#illegal\"}]},\"parameter-name\":{\"captures\":{\"0\":{\"name\":\"variable.parameter.name.nix\"}},\"match\":\"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\"},\"parameter-name-and-cont\":{\"begin\":\"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\",\"beginCaptures\":{\"0\":{\"name\":\"variable.parameter.name.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},\"parens\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.expression.nix\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.expression.nix\"}},\"patterns\":[{\"include\":\"#expression\"}]},\"parens-and-cont\":{\"begin\":\"(?=\\\\()\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#parens\"},{\"include\":\"#expression-cont\"}]},\"string\":{\"patterns\":[{\"begin\":\"(?='')\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"begin\":\"''\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.other.start.nix\"}},\"end\":\"''(?![$']|\\\\\\\\.)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.other.end.nix\"}},\"name\":\"string.quoted.other.nix\",\"patterns\":[{\"match\":\"''([$']|\\\\\\\\.)\",\"name\":\"constant.character.escape.nix\"},{\"include\":\"#interpolation\"}]},{\"include\":\"#expression-cont\"}]},{\"begin\":\"(?=\\\")\",\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#string-quoted\"},{\"include\":\"#expression-cont\"}]},{\"begin\":\"(~?[-+.0-9A-Z_a-z]*(/[-+.0-9A-Z_a-z]+)+)\",\"beginCaptures\":{\"0\":{\"name\":\"string.unquoted.path.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"(<[-+.0-9A-Z_a-z]+(/[-+.0-9A-Z_a-z]+)*>)\",\"beginCaptures\":{\"0\":{\"name\":\"string.unquoted.spath.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]},{\"begin\":\"([A-Za-z][-+.0-9A-Za-z]*:[!$-'*-:=?-Z_a-z~]+)\",\"beginCaptures\":{\"0\":{\"name\":\"string.unquoted.url.nix\"}},\"end\":\"(?=([]),;}]|\\\\b(else|then)\\\\b))\",\"patterns\":[{\"include\":\"#expression-cont\"}]}]},\"string-quoted\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.double.start.nix\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.double.end.nix\"}},\"name\":\"string.quoted.double.nix\",\"patterns\":[{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.nix\"},{\"include\":\"#interpolation\"}]},\"whitespace\":{\"match\":\"\\\\s+\"},\"with-assert\":{\"begin\":\"(?<![-'\\\\w])(with|assert)(?![-'\\\\w])\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.nix\"}},\"end\":\";\",\"patterns\":[{\"include\":\"#expression\"}]}},\"scopeName\":\"source.nix\"}"))
2
2
 
3
3
  export default [
4
4
  lang
package/dist/nushell.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze(JSON.parse("{\"displayName\":\"nushell\",\"name\":\"nushell\",\"patterns\":[{\"include\":\"#define-variable\"},{\"include\":\"#define-alias\"},{\"include\":\"#function\"},{\"include\":\"#extern\"},{\"include\":\"#module\"},{\"include\":\"#use-module\"},{\"include\":\"#expression\"},{\"include\":\"#comment\"}],\"repository\":{\"binary\":{\"begin\":\"\\\\b(0x)(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.numeric.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"name\":\"constant.binary.nushell\",\"patterns\":[{\"match\":\"\\\\h{2}\",\"name\":\"constant.numeric.nushell\"}]},\"braced-expression\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.expression.braced.nushell\",\"patterns\":[{\"begin\":\"(?<=\\\\{)\\\\s*\\\\|\",\"end\":\"\\\\|\",\"name\":\"meta.closure.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"}]},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\w+)\\\\s*(:)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$\\\"((?:[^\\\"\\\\\\\\]|\\\\\\\\.)*)\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\"(?:[^\\\"\\\\\\\\]|\\\\\\\\.)*\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$'([^']*)')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"('[^']*')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"include\":\"#spread\"},{\"include\":\"source.nushell\"}]},\"command\":{\"begin\":\"(?<!\\\\w)(?:(\\\\^)|(?![0-9$]))([\\\\w.!]+(?: (?!-)[\\\\w\\\\-.!]+(?:(?=[ )])|$)|[\\\\w\\\\-.!]+)*|(?<=\\\\^)\\\\$?(?:\\\"[^\\\"]+\\\"|'[^']+'))\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#control-keywords\"},{\"captures\":{\"0\":{\"name\":\"keyword.other.builtin.nushell\"}},\"match\":\"(?:ansi|char) \\\\w+\"},{\"captures\":{\"1\":{\"name\":\"keyword.other.builtin.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st)|b(?:g|its(?: (?:and|not|or|ro[lr]|sh[lr]|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|h(?:ar|unks)|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: (?:info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|f(?:ault)?|scribe|tect columns)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:[el]|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpackz?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:aml|ml)))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: session)?))|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cosh?|sinh?|tanh?)|vg)|c(?:eil|osh?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:inh?|qrt|tddev|um)|tanh?|variance))?)|d|e(?:rge|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|lugin(?: (?:add|list|rm|stop|use))?|net|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains)|unt(?:-null)?)|umulative)|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nt(?:eger|o-(?:df|lazy|nu))|s-(?:duplicated|in|n(?:ot-null|ull)|unique))|join|l(?:ast|it|owercase)|m(?:ax|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise)|p(?:ivot|rofile)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|slice)|ftime))|um(?:mary)?)|take|u(?:n(?:ique|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:an(?:dom(?: (?:b(?:inary|ool)|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|istry query)|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|m(?:d|sgpackz?)|nuon|p(?:arquet|list)|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|n(?:ame|iq(?:-by)?)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![\\\\w-])( (.*))?\"},{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#paren-expression\"}]}},\"match\":\"(?<=\\\\^)(?:\\\\$(\\\"[^\\\"]+\\\"|'[^']+')|\\\"[^\\\"]+\\\"|'[^']+')\",\"name\":\"entity.name.type.external.nushell\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.external.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"([\\\\w.]+(?:-[\\\\w.!]+)*)(?: (.*))?\"},{\"include\":\"#value\"}]}},\"end\":\"(?=[|)};])|$\",\"name\":\"meta.command.nushell\",\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#spread\"},{\"include\":\"#value\"}]},\"comment\":{\"match\":\"(#.*)$\",\"name\":\"comment.nushell\"},\"constant-keywords\":{\"match\":\"\\\\b(?:true|false|null)\\\\b\",\"name\":\"constant.language.nushell\"},\"constant-value\":{\"patterns\":[{\"include\":\"#constant-keywords\"},{\"include\":\"#datetime\"},{\"include\":\"#numbers\"},{\"include\":\"#numbers-hexa\"},{\"include\":\"#numbers-octal\"},{\"include\":\"#numbers-binary\"},{\"include\":\"#binary\"}]},\"control-keywords\":{\"match\":\"(?<![0-9a-zA-Z_\\\\-./:\\\\\\\\])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![0-9a-zA-Z_\\\\-./:\\\\\\\\])\",\"name\":\"keyword.control.nushell\"},\"datetime\":{\"match\":\"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?:T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?(?:\\\\+\\\\d{2}:?\\\\d{2}|Z)?)?\\\\b\",\"name\":\"constant.numeric.nushell\"},\"define-alias\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"((?:export )?alias)\\\\s+([\\\\w\\\\-!]+)\\\\s*(=)\"},\"define-variable\":{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"(let|mut|(?:export\\\\s+)?const)\\\\s+(\\\\w+)\\\\s+(=)\"},\"expression\":{\"patterns\":[{\"include\":\"#pre-command\"},{\"include\":\"#for-loop\"},{\"include\":\"#operators\"},{\"match\":\"\\\\|\",\"name\":\"keyword.control.nushell\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#string-raw\"},{\"include\":\"#command\"},{\"include\":\"#value\"}]},\"extern\":{\"begin\":\"((?:export\\\\s+)?extern)\\\\s+([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\"(?<=])\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"patterns\":[{\"include\":\"#function-parameters\"}]},\"for-loop\":{\"begin\":\"(for)\\\\s+(\\\\$?\\\\w+)\\\\s+(in)\\\\s+(.+)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"},\"4\":{\"patterns\":[{\"include\":\"#value\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.for-loop.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function\":{\"begin\":\"((?:export\\\\s+)?def(?:\\\\s+--\\\\w+)*)\\\\s+([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|`[\\\\w\\\\- ]+`)(\\\\s+--\\\\w+)*\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"},\"3\":{\"name\":\"entity.name.function.nushell\"}},\"end\":\"(?<=})\",\"patterns\":[{\"include\":\"#function-parameters\"},{\"include\":\"#function-body\"},{\"include\":\"#function-inout\"}]},\"function-body\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.begin.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"name\":\"meta.function.body.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function-inout\":{\"patterns\":[{\"include\":\"#types\"},{\"match\":\"->\",\"name\":\"keyword.operator.nushell\"},{\"include\":\"#function-multiple-inout\"}]},\"function-multiple-inout\":{\"begin\":\"(?<=]\\\\s*)(:)\\\\s+(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.in-out.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"include\":\"#types\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.nushell\"}},\"match\":\"\\\\s*(,)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"keyword.operator.nushell\"}},\"match\":\"\\\\s+(->)\\\\s+\"}]},\"function-parameter\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(-{0,2}|\\\\.{3})[\\\\w-]+(?:\\\\((-[\\\\w?])\\\\))?\",\"name\":\"variable.parameter.nushell\"},{\"begin\":\"\\\\??:\\\\s*\",\"end\":\"(?=\\\\s+(?:-{0,2}|\\\\.{3})[\\\\w-]+|\\\\s*(?:[,\\\\]|@=#]|$))\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"@(?=[\\\"'])\",\"end\":\"(?<=[\\\"'])\",\"patterns\":[{\"include\":\"#string\"}]},{\"begin\":\"=\\\\s*\",\"end\":\"(?=\\\\s+-{0,2}[\\\\w-]+|\\\\s*(?:[,\\\\]|#]|$))\",\"name\":\"default.value.nushell\",\"patterns\":[{\"include\":\"#value\"}]}]},\"function-parameters\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.function.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"},{\"include\":\"#comment\"}]},\"internal-variables\":{\"match\":\"\\\\$(?:nu|env)\\\\b\",\"name\":\"variable.language.nushell\"},\"keyword\":{\"match\":\"def(?:-env)?\",\"name\":\"keyword.other.nushell\"},\"module\":{\"begin\":\"((?:export\\\\s+)?module)\\\\s+([\\\\w-]+)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.module.end.nushell\"}},\"name\":\"meta.module.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"numbers\":{\"match\":\"(?<![\\\\w-])_*+[-+]?_*+(?:(?i:NaN|infinity|inf)_*+|(?:\\\\d[\\\\d_]*+\\\\.?|\\\\._*+\\\\d)[\\\\d_]*+(?i:E_*+[-+]?_*+\\\\d[\\\\d_]*+)?)(?i:ns|us|µs|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![\\\\w.])|(?=\\\\.\\\\.))\",\"name\":\"constant.numeric.nushell\"},\"numbers-binary\":{\"match\":\"(?<![\\\\w-])_*+0_*+b_*+[01][01_]*+(?![\\\\w.])\",\"name\":\"constant.numeric.nushell\"},\"numbers-hexa\":{\"match\":\"(?<![\\\\w-])_*+0_*+x_*+\\\\h[_\\\\h]*+(?![\\\\w.])\",\"name\":\"constant.numeric.nushell\"},\"numbers-octal\":{\"match\":\"(?<![\\\\w-])_*+0_*+o_*+[0-7][0-7_]*+(?![\\\\w.])\",\"name\":\"constant.numeric.nushell\"},\"operators\":{\"patterns\":[{\"include\":\"#operators-word\"},{\"include\":\"#operators-symbols\"},{\"include\":\"#ranges\"}]},\"operators-symbols\":{\"match\":\"(?<= )(?:[+\\\\-*/]=?|//|\\\\*\\\\*|!=|[<>=]=?|[!=]~|\\\\+\\\\+=?)(?= |$)\",\"name\":\"keyword.control.nushell\"},\"operators-word\":{\"match\":\"(?<=[ (])(?:mod|in|not-(?:in|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?=[ )]|$)\",\"name\":\"keyword.control.nushell\"},\"parameters\":{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(?<=\\\\s)(-{1,2})[\\\\w-]+\",\"name\":\"variable.parameter.nushell\"},\"paren-expression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.begin.nushell\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.end.nushell\"}},\"name\":\"meta.expression.parenthesis.nushell\",\"patterns\":[{\"include\":\"#expression\"}]},\"pre-command\":{\"begin\":\"(\\\\w+)(=)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"end\":\"(?=\\\\s+)\",\"patterns\":[{\"include\":\"#value\"}]},\"ranges\":{\"match\":\"\\\\.\\\\.<?\",\"name\":\"keyword.control.nushell\"},\"spread\":{\"match\":\"\\\\.\\\\.\\\\.(?=[^\\\\s\\\\]}])\",\"name\":\"keyword.control.nushell\"},\"string\":{\"patterns\":[{\"include\":\"#string-single-quote\"},{\"include\":\"#string-backtick\"},{\"include\":\"#string-double-quote\"},{\"include\":\"#string-interpolated-double\"},{\"include\":\"#string-interpolated-single\"},{\"include\":\"#string-raw\"},{\"include\":\"#string-bare\"}]},\"string-backtick\":{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"`\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"string-bare\":{\"match\":\"[^$\\\\[{(\\\"',|#\\\\s;][^\\\\[\\\\]{}()\\\"'\\\\s,|;]*\",\"name\":\"string.bare.nushell\"},\"string-double-quote\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.double.nushell\",\"patterns\":[{\"match\":\"\\\\w+\"},{\"include\":\"#string-escape\"}]},\"string-escape\":{\"match\":\"\\\\\\\\(?:[bfrnt\\\\\\\\'\\\"/]|u\\\\h{4})\",\"name\":\"constant.character.escape.nushell\"},\"string-interpolated-double\":{\"begin\":\"\\\\$\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.double.nushell\",\"patterns\":[{\"match\":\"\\\\\\\\[()]\",\"name\":\"constant.character.escape.nushell\"},{\"include\":\"#string-escape\"},{\"include\":\"#paren-expression\"}]},\"string-interpolated-single\":{\"begin\":\"\\\\$'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.single.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"string-raw\":{\"begin\":\"r(#+)'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\\\\1\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.raw.nushell\"},\"string-single-quote\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"table\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.table.nushell\",\"patterns\":[{\"include\":\"#spread\"},{\"include\":\"#value\"},{\"match\":\",\",\"name\":\"punctuation.separator.nushell\"}]},\"types\":{\"patterns\":[{\"begin\":\"\\\\b(list)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.list.nushell\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"\\\\b(record)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.record.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.nushell\"}},\"match\":\"([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"|'[^']+')\\\\s*:\\\\s*\"},{\"include\":\"#types\"}]},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.nushell\"}]},\"use-module\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"^\\\\s*((?:export )?use)\\\\s+([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+')(?:\\\\s+([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"^\\\\s*((?:export )?use)\\\\s+([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+')\\\\s*\\\\[\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"(])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([\\\\w\\\\- ]+)(?:\\\\.nu)?(?=$|[\\\"'])\"}]},\"4\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[\\\\w\\\\- ]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>'|(?![\\\"'])\\\\g<path>)(?:\\\\s+([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"|'[^']+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[\\\\w\\\\- ]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>'|(?![\\\"'])\\\\g<path>)\\\\s+\\\\[\",\"beginCaptures\":{\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([\\\\w\\\\- ]+)(?:\\\\.nu)?(?=$|[\\\"'])\"}]}},\"end\":\"(])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"0\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"0\":{\"name\":\"entity.name.function.nushell\"}},\"match\":\"^\\\\s*(?:export )?use\\\\b\"}]},\"value\":{\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#variable-fields\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#table\"},{\"include\":\"#operators\"},{\"include\":\"#paren-expression\"},{\"include\":\"#braced-expression\"},{\"include\":\"#string\"},{\"include\":\"#comment\"}]},\"variable-fields\":{\"match\":\"(?<=[)}\\\\]])(?:\\\\.(?:[\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"))+\",\"name\":\"variable.other.nushell\"},\"variables\":{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#internal-variables\"},{\"match\":\"\\\\$.+\",\"name\":\"variable.other.nushell\"}]},\"2\":{\"name\":\"variable.other.nushell\"}},\"match\":\"(\\\\$[a-zA-Z0-9_]+)((?:\\\\.(?:[\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"))*)\"}},\"scopeName\":\"source.nushell\",\"aliases\":[\"nu\"]}"))
1
+ const lang = Object.freeze(JSON.parse("{\"displayName\":\"nushell\",\"name\":\"nushell\",\"patterns\":[{\"include\":\"#define-variable\"},{\"include\":\"#define-alias\"},{\"include\":\"#function\"},{\"include\":\"#extern\"},{\"include\":\"#module\"},{\"include\":\"#use-module\"},{\"include\":\"#expression\"},{\"include\":\"#comment\"}],\"repository\":{\"binary\":{\"begin\":\"\\\\b(0x)(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.numeric.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"name\":\"constant.binary.nushell\",\"patterns\":[{\"match\":\"\\\\h{2}\",\"name\":\"constant.numeric.nushell\"}]},\"braced-expression\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.expression.braced.nushell\",\"patterns\":[{\"begin\":\"(?<=\\\\{)\\\\s*\\\\|\",\"end\":\"\\\\|\",\"name\":\"meta.closure.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"}]},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\w+)\\\\s*(:)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$\\\"((?:[^\\\"\\\\\\\\]|\\\\\\\\.)*)\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\"(?:[^\\\"\\\\\\\\]|\\\\\\\\.)*\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$'([^']*)')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"('[^']*')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"include\":\"#spread\"},{\"include\":\"source.nushell\"}]},\"command\":{\"begin\":\"(?<!\\\\w)(?:(\\\\^)|(?![$0-9]))([!.\\\\w]+(?: (?!-)[-!.\\\\w]+(?:(?=[ )])|$)|[-!.\\\\w]+)*|(?<=\\\\^)\\\\$?(?:\\\"[^\\\"]+\\\"|'[^']+'))\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#control-keywords\"},{\"captures\":{\"0\":{\"name\":\"keyword.other.builtin.nushell\"}},\"match\":\"(?:ansi|char) \\\\w+\"},{\"captures\":{\"1\":{\"name\":\"keyword.other.builtin.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st)|b(?:g|its(?: (?:and|not|or|ro[lr]|sh[lr]|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|h(?:ar|unks)|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: (?:info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|f(?:ault)?|scribe|tect columns)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:[el]|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpackz?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:a|)ml))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: session)?))|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cosh?|sinh?|tanh?)|vg)|c(?:eil|osh?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:inh?|qrt|tddev|um)|tanh?|variance))?)|d|e(?:rge|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|lugin(?: (?:add|list|rm|stop|use))?|net|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains)|unt(?:-null)?)|umulative)|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nt(?:eger|o-(?:df|lazy|nu))|s-(?:duplicated|in|n(?:ot-n|)ull|unique))|join|l(?:ast|it|owercase)|m(?:ax|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise)|p(?:ivot|rofile)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|slice)|ftime))|um(?:mary)?)|take|u(?:n(?:ique|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:an(?:dom(?: (?:b(?:inary|ool)|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|istry query)|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|m(?:d|sgpackz?)|nuon|p(?:arquet|list)|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|n(?:ame|iq(?:-by)?)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![-\\\\w])( (.*))?\"},{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#paren-expression\"}]}},\"match\":\"(?<=\\\\^)(?:\\\\$(\\\"[^\\\"]+\\\"|'[^']+')|\\\"[^\\\"]+\\\"|'[^']+')\",\"name\":\"entity.name.type.external.nushell\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.external.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"([.\\\\w]+(?:-[!.\\\\w]+)*)(?: (.*))?\"},{\"include\":\"#value\"}]}},\"end\":\"(?=[);|}])|$\",\"name\":\"meta.command.nushell\",\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#spread\"},{\"include\":\"#value\"}]},\"comment\":{\"match\":\"(#.*)$\",\"name\":\"comment.nushell\"},\"constant-keywords\":{\"match\":\"\\\\b(?:true|false|null)\\\\b\",\"name\":\"constant.language.nushell\"},\"constant-value\":{\"patterns\":[{\"include\":\"#constant-keywords\"},{\"include\":\"#datetime\"},{\"include\":\"#numbers\"},{\"include\":\"#numbers-hexa\"},{\"include\":\"#numbers-octal\"},{\"include\":\"#numbers-binary\"},{\"include\":\"#binary\"}]},\"control-keywords\":{\"match\":\"(?<![\\\\--:A-Z\\\\\\\\_a-z])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![\\\\--:A-Z\\\\\\\\_a-z])\",\"name\":\"keyword.control.nushell\"},\"datetime\":{\"match\":\"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?:T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?(?:\\\\+\\\\d{2}:?\\\\d{2}|Z)?)?\\\\b\",\"name\":\"constant.numeric.nushell\"},\"define-alias\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"((?:export )?alias)\\\\s+([-!\\\\w]+)\\\\s*(=)\"},\"define-variable\":{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"(let|mut|(?:export\\\\s+)?const)\\\\s+(\\\\w+)\\\\s+(=)\"},\"expression\":{\"patterns\":[{\"include\":\"#pre-command\"},{\"include\":\"#for-loop\"},{\"include\":\"#operators\"},{\"match\":\"\\\\|\",\"name\":\"keyword.control.nushell\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#string-raw\"},{\"include\":\"#command\"},{\"include\":\"#value\"}]},\"extern\":{\"begin\":\"((?:export\\\\s+)?extern)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\"(?<=])\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"patterns\":[{\"include\":\"#function-parameters\"}]},\"for-loop\":{\"begin\":\"(for)\\\\s+(\\\\$?\\\\w+)\\\\s+(in)\\\\s+(.+)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"},\"4\":{\"patterns\":[{\"include\":\"#value\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.for-loop.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function\":{\"begin\":\"((?:export\\\\s+)?def(?:\\\\s+--\\\\w+)*)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|`[- \\\\w]+`)(\\\\s+--\\\\w+)*\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"},\"3\":{\"name\":\"entity.name.function.nushell\"}},\"end\":\"(?<=})\",\"patterns\":[{\"include\":\"#function-parameters\"},{\"include\":\"#function-body\"},{\"include\":\"#function-inout\"}]},\"function-body\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.begin.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"name\":\"meta.function.body.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function-inout\":{\"patterns\":[{\"include\":\"#types\"},{\"match\":\"->\",\"name\":\"keyword.operator.nushell\"},{\"include\":\"#function-multiple-inout\"}]},\"function-multiple-inout\":{\"begin\":\"(?<=]\\\\s*)(:)\\\\s+(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.in-out.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"include\":\"#types\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.nushell\"}},\"match\":\"\\\\s*(,)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"keyword.operator.nushell\"}},\"match\":\"\\\\s+(->)\\\\s+\"}]},\"function-parameter\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(-{0,2}|\\\\.{3})[-\\\\w]+(?:\\\\((-[?\\\\w])\\\\))?\",\"name\":\"variable.parameter.nushell\"},{\"begin\":\"\\\\??:\\\\s*\",\"end\":\"(?=\\\\s+(?:-{0,2}|\\\\.{3})[-\\\\w]+|\\\\s*(?:[]#,=@|]|$))\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"@(?=[\\\"'])\",\"end\":\"(?<=[\\\"'])\",\"patterns\":[{\"include\":\"#string\"}]},{\"begin\":\"=\\\\s*\",\"end\":\"(?=\\\\s+-{0,2}[-\\\\w]+|\\\\s*(?:[]#,|]|$))\",\"name\":\"default.value.nushell\",\"patterns\":[{\"include\":\"#value\"}]}]},\"function-parameters\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.function.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"},{\"include\":\"#comment\"}]},\"internal-variables\":{\"match\":\"\\\\$(?:nu|env)\\\\b\",\"name\":\"variable.language.nushell\"},\"keyword\":{\"match\":\"def(?:-env)?\",\"name\":\"keyword.other.nushell\"},\"module\":{\"begin\":\"((?:export\\\\s+)?module)\\\\s+([-\\\\w]+)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.module.end.nushell\"}},\"name\":\"meta.module.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"numbers\":{\"match\":\"(?<![-\\\\w])_*+[-+]?_*+(?:(?i:NaN|infinity|inf)_*+|(?:\\\\d[_\\\\d]*+\\\\.?|\\\\._*+\\\\d)[_\\\\d]*+(?i:E_*+[-+]?_*+\\\\d[_\\\\d]*+)?)(?i:ns|us|µs|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![.\\\\w])|(?=\\\\.\\\\.))\",\"name\":\"constant.numeric.nushell\"},\"numbers-binary\":{\"match\":\"(?<![-\\\\w])_*+0_*+b_*+[01][01_]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"numbers-hexa\":{\"match\":\"(?<![-\\\\w])_*+0_*+x_*+\\\\h[_\\\\h]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"numbers-octal\":{\"match\":\"(?<![-\\\\w])_*+0_*+o_*+[0-7][0-7_]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"operators\":{\"patterns\":[{\"include\":\"#operators-word\"},{\"include\":\"#operators-symbols\"},{\"include\":\"#ranges\"}]},\"operators-symbols\":{\"match\":\"(?<= )(?:[-*+/]=?|//|\\\\*\\\\*|!=|[<=>]=?|[!=]~|\\\\+\\\\+=?)(?= |$)\",\"name\":\"keyword.control.nushell\"},\"operators-word\":{\"match\":\"(?<=[ (])(?:mod|in|not-(?:in|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?=[ )]|$)\",\"name\":\"keyword.control.nushell\"},\"parameters\":{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(?<=\\\\s)(-{1,2})[-\\\\w]+\",\"name\":\"variable.parameter.nushell\"},\"paren-expression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.begin.nushell\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.end.nushell\"}},\"name\":\"meta.expression.parenthesis.nushell\",\"patterns\":[{\"include\":\"#expression\"}]},\"pre-command\":{\"begin\":\"(\\\\w+)(=)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"end\":\"(?=\\\\s+)\",\"patterns\":[{\"include\":\"#value\"}]},\"ranges\":{\"match\":\"\\\\.\\\\.<?\",\"name\":\"keyword.control.nushell\"},\"spread\":{\"match\":\"\\\\.\\\\.\\\\.(?=[^]}\\\\s])\",\"name\":\"keyword.control.nushell\"},\"string\":{\"patterns\":[{\"include\":\"#string-single-quote\"},{\"include\":\"#string-backtick\"},{\"include\":\"#string-double-quote\"},{\"include\":\"#string-interpolated-double\"},{\"include\":\"#string-interpolated-single\"},{\"include\":\"#string-raw\"},{\"include\":\"#string-bare\"}]},\"string-backtick\":{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"`\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"string-bare\":{\"match\":\"[^\\\"#$'(,;\\\\[{|\\\\s][^]\\\"'(),;\\\\[{|}\\\\s]*\",\"name\":\"string.bare.nushell\"},\"string-double-quote\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.double.nushell\",\"patterns\":[{\"match\":\"\\\\w+\"},{\"include\":\"#string-escape\"}]},\"string-escape\":{\"match\":\"\\\\\\\\(?:[\\\"'/\\\\\\\\bfnrt]|u\\\\h{4})\",\"name\":\"constant.character.escape.nushell\"},\"string-interpolated-double\":{\"begin\":\"\\\\$\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.double.nushell\",\"patterns\":[{\"match\":\"\\\\\\\\[()]\",\"name\":\"constant.character.escape.nushell\"},{\"include\":\"#string-escape\"},{\"include\":\"#paren-expression\"}]},\"string-interpolated-single\":{\"begin\":\"\\\\$'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.single.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"string-raw\":{\"begin\":\"r(#+)'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\\\\1\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.raw.nushell\"},\"string-single-quote\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"table\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.table.nushell\",\"patterns\":[{\"include\":\"#spread\"},{\"include\":\"#value\"},{\"match\":\",\",\"name\":\"punctuation.separator.nushell\"}]},\"types\":{\"patterns\":[{\"begin\":\"\\\\b(list)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.list.nushell\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"\\\\b(record)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.record.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[^']+')\\\\s*:\\\\s*\"},{\"include\":\"#types\"}]},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.nushell\"}]},\"use-module\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"^\\\\s*((?:export )?use)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+')(?:\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"^\\\\s*((?:export )?use)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+')\\\\s*\\\\[\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"(])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([- \\\\w]+)(?:\\\\.nu)?(?=$|[\\\"'])\"}]},\"4\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[- \\\\w]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>'|(?![\\\"'])\\\\g<path>)(?:\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[^']+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[- \\\\w]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>'|(?![\\\"'])\\\\g<path>)\\\\s+\\\\[\",\"beginCaptures\":{\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([- \\\\w]+)(?:\\\\.nu)?(?=$|[\\\"'])\"}]}},\"end\":\"(])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"0\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"0\":{\"name\":\"entity.name.function.nushell\"}},\"match\":\"^\\\\s*(?:export )?use\\\\b\"}]},\"value\":{\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#variable-fields\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#table\"},{\"include\":\"#operators\"},{\"include\":\"#paren-expression\"},{\"include\":\"#braced-expression\"},{\"include\":\"#string\"},{\"include\":\"#comment\"}]},\"variable-fields\":{\"match\":\"(?<=[])}])(?:\\\\.(?:[-\\\\w]+|\\\"[- \\\\w]+\\\"))+\",\"name\":\"variable.other.nushell\"},\"variables\":{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#internal-variables\"},{\"match\":\"\\\\$.+\",\"name\":\"variable.other.nushell\"}]},\"2\":{\"name\":\"variable.other.nushell\"}},\"match\":\"(\\\\$[0-9A-Z_a-z]+)((?:\\\\.(?:[-\\\\w]+|\\\"[- \\\\w]+\\\"))*)\"}},\"scopeName\":\"source.nushell\",\"aliases\":[\"nu\"]}"))
2
2
 
3
3
  export default [
4
4
  lang