@shikijs/langs 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abap.mjs +1 -1
- package/dist/actionscript-3.mjs +1 -1
- package/dist/ada.mjs +1 -1
- package/dist/angular-expression.mjs +1 -1
- package/dist/angular-let-declaration.mjs +1 -1
- package/dist/angular-template-blocks.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/awk.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/bat.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/berry.mjs +1 -1
- package/dist/bibtex.mjs +1 -1
- package/dist/bicep.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cairo.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/clojure.mjs +1 -1
- package/dist/cmake.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/csharp.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/desktop.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erb.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/fennel.mjs +1 -1
- package/dist/fish.mjs +1 -1
- package/dist/fluent.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/fsharp.mjs +1 -1
- package/dist/gdresource.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gdshader.mjs +1 -1
- package/dist/genie.mjs +1 -1
- package/dist/gherkin.mjs +1 -1
- package/dist/gleam.mjs +1 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/gnuplot.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/groovy.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/handlebars.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/hjson.mjs +1 -1
- package/dist/html-derivative.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/http.mjs +1 -1
- package/dist/hy.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/ini.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.mjs +1 -1
- package/dist/json5.mjs +1 -1
- package/dist/jsonc.mjs +1 -1
- package/dist/jsonl.mjs +1 -1
- package/dist/jsonnet.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/liquid.mjs +1 -1
- package/dist/llvm.mjs +1 -1
- package/dist/log.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.mjs +1 -1
- package/dist/narrat.mjs +1 -1
- package/dist/nim.mjs +1 -1
- package/dist/nix.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/ocaml.mjs +1 -1
- package/dist/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/plsql.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/powerquery.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prisma.mjs +1 -1
- package/dist/prolog.mjs +1 -1
- package/dist/proto.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/purescript.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/qss.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/rel.mjs +1 -1
- package/dist/rst.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/sass.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/solidity.mjs +1 -1
- package/dist/sparql.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/swift.mjs +1 -1
- package/dist/system-verilog.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/talonscript.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/turtle.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vala.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/vhdl.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wgsl.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wit.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/xml.mjs +1 -1
- package/dist/xsl.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/dist/zenscript.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +3 -3
package/dist/move.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Move\",\"name\":\"move\",\"patterns\":[{\"include\":\"#address\"},{\"include\":\"#comments\"},{\"include\":\"#module\"},{\"include\":\"#script\"},{\"include\":\"#annotation\"},{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}],\"repository\":{\"=== DEPRECATED_BELOW ===\":{},\"abilities\":{\"match\":\"\\\\b(store|key|drop|copy)\\\\b\",\"name\":\"support.type.ability.move\"},\"address\":{\"begin\":\"\\\\b(address)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.address.keyword.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.address_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=address)\",\"end\":\"(?=\\\\{)\",\"name\":\"meta.address.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"include\":\"#module\"}]},\"annotation\":{\"begin\":\"#\\\\[\",\"end\":\"]\",\"name\":\"support.constant.annotation.move\",\"patterns\":[{\"match\":\"\\\\b(\\\\w+)\\\\s*(?==)\",\"name\":\"meta.annotation.name.move\"},{\"begin\":\"=\",\"end\":\"(?=[,\\\\]])\",\"name\":\"meta.annotation.value.move\",\"patterns\":[{\"include\":\"#literals\"}]}]},\"as\":{\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},\"as-import\":{\"match\":\"\\\\b(as)\\\\b\",\"name\":\"meta.import.as.move\"},\"block\":{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.block.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"block-comments\":{\"patterns\":[{\"begin\":\"/\\\\*[*!](?![*/])\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.move\"},{\"begin\":\"/\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.move\"}]},\"capitalized\":{\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.use.move\"},\"comments\":{\"name\":\"meta.comments.move\",\"patterns\":[{\"include\":\"#doc-comments\"},{\"include\":\"#line-comments\"},{\"include\":\"#block-comments\"}]},\"const\":{\"begin\":\"\\\\b(const)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.const.move\"}},\"end\":\";\",\"name\":\"meta.const.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#primitives\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"match\":\"\\\\b([A-Z][A-Z_0-9]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"}]},\"control\":{\"match\":\"\\\\b(return|while|loop|if|else|break|continue|abort)\\\\b\",\"name\":\"keyword.control.move\"},\"doc-comments\":{\"begin\":\"///\",\"end\":\"$\",\"name\":\"comment.block.documentation.move\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"markup.underline.link.move\"}},\"match\":\"`(\\\\w+)`\"}]},\"entry\":{\"match\":\"\\\\b(entry)\\\\b\",\"name\":\"storage.modifier.visibility.entry.move\"},\"enum\":{\"begin\":\"\\\\b(enum)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.enum.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.enum.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#type_param\"},{\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.enum.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b(?=\\\\s*\\\\()\",\"name\":\"entity.name.function.enum.move\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.enum.tuple.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.enum.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]}]}]},\"error_const\":{\"match\":\"\\\\b(E[A-Z][A-Za-z0-9_]*)\\\\b\",\"name\":\"variable.other.error.const.move\"},\"escaped_identifier\":{\"begin\":\"`\",\"end\":\"`\",\"name\":\"variable.language.escaped.move\"},\"expr\":{\"name\":\"meta.expression.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#packed_field\"},{\"include\":\"#import\"},{\"include\":\"#as\"},{\"include\":\"#mut\"},{\"include\":\"#let\"},{\"include\":\"#types\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#move_copy\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#label\"},{\"include\":\"#macro_call\"},{\"include\":\"#local_call\"},{\"include\":\"#method_call\"},{\"include\":\"#path_access\"},{\"include\":\"#match_expression\"},{\"match\":\"\\\\$(?=[a-z])\",\"name\":\"keyword.operator.macro.dollar.move\"},{\"match\":\"(?<=\\\\$)[a-z][A-Z_0-9a-z]*\",\"name\":\"variable.other.meta.move\"},{\"match\":\"\\\\b([A-Z][A-Z_]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"},{\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"include\":\"#paren\"},{\"include\":\"#block\"}]},\"expr_generic\":{\"begin\":\"<(?=([\\\\sa-z_,0-9A-Z<>]+>))\",\"end\":\">\",\"name\":\"meta.expression.generic.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"},{\"include\":\"#capitalized\"},{\"include\":\"#expr_generic\"}]},\"friend\":{\"begin\":\"\\\\b(friend)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.friend.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"match\":\"\\\\b([a-zA-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.module.move\"}]},\"fun\":{\"patterns\":[{\"include\":\"#fun_signature\"},{\"include\":\"#block\"}]},\"fun_body\":{\"begin\":\"\\\\{\",\"end\":\"(?<=})\",\"name\":\"meta.fun_body.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"fun_call\":{\"begin\":\"\\\\b(\\\\w+)\\\\s*(?:<[\\\\w\\\\s,]+>)?\\\\s*\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.call.move\"}},\"end\":\"\\\\)\",\"name\":\"meta.fun_call.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#move_copy\"},{\"include\":\"#literals\"},{\"include\":\"#fun_call\"},{\"include\":\"#block\"},{\"include\":\"#mut\"},{\"include\":\"#as\"}]},\"fun_signature\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"end\":\"(?=[;{])\",\"name\":\"meta.fun_signature.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"},{\"begin\":\"(?<=\\\\bfun)\",\"end\":\"(?=[<(])\",\"name\":\"meta.function_name.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]},{\"include\":\"#type_param\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.parentheses.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"}]},{\"match\":\"\\\\b(acquires)\\\\b\",\"name\":\"storage.modifier\"}]},\"has\":{\"match\":\"\\\\b(has)\\\\b\",\"name\":\"keyword.control.ability.has.move\"},\"has_ability\":{\"begin\":\"(?<=[})])\\\\s+(has)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.has.ability.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#abilities\"}]},\"ident\":{\"match\":\"\\\\b([a-zA-Z][A-Z_a-z0-9]*)\\\\b\",\"name\":\"meta.identifier.move\"},\"import\":{\"begin\":\"\\\\b(use)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.import.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#use_fun\"},{\"include\":\"#address_literal\"},{\"include\":\"#as-import\"},{\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#as-import\"},{\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"meta.entity.name.type.module.move\"}]},\"inline\":{\"match\":\"\\\\b(inline)\\\\b\",\"name\":\"storage.modifier.visibility.inline.move\"},\"label\":{\"match\":\"'[a-z][a-z_0-9]*\",\"name\":\"string.quoted.single.label.move\"},\"let\":{\"match\":\"\\\\b(let)\\\\b\",\"name\":\"keyword.control.move\"},\"line-comments\":{\"begin\":\"//\",\"end\":\"$\",\"name\":\"comment.line.double-slash.move\"},\"literals\":{\"name\":\"meta.literal.move\",\"patterns\":[{\"match\":\"@0x\\\\h+\",\"name\":\"support.constant.address.base16.move\"},{\"match\":\"@[a-zA-Z][a-zA-Z_0-9]*\",\"name\":\"support.constant.address.name.move\"},{\"match\":\"0x[_\\\\h]+(?:u(?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.hex.move\"},{\"match\":\"(?<!(?:\\\\w|(?<!\\\\.)\\\\.))[0-9][_0-9]*(?:\\\\.(?!\\\\.)(?:[0-9][_0-9]*)?)?(?:[eE][+\\\\-]?[_0-9]+)?(?:u(?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.move\"},{\"begin\":\"\\\\bb\\\"\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.ascii.move\",\"patterns\":[{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.move\"},{\"match\":\"\\\\\\\\[nrt\\\\x00\\\"]\",\"name\":\"constant.character.escape.move\"},{\"match\":\"\\\\\\\\x\\\\h\\\\h\",\"name\":\"constant.character.escape.hex.move\"},{\"match\":\"[\\\\x00-\\\\x7F]\",\"name\":\"string.quoted.double.raw.move\"}]},{\"begin\":\"x\\\"\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.hex.move\",\"patterns\":[{\"match\":\"\\\\h+\",\"name\":\"constant.character.move\"}]},{\"match\":\"\\\\b(?:true|false)\\\\b\",\"name\":\"constant.language.boolean.move\"},{\"begin\":\"vector\\\\[\",\"end\":\"]\",\"name\":\"meta.vector.literal.macro.move\",\"patterns\":[{\"include\":\"#expr\"}]}]},\"local_call\":{\"match\":\"\\\\b([a-z][_a-z0-9]*)(?=[<(])\",\"name\":\"entity.name.function.call.local.move\"},\"macro\":{\"begin\":\"\\\\b(macro)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.macro.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.macro.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#fun\"}]},\"macro_call\":{\"captures\":{\"2\":{\"name\":\"support.function.macro.move\"}},\"match\":\"(\\\\b|\\\\.)([a-z][A-Za-z0-9_]*)!\",\"name\":\"meta.macro.call\"},\"match_expression\":{\"begin\":\"\\\\b(match)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.match.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.match.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#types\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.match.block.move\",\"patterns\":[{\"match\":\"\\\\b(=>)\\\\b\",\"name\":\"operator.match.move\"},{\"include\":\"#expr\"}]},{\"include\":\"#expr\"}]},\"method_call\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.call.path.move\"}},\"match\":\"\\\\.([a-z][_a-z0-9]*)(?=[<(])\",\"name\":\"meta.path.call.move\"},\"module\":{\"begin\":\"\\\\b(module)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\"(?<=[;}])\",\"name\":\"meta.module.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=\\\\b(module)\\\\b)\",\"end\":\"(?=[;{])\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\b(module))\",\"end\":\"(?=[(:){])\",\"name\":\"constant.other.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]},{\"begin\":\"(?<=::)\",\"end\":\"(?=[\\\\s;{])\",\"name\":\"entity.name.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]}]},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.module_scope.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}]}]},\"module_access\":{\"captures\":{\"1\":{\"name\":\"meta.entity.name.type.accessed.module.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"match\":\"\\\\b(\\\\w+)::(\\\\w+)\\\\b\",\"name\":\"meta.module_access.move\"},\"module_label\":{\"begin\":\"^\\\\s*(module)\\\\b\",\"end\":\";\\\\s*$\",\"name\":\"meta.module.label.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\bmodule\\\\b)\",\"end\":\"(?=[(:){])\",\"name\":\"constant.other.move\"},{\"begin\":\"(?<=::)\",\"end\":\"(?=[\\\\s{])\",\"name\":\"entity.name.type.move\"}]},\"move_copy\":{\"match\":\"\\\\b(move|copy)\\\\b\",\"name\":\"variable.language.move\"},\"mut\":{\"match\":\"\\\\b(mut)\\\\b\",\"name\":\"storage.modifier.mut.move\"},\"native\":{\"match\":\"\\\\b(native)\\\\b\",\"name\":\"storage.modifier.visibility.native.move\"},\"packed_field\":{\"match\":\"[a-z][a-z0-9_]+\\\\s*:\\\\s*(?=\\\\s)\",\"name\":\"meta.struct.field.move\"},\"paren\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.paren.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"path_access\":{\"match\":\"\\\\.[a-z][_a-z0-9]*\\\\b\",\"name\":\"meta.path.access.move\"},\"phantom\":{\"match\":\"\\\\b(phantom)\\\\b\",\"name\":\"keyword.control.phantom.move\"},\"primitives\":{\"match\":\"\\\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\\\b\",\"name\":\"support.type.primitives.move\"},\"public\":{\"match\":\"\\\\b(public)\\\\b\",\"name\":\"storage.modifier.visibility.public.move\"},\"public-scope\":{\"begin\":\"(?<=\\\\b(public))\\\\s*\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.public.scoped.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(friend|script|package)\\\\b\",\"name\":\"keyword.control.public.scope.move\"}]},\"resource_methods\":{\"match\":\"\\\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\\\b\",\"name\":\"support.function.typed.move\"},\"script\":{\"begin\":\"\\\\b(script)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.script.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.script.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.script_scope.move\",\"patterns\":[{\"include\":\"#const\"},{\"include\":\"#comments\"},{\"include\":\"#import\"},{\"include\":\"#fun\"}]}]},\"self_access\":{\"captures\":{\"1\":{\"name\":\"variable.language.self.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"match\":\"\\\\b(Self)::(\\\\w+)\\\\b\",\"name\":\"meta.self_access.move\"},\"spec\":{\"begin\":\"\\\\b(spec)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.spec.move\"}},\"end\":\"(?<=[;}])\",\"name\":\"meta.spec.move\",\"patterns\":[{\"match\":\"\\\\b(module|schema|struct|fun)\",\"name\":\"storage.modifier.spec.target.move\"},{\"match\":\"\\\\b(define)\",\"name\":\"storage.modifier.spec.define.move\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#spec_define\"},{\"include\":\"#spec_keywords\"},{\"include\":\"#control\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]}]},\"spec_block\":{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.spec_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]},\"spec_define\":{\"begin\":\"\\\\b(define)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.move.spec\"}},\"end\":\"(?=[;{])\",\"name\":\"meta.spec_define.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_types\"},{\"include\":\"#types\"},{\"begin\":\"(?<=\\\\bdefine)\",\"end\":\"(?=\\\\()\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]}]},\"spec_keywords\":{\"match\":\"\\\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\\\b\",\"name\":\"keyword.control.move.spec\"},\"spec_types\":{\"match\":\"\\\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\\\b\",\"name\":\"support.type.vector.move\"},\"struct\":{\"begin\":\"\\\\b(struct)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\"(?<=[};)])\",\"name\":\"meta.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.struct.move\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#type_param\"},{\"begin\":\"\\\\(\",\"end\":\"(?<=\\\\))\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"}]},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.struct.body.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#has_ability\"}]},\"struct_pack\":{\"begin\":\"(?<=[A-Za-z0-9_>])\\\\s*\\\\{\",\"end\":\"}\",\"name\":\"meta.struct.pack.move\",\"patterns\":[{\"include\":\"#comments\"}]},\"type_param\":{\"begin\":\"<\",\"end\":\">\",\"name\":\"meta.generic_param.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#phantom\"},{\"include\":\"#capitalized\"},{\"include\":\"#module_access\"},{\"include\":\"#abilities\"}]},\"types\":{\"name\":\"meta.types.move\",\"patterns\":[{\"include\":\"#primitives\"},{\"include\":\"#vector\"}]},\"use_fun\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"end\":\"(?=;)\",\"name\":\"meta.import.fun.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},{\"match\":\"\\\\b(Self)\\\\b\",\"name\":\"variable.language.self.use.fun.move\"},{\"match\":\"\\\\b(_______[a-z][a-z_0-9]+)\\\\b\",\"name\":\"entity.name.function.use.move\"},{\"include\":\"#types\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#capitalized\"}]},\"vector\":{\"match\":\"\\\\b(vector)\\\\b\",\"name\":\"support.type.vector.move\"}},\"scopeName\":\"source.move\"}"))
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Move\",\"name\":\"move\",\"patterns\":[{\"include\":\"#address\"},{\"include\":\"#comments\"},{\"include\":\"#module\"},{\"include\":\"#script\"},{\"include\":\"#annotation\"},{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}],\"repository\":{\"=== DEPRECATED_BELOW ===\":{},\"abilities\":{\"match\":\"\\\\b(store|key|drop|copy)\\\\b\",\"name\":\"support.type.ability.move\"},\"address\":{\"begin\":\"\\\\b(address)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.address.keyword.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.address_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=address)\",\"end\":\"(?=\\\\{)\",\"name\":\"meta.address.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"include\":\"#module\"}]},\"annotation\":{\"begin\":\"#\\\\[\",\"end\":\"]\",\"name\":\"support.constant.annotation.move\",\"patterns\":[{\"match\":\"\\\\b(\\\\w+)\\\\s*(?==)\",\"name\":\"meta.annotation.name.move\"},{\"begin\":\"=\",\"end\":\"(?=[,\\\\]])\",\"name\":\"meta.annotation.value.move\",\"patterns\":[{\"include\":\"#literals\"}]}]},\"as\":{\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},\"as-import\":{\"match\":\"\\\\b(as)\\\\b\",\"name\":\"meta.import.as.move\"},\"block\":{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.block.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"block-comments\":{\"patterns\":[{\"begin\":\"/\\\\*[*!](?![*/])\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.move\"},{\"begin\":\"/\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.move\"}]},\"capitalized\":{\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.use.move\"},\"comments\":{\"name\":\"meta.comments.move\",\"patterns\":[{\"include\":\"#doc-comments\"},{\"include\":\"#line-comments\"},{\"include\":\"#block-comments\"}]},\"const\":{\"begin\":\"\\\\b(const)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.const.move\"}},\"end\":\";\",\"name\":\"meta.const.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#primitives\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"match\":\"\\\\b([A-Z][A-Z_0-9]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"}]},\"control\":{\"match\":\"\\\\b(return|while|loop|if|else|break|continue|abort)\\\\b\",\"name\":\"keyword.control.move\"},\"doc-comments\":{\"begin\":\"///\",\"end\":\"$\",\"name\":\"comment.block.documentation.move\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"markup.underline.link.move\"}},\"match\":\"`(\\\\w+)`\"}]},\"entry\":{\"match\":\"\\\\b(entry)\\\\b\",\"name\":\"storage.modifier.visibility.entry.move\"},\"enum\":{\"begin\":\"\\\\b(enum)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.enum.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.enum.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#type_param\"},{\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.enum.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b(?=\\\\s*\\\\()\",\"name\":\"entity.name.function.enum.move\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.enum.tuple.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.enum.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]}]}]},\"error_const\":{\"match\":\"\\\\b(E[A-Z][A-Za-z0-9_]*)\\\\b\",\"name\":\"variable.other.error.const.move\"},\"escaped_identifier\":{\"begin\":\"`\",\"end\":\"`\",\"name\":\"variable.language.escaped.move\"},\"expr\":{\"name\":\"meta.expression.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#packed_field\"},{\"include\":\"#import\"},{\"include\":\"#as\"},{\"include\":\"#mut\"},{\"include\":\"#let\"},{\"include\":\"#types\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#move_copy\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#label\"},{\"include\":\"#macro_call\"},{\"include\":\"#local_call\"},{\"include\":\"#method_call\"},{\"include\":\"#path_access\"},{\"include\":\"#match_expression\"},{\"match\":\"\\\\$(?=[a-z])\",\"name\":\"keyword.operator.macro.dollar.move\"},{\"match\":\"(?<=\\\\$)[a-z][A-Z_0-9a-z]*\",\"name\":\"variable.other.meta.move\"},{\"match\":\"\\\\b([A-Z][A-Z_]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"},{\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"include\":\"#paren\"},{\"include\":\"#block\"}]},\"expr_generic\":{\"begin\":\"<(?=([\\\\sa-z_,0-9A-Z<>]+>))\",\"end\":\">\",\"name\":\"meta.expression.generic.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"},{\"include\":\"#capitalized\"},{\"include\":\"#expr_generic\"}]},\"friend\":{\"begin\":\"\\\\b(friend)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.friend.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"match\":\"\\\\b([a-zA-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.module.move\"}]},\"fun\":{\"patterns\":[{\"include\":\"#fun_signature\"},{\"include\":\"#block\"}]},\"fun_body\":{\"begin\":\"\\\\{\",\"end\":\"(?<=})\",\"name\":\"meta.fun_body.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"fun_call\":{\"begin\":\"\\\\b(\\\\w+)\\\\s*(?:<[\\\\w\\\\s,]+>)?\\\\s*\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.call.move\"}},\"end\":\"\\\\)\",\"name\":\"meta.fun_call.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#move_copy\"},{\"include\":\"#literals\"},{\"include\":\"#fun_call\"},{\"include\":\"#block\"},{\"include\":\"#mut\"},{\"include\":\"#as\"}]},\"fun_signature\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"end\":\"(?=[;{])\",\"name\":\"meta.fun_signature.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"},{\"begin\":\"(?<=\\\\bfun)\",\"end\":\"(?=[<(])\",\"name\":\"meta.function_name.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]},{\"include\":\"#type_param\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.parentheses.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"}]},{\"match\":\"\\\\b(acquires)\\\\b\",\"name\":\"storage.modifier\"}]},\"has\":{\"match\":\"\\\\b(has)\\\\b\",\"name\":\"keyword.control.ability.has.move\"},\"has_ability\":{\"begin\":\"(?<=[})])\\\\s+(has)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.has.ability.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#abilities\"}]},\"ident\":{\"match\":\"\\\\b([a-zA-Z][A-Z_a-z0-9]*)\\\\b\",\"name\":\"meta.identifier.move\"},\"import\":{\"begin\":\"\\\\b(use)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.import.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#use_fun\"},{\"include\":\"#address_literal\"},{\"include\":\"#as-import\"},{\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#as-import\"},{\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"meta.entity.name.type.module.move\"}]},\"inline\":{\"match\":\"\\\\b(inline)\\\\b\",\"name\":\"storage.modifier.visibility.inline.move\"},\"label\":{\"match\":\"'[a-z][a-z_0-9]*\",\"name\":\"string.quoted.single.label.move\"},\"let\":{\"match\":\"\\\\b(let)\\\\b\",\"name\":\"keyword.control.move\"},\"line-comments\":{\"begin\":\"//\",\"end\":\"$\",\"name\":\"comment.line.double-slash.move\"},\"literals\":{\"name\":\"meta.literal.move\",\"patterns\":[{\"match\":\"@0x\\\\h+\",\"name\":\"support.constant.address.base16.move\"},{\"match\":\"@[a-zA-Z][a-zA-Z_0-9]*\",\"name\":\"support.constant.address.name.move\"},{\"match\":\"0x[_\\\\h]+(?:u(?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.hex.move\"},{\"match\":\"(?<!(?:\\\\w|(?<!\\\\.)\\\\.))[0-9][_0-9]*(?:\\\\.(?!\\\\.)(?:[0-9][_0-9]*)?)?(?:[eE][+-]?[_0-9]+)?(?:u(?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.move\"},{\"begin\":\"\\\\bb\\\"\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.ascii.move\",\"patterns\":[{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.move\"},{\"match\":\"\\\\\\\\[nrt\\\\x00\\\"]\",\"name\":\"constant.character.escape.move\"},{\"match\":\"\\\\\\\\x\\\\h\\\\h\",\"name\":\"constant.character.escape.hex.move\"},{\"match\":\"[\\\\x00-\\\\x7F]\",\"name\":\"string.quoted.double.raw.move\"}]},{\"begin\":\"x\\\"\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.hex.move\",\"patterns\":[{\"match\":\"\\\\h+\",\"name\":\"constant.character.move\"}]},{\"match\":\"\\\\b(?:true|false)\\\\b\",\"name\":\"constant.language.boolean.move\"},{\"begin\":\"vector\\\\[\",\"end\":\"]\",\"name\":\"meta.vector.literal.macro.move\",\"patterns\":[{\"include\":\"#expr\"}]}]},\"local_call\":{\"match\":\"\\\\b([a-z][_a-z0-9]*)(?=[<(])\",\"name\":\"entity.name.function.call.local.move\"},\"macro\":{\"begin\":\"\\\\b(macro)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.macro.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.macro.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#fun\"}]},\"macro_call\":{\"captures\":{\"2\":{\"name\":\"support.function.macro.move\"}},\"match\":\"(\\\\b|\\\\.)([a-z][A-Za-z0-9_]*)!\",\"name\":\"meta.macro.call\"},\"match_expression\":{\"begin\":\"\\\\b(match)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.match.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.match.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#types\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.match.block.move\",\"patterns\":[{\"match\":\"\\\\b(=>)\\\\b\",\"name\":\"operator.match.move\"},{\"include\":\"#expr\"}]},{\"include\":\"#expr\"}]},\"method_call\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.call.path.move\"}},\"match\":\"\\\\.([a-z][_a-z0-9]*)(?=[<(])\",\"name\":\"meta.path.call.move\"},\"module\":{\"begin\":\"\\\\b(module)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\"(?<=[;}])\",\"name\":\"meta.module.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=\\\\b(module)\\\\b)\",\"end\":\"(?=[;{])\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\b(module))\",\"end\":\"(?=[(:){])\",\"name\":\"constant.other.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]},{\"begin\":\"(?<=::)\",\"end\":\"(?=[\\\\s;{])\",\"name\":\"entity.name.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]}]},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.module_scope.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}]}]},\"module_access\":{\"captures\":{\"1\":{\"name\":\"meta.entity.name.type.accessed.module.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"match\":\"\\\\b(\\\\w+)::(\\\\w+)\\\\b\",\"name\":\"meta.module_access.move\"},\"module_label\":{\"begin\":\"^\\\\s*(module)\\\\b\",\"end\":\";\\\\s*$\",\"name\":\"meta.module.label.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\bmodule\\\\b)\",\"end\":\"(?=[(:){])\",\"name\":\"constant.other.move\"},{\"begin\":\"(?<=::)\",\"end\":\"(?=[\\\\s{])\",\"name\":\"entity.name.type.move\"}]},\"move_copy\":{\"match\":\"\\\\b(move|copy)\\\\b\",\"name\":\"variable.language.move\"},\"mut\":{\"match\":\"\\\\b(mut)\\\\b\",\"name\":\"storage.modifier.mut.move\"},\"native\":{\"match\":\"\\\\b(native)\\\\b\",\"name\":\"storage.modifier.visibility.native.move\"},\"packed_field\":{\"match\":\"[a-z][a-z0-9_]+\\\\s*:\\\\s*(?=\\\\s)\",\"name\":\"meta.struct.field.move\"},\"paren\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.paren.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"path_access\":{\"match\":\"\\\\.[a-z][_a-z0-9]*\\\\b\",\"name\":\"meta.path.access.move\"},\"phantom\":{\"match\":\"\\\\b(phantom)\\\\b\",\"name\":\"keyword.control.phantom.move\"},\"primitives\":{\"match\":\"\\\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\\\b\",\"name\":\"support.type.primitives.move\"},\"public\":{\"match\":\"\\\\b(public)\\\\b\",\"name\":\"storage.modifier.visibility.public.move\"},\"public-scope\":{\"begin\":\"(?<=\\\\b(public))\\\\s*\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.public.scoped.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(friend|script|package)\\\\b\",\"name\":\"keyword.control.public.scope.move\"}]},\"resource_methods\":{\"match\":\"\\\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\\\b\",\"name\":\"support.function.typed.move\"},\"script\":{\"begin\":\"\\\\b(script)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.script.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.script.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.script_scope.move\",\"patterns\":[{\"include\":\"#const\"},{\"include\":\"#comments\"},{\"include\":\"#import\"},{\"include\":\"#fun\"}]}]},\"self_access\":{\"captures\":{\"1\":{\"name\":\"variable.language.self.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"match\":\"\\\\b(Self)::(\\\\w+)\\\\b\",\"name\":\"meta.self_access.move\"},\"spec\":{\"begin\":\"\\\\b(spec)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.spec.move\"}},\"end\":\"(?<=[;}])\",\"name\":\"meta.spec.move\",\"patterns\":[{\"match\":\"\\\\b(module|schema|struct|fun)\",\"name\":\"storage.modifier.spec.target.move\"},{\"match\":\"\\\\b(define)\",\"name\":\"storage.modifier.spec.define.move\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"},{\"begin\":\"\\\\{\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#spec_define\"},{\"include\":\"#spec_keywords\"},{\"include\":\"#control\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]}]},\"spec_block\":{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.spec_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]},\"spec_define\":{\"begin\":\"\\\\b(define)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.move.spec\"}},\"end\":\"(?=[;{])\",\"name\":\"meta.spec_define.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_types\"},{\"include\":\"#types\"},{\"begin\":\"(?<=\\\\bdefine)\",\"end\":\"(?=\\\\()\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]}]},\"spec_keywords\":{\"match\":\"\\\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\\\b\",\"name\":\"keyword.control.move.spec\"},\"spec_types\":{\"match\":\"\\\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\\\b\",\"name\":\"support.type.vector.move\"},\"struct\":{\"begin\":\"\\\\b(struct)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\"(?<=[};)])\",\"name\":\"meta.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.struct.move\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#type_param\"},{\"begin\":\"\\\\(\",\"end\":\"(?<=\\\\))\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"}]},{\"begin\":\"\\\\{\",\"end\":\"}\",\"name\":\"meta.struct.body.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#has_ability\"}]},\"struct_pack\":{\"begin\":\"(?<=[A-Za-z0-9_>])\\\\s*\\\\{\",\"end\":\"}\",\"name\":\"meta.struct.pack.move\",\"patterns\":[{\"include\":\"#comments\"}]},\"type_param\":{\"begin\":\"<\",\"end\":\">\",\"name\":\"meta.generic_param.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#phantom\"},{\"include\":\"#capitalized\"},{\"include\":\"#module_access\"},{\"include\":\"#abilities\"}]},\"types\":{\"name\":\"meta.types.move\",\"patterns\":[{\"include\":\"#primitives\"},{\"include\":\"#vector\"}]},\"use_fun\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"end\":\"(?=;)\",\"name\":\"meta.import.fun.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},{\"match\":\"\\\\b(Self)\\\\b\",\"name\":\"variable.language.self.use.fun.move\"},{\"match\":\"\\\\b(_______[a-z][a-z_0-9]+)\\\\b\",\"name\":\"entity.name.function.use.move\"},{\"include\":\"#types\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#capitalized\"}]},\"vector\":{\"match\":\"\\\\b(vector)\\\\b\",\"name\":\"support.type.vector.move\"}},\"scopeName\":\"source.move\"}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/narrat.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Narrat Language\",\"name\":\"narrat\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expression\"}],\"repository\":{\"commands\":{\"patterns\":[{\"match\":\"\\\\b(set|var)\\\\b\",\"name\":\"keyword.commands.variables.narrat\"},{\"match\":\"\\\\b(t(?:alk|hink))\\\\b\",\"name\":\"keyword.commands.text.narrat\"},{\"match\":\"\\\\b(jump|run|wait|return|save|save_prompt)\",\"name\":\"keyword.commands.flow.narrat\"},{\"match\":\"\\\\b(log|clear_dialog)\\\\b\",\"name\":\"keyword.commands.helpers.narrat\"},{\"match\":\"\\\\b(set_screen|empty_layer|set_button)\",\"name\":\"keyword.commands.screens.narrat\"},{\"match\":\"\\\\b(play|pause|stop)\\\\b\",\"name\":\"keyword.commands.audio.narrat\"},{\"match\":\"\\\\b(notify|enable_notifications|disable_notifications)\\\\b\",\"name\":\"keyword.commands.notifications.narrat\"},{\"match\":\"\\\\b(set_stat|get_stat_value|add_stat)\",\"name\":\"keyword.commands.stats.narrat\"},{\"match\":\"\\\\b(neg|abs|random|random_float|random_from_args|min|max|clamp|floor|round|ceil|sqrt|^)\\\\b\",\"name\":\"keyword.commands.math.narrat\"},{\"match\":\"\\\\b(concat|join)\\\\b\",\"name\":\"keyword.commands.string.narrat\"},{\"match\":\"\\\\b(text_field)\\\\b\",\"name\":\"keyword.commands.text_field.narrat\"},{\"match\":\"\\\\b(add_level|set_level|add_xp|roll|get_level|get_xp)\\\\b\",\"name\":\"keyword.commands.skills.narrat\"},{\"match\":\"\\\\b(add_item|remove_item|enable_interaction|disable_interaction|has_item?|item_amount?)\",\"name\":\"keyword.commands.inventory.narrat\"},{\"match\":\"\\\\b(start_quest|start_objective|complete_objective|complete_quest|quest_started?|objective_started?|quest_completed?|objective_completed?)\",\"name\":\"keyword.commands.quests.narrat\"}]},\"comments\":{\"patterns\":[{\"match\":\"//.*$\",\"name\":\"comment.line.narrat\"}]},\"expression\":{\"patterns\":[{\"include\":\"#keywords\"},{\"include\":\"#commands\"},{\"include\":\"#operators\"},{\"include\":\"#primitives\"},{\"include\":\"#strings\"},{\"include\":\"#paren-expression\"}]},\"interpolation\":{\"patterns\":[{\"match\":\"([\\\\w.])+\",\"name\":\"variable.interpolation.narrat\"}]},\"keywords\":{\"patterns\":[{\"match\":\"\\\\b(if|else|choice)\\\\b\",\"name\":\"keyword.control.narrat\"},{\"match\":\"\\\\$[\\\\w|.]+\\\\b\",\"name\":\"variable.value.narrat\"},{\"match\":\"^\\\\w+(?=([\\\\s\\\\w])*:)\",\"name\":\"entity.name.function.narrat\"},{\"match\":\"^\\\\w+(?!([\\\\s\\\\w])*:)\",\"name\":\"invalid.label.narrat\"},{\"match\":\"(?<=\\\\w)[
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Narrat Language\",\"name\":\"narrat\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expression\"}],\"repository\":{\"commands\":{\"patterns\":[{\"match\":\"\\\\b(set|var)\\\\b\",\"name\":\"keyword.commands.variables.narrat\"},{\"match\":\"\\\\b(t(?:alk|hink))\\\\b\",\"name\":\"keyword.commands.text.narrat\"},{\"match\":\"\\\\b(jump|run|wait|return|save|save_prompt)\",\"name\":\"keyword.commands.flow.narrat\"},{\"match\":\"\\\\b(log|clear_dialog)\\\\b\",\"name\":\"keyword.commands.helpers.narrat\"},{\"match\":\"\\\\b(set_screen|empty_layer|set_button)\",\"name\":\"keyword.commands.screens.narrat\"},{\"match\":\"\\\\b(play|pause|stop)\\\\b\",\"name\":\"keyword.commands.audio.narrat\"},{\"match\":\"\\\\b(notify|enable_notifications|disable_notifications)\\\\b\",\"name\":\"keyword.commands.notifications.narrat\"},{\"match\":\"\\\\b(set_stat|get_stat_value|add_stat)\",\"name\":\"keyword.commands.stats.narrat\"},{\"match\":\"\\\\b(neg|abs|random|random_float|random_from_args|min|max|clamp|floor|round|ceil|sqrt|^)\\\\b\",\"name\":\"keyword.commands.math.narrat\"},{\"match\":\"\\\\b(concat|join)\\\\b\",\"name\":\"keyword.commands.string.narrat\"},{\"match\":\"\\\\b(text_field)\\\\b\",\"name\":\"keyword.commands.text_field.narrat\"},{\"match\":\"\\\\b(add_level|set_level|add_xp|roll|get_level|get_xp)\\\\b\",\"name\":\"keyword.commands.skills.narrat\"},{\"match\":\"\\\\b(add_item|remove_item|enable_interaction|disable_interaction|has_item?|item_amount?)\",\"name\":\"keyword.commands.inventory.narrat\"},{\"match\":\"\\\\b(start_quest|start_objective|complete_objective|complete_quest|quest_started?|objective_started?|quest_completed?|objective_completed?)\",\"name\":\"keyword.commands.quests.narrat\"}]},\"comments\":{\"patterns\":[{\"match\":\"//.*$\",\"name\":\"comment.line.narrat\"}]},\"expression\":{\"patterns\":[{\"include\":\"#keywords\"},{\"include\":\"#commands\"},{\"include\":\"#operators\"},{\"include\":\"#primitives\"},{\"include\":\"#strings\"},{\"include\":\"#paren-expression\"}]},\"interpolation\":{\"patterns\":[{\"match\":\"([\\\\w.])+\",\"name\":\"variable.interpolation.narrat\"}]},\"keywords\":{\"patterns\":[{\"match\":\"\\\\b(if|else|choice)\\\\b\",\"name\":\"keyword.control.narrat\"},{\"match\":\"\\\\$[\\\\w|.]+\\\\b\",\"name\":\"variable.value.narrat\"},{\"match\":\"^\\\\w+(?=([\\\\s\\\\w])*:)\",\"name\":\"entity.name.function.narrat\"},{\"match\":\"^\\\\w+(?!([\\\\s\\\\w])*:)\",\"name\":\"invalid.label.narrat\"},{\"match\":\"(?<=\\\\w)[^^](\\\\b\\\\w+\\\\b)(?=([\\\\s\\\\w])*:)\",\"name\":\"entity.other.attribute-name\"}]},\"operators\":{\"patterns\":[{\"match\":\"(&&|\\\\|\\\\||!=|==|>=|<=|[<>!?])\\\\s\",\"name\":\"keyword.operator.logic.narrat\"},{\"match\":\"([+\\\\-*/])\\\\s\",\"name\":\"keyword.operator.arithmetic.narrat\"}]},\"paren-expression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.paren.open\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.paren.close\"}},\"name\":\"expression.group\",\"patterns\":[{\"include\":\"#expression\"}]},\"primitives\":{\"patterns\":[{\"match\":\"\\\\b\\\\d+\\\\b\",\"name\":\"constant.numeric.narrat\"},{\"match\":\"\\\\btrue\\\\b\",\"name\":\"constant.language.true.narrat\"},{\"match\":\"\\\\bfalse\\\\b\",\"name\":\"constant.language.false.narrat\"},{\"match\":\"\\\\bnull\\\\b\",\"name\":\"constant.language.null.narrat\"},{\"match\":\"\\\\bundefined\\\\b\",\"name\":\"constant.language.undefined.narrat\"}]},\"strings\":{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.narrat\",\"patterns\":[{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.narrat\"},{\"begin\":\"%\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.template.open\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.template.close.narrat\"}},\"name\":\"expression.template\",\"patterns\":[{\"include\":\"#expression\"},{\"include\":\"#interpolation\"}]}]}},\"scopeName\":\"source.narrat\",\"aliases\":[\"nar\"]}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
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(((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\"]}"))
|
|
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-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\"}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|