@shikijs/langs 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionscript-3.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/bsl.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/cmake.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/docker.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/fish.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/git-commit.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/haskell.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/html.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/jssm.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.mjs +1 -1
- package/dist/nim.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/perl.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/regexp.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/sdbl.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/splunk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/talonscript.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typst.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/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\":{\"comment\":\"Ability\",\"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\"}},\"comment\":\"Address block\",\"end\":\"(?<=})\",\"name\":\"meta.address_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=address)\",\"comment\":\"Address value/const\",\"end\":\"(?=[{])\",\"name\":\"meta.address.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"comment\":\"Named Address\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"include\":\"#module\"}]},\"annotation\":{\"begin\":\"#\\\\[\",\"end\":\"\\\\]\",\"name\":\"support.constant.annotation.move\",\"patterns\":[{\"comment\":\"Annotation name\",\"match\":\"\\\\b(\\\\w+)\\\\s*(?=\\\\=)\",\"name\":\"meta.annotation.name.move\"},{\"begin\":\"=\",\"comment\":\"Annotation value\",\"end\":\"(?=[,\\\\]])\",\"name\":\"meta.annotation.value.move\",\"patterns\":[{\"include\":\"#literals\"}]}]},\"as\":{\"comment\":\"Keyword as (highlighted)\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},\"as-import\":{\"comment\":\"Keyword as in import statement; not highlighted\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"meta.import.as.move\"},\"block\":{\"begin\":\"{\",\"comment\":\"Block expression or definition\",\"end\":\"}\",\"name\":\"meta.block.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"block-comments\":{\"patterns\":[{\"begin\":\"/\\\\*[\\\\*!](?![\\\\*/])\",\"comment\":\"Block documentation comment\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.move\"},{\"begin\":\"/\\\\*\",\"comment\":\"Block comment\",\"end\":\"\\\\*/\",\"name\":\"comment.block.move\"}]},\"capitalized\":{\"comment\":\"MyType - capitalized type name\",\"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\":{\"comment\":\"Control flow\",\"match\":\"\\\\b(return|while|loop|if|else|break|continue|abort)\\\\b\",\"name\":\"keyword.control.move\"},\"doc-comments\":{\"begin\":\"///\",\"comment\":\"Documentation comment\",\"end\":\"$\",\"name\":\"comment.block.documentation.move\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"markup.underline.link.move\"}},\"comment\":\"Escaped member / link\",\"match\":\"`(\\\\w+)`\"}]},\"entry\":{\"comment\":\"entry\",\"match\":\"\\\\b(entry)\\\\b\",\"name\":\"storage.modifier.visibility.entry.move\"},\"enum\":{\"begin\":\"\\\\b(enum)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.enum.move\"}},\"comment\":\"Enum syntax\",\"end\":\"(?<=})\",\"name\":\"meta.enum.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#type_param\"},{\"comment\":\"Enum name (ident)\",\"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\":\"`\",\"comment\":\"Escaped variable\",\"end\":\"`\",\"name\":\"variable.language.escaped.move\"},\"expr\":{\"comment\":\"Aggregate Expression\",\"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\"},{\"comment\":\"ALL_CONST_CAPS\",\"match\":\"\\\\b([A-Z][A-Z_]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"},{\"comment\":\"CustomType\",\"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<>]+>))\",\"comment\":\"< angle brackets >\",\"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\"},{\"comment\":\"Name of the imported module\",\"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\":\"{\",\"comment\":\"Function body\",\"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\"}},\"comment\":\"Function call\",\"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\"}},\"comment\":\"Function signature\",\"end\":\"(?=[;{])\",\"name\":\"meta.fun_signature.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"},{\"begin\":\"(?<=\\\\bfun)\",\"comment\":\"Function name\",\"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\":\"[(]\",\"comment\":\"Parentheses\",\"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\"}]},{\"comment\":\"Keyword acquires\",\"match\":\"\\\\b(acquires)\\\\b\",\"name\":\"storage.modifier\"}]},\"has\":{\"comment\":\"Has Abilities\",\"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\"},{\"comment\":\"Uppercase entities\",\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"begin\":\"{\",\"comment\":\"Module members\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#as-import\"},{\"comment\":\"Uppercase entities\",\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"comment\":\"Name of the imported module\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"meta.entity.name.type.module.move\"}]},\"inline\":{\"comment\":\"inline\",\"match\":\"\\\\b(inline)\\\\b\",\"name\":\"storage.modifier.visibility.inline.move\"},\"label\":{\"comment\":\"Label\",\"match\":\"'[a-z][a-z_0-9]*\",\"name\":\"string.quoted.single.label.move\"},\"let\":{\"comment\":\"Keyword let\",\"match\":\"\\\\b(let)\\\\b\",\"name\":\"keyword.control.move\"},\"line-comments\":{\"begin\":\"//\",\"comment\":\"Single-line comment\",\"end\":\"$\",\"name\":\"comment.line.double-slash.move\"},\"literals\":{\"comment\":\"Literals supported in Move\",\"name\":\"meta.literal.move\",\"patterns\":[{\"comment\":\"base16 address literal\",\"match\":\"@0x[A-F0-9a-f]+\",\"name\":\"support.constant.address.base16.move\"},{\"comment\":\"named address literal @[ident]\",\"match\":\"@[a-zA-Z][a-zA-Z_0-9]*\",\"name\":\"support.constant.address.name.move\"},{\"comment\":\"Hex literal\",\"match\":\"0x[_a-fA-F0-9]+(?:u(?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.hex.move\"},{\"comment\":\"Numeric literal\",\"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\\\"\",\"comment\":\"vector ascii bytestring literal\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.ascii.move\",\"patterns\":[{\"comment\":\"character escape\",\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.move\"},{\"comment\":\"Special symbol escape\",\"match\":\"\\\\\\\\[nrt\\\\0\\\"]\",\"name\":\"constant.character.escape.move\"},{\"comment\":\"HEX Escape\",\"match\":\"\\\\\\\\x[a-fA-F0-9][A-Fa-f0-9]\",\"name\":\"constant.character.escape.hex.move\"},{\"comment\":\"ASCII Character\",\"match\":\"[\\\\x00-\\\\x7F]\",\"name\":\"string.quoted.double.raw.move\"}]},{\"begin\":\"x\\\"\",\"comment\":\"vector hex literal\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.hex.move\",\"patterns\":[{\"comment\":\"vector hex literal\",\"match\":\"[A-Fa-f0-9]+\",\"name\":\"constant.character.move\"}]},{\"comment\":\"bool literal\",\"match\":\"\\\\b(?:true|false)\\\\b\",\"name\":\"constant.language.boolean.move\"},{\"begin\":\"vector\\\\[\",\"comment\":\"vector literal (macro?)\",\"end\":\"\\\\]\",\"name\":\"meta.vector.literal.macro.move\",\"patterns\":[{\"include\":\"#expr\"}]}]},\"local_call\":{\"comment\":\"call to a local / imported fun\",\"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\"}},\"comment\":\"macro fun [ident] {}\",\"end\":\"(?<=})\",\"name\":\"meta.macro.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#fun\"}]},\"macro_call\":{\"captures\":{\"2\":{\"name\":\"support.function.macro.move\"}},\"comment\":\"Macro fun call\",\"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\"}},\"comment\":\"enum pattern matching\",\"end\":\"(?<=})\",\"name\":\"meta.match.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#types\"},{\"begin\":\"{\",\"comment\":\"Block expression or definition\",\"end\":\"}\",\"name\":\"meta.match.block.move\",\"patterns\":[{\"comment\":\"arrow operator\",\"match\":\"\\\\b(=>)\\\\b\",\"name\":\"operator.match.move\"},{\"include\":\"#expr\"}]},{\"include\":\"#expr\"}]},\"method_call\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.call.path.move\"}},\"comment\":\"<expr>.[ident]<>?() call\",\"match\":\"\\\\.([a-z][_a-z0-9]*)(?=[<\\\\(])\",\"name\":\"meta.path.call.move\"},\"module\":{\"begin\":\"\\\\b(module)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"comment\":\"Module definition\",\"end\":\"(?<=[;}])\",\"name\":\"meta.module.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=\\\\b(module)\\\\b)\",\"comment\":\"Module name\",\"end\":\"(?=[;{])\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\b(module))\",\"comment\":\"Module namespace / address\",\"end\":\"(?=[(::){])\",\"name\":\"constant.other.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]},{\"begin\":\"(?<=::)\",\"comment\":\"Module name\",\"end\":\"(?=[\\\\s;{])\",\"name\":\"entity.name.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]}]},{\"begin\":\"{\",\"comment\":\"Module scope\",\"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\"}},\"comment\":\"Use of module type or method\",\"match\":\"\\\\b(\\\\w+)::(\\\\w+)\\\\b\",\"name\":\"meta.module_access.move\"},\"module_label\":{\"begin\":\"^\\\\s*(module)\\\\b\",\"comment\":\"Module label, inline module definition\",\"end\":\";\\\\s*$\",\"name\":\"meta.module.label.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\bmodule\\\\b)\",\"comment\":\"Module namespace / address\",\"end\":\"(?=[(::){])\",\"name\":\"constant.other.move\"},{\"begin\":\"(?<=::)\",\"comment\":\"Module name\",\"end\":\"(?=[\\\\s{])\",\"name\":\"entity.name.type.move\"}]},\"move_copy\":{\"comment\":\"Keywords move and copy\",\"match\":\"\\\\b(move|copy)\\\\b\",\"name\":\"variable.language.move\"},\"mut\":{\"comment\":\"Mutable reference and let mut\",\"match\":\"\\\\b(mut)\\\\b\",\"name\":\"storage.modifier.mut.move\"},\"native\":{\"comment\":\"native\",\"match\":\"\\\\b(native)\\\\b\",\"name\":\"storage.modifier.visibility.native.move\"},\"packed_field\":{\"comment\":\"[ident]: \",\"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\":{\"comment\":\"<expr>.[ident] access\",\"match\":\"\\\\.[a-z][_a-z0-9]*\\\\b\",\"name\":\"meta.path.access.move\"},\"phantom\":{\"comment\":\"Keyword phantom inside type parameters\",\"match\":\"\\\\b(phantom)\\\\b\",\"name\":\"keyword.control.phantom.move\"},\"primitives\":{\"comment\":\"Primitive types\",\"match\":\"\\\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\\\b\",\"name\":\"support.type.primitives.move\"},\"public\":{\"comment\":\"public\",\"match\":\"\\\\b(public)\\\\b\",\"name\":\"storage.modifier.visibility.public.move\"},\"public-scope\":{\"begin\":\"(?<=\\\\b(public))\\\\s*\\\\(\",\"comment\":\"public (friend/script/package)\",\"end\":\"\\\\)\",\"name\":\"meta.public.scoped.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(friend|script|package)\\\\b\",\"name\":\"keyword.control.public.scope.move\"}]},\"resource_methods\":{\"comment\":\"Methods to work with resource\",\"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\":\"{\",\"comment\":\"Script scope\",\"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\"}},\"comment\":\"Use of Self\",\"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\":[{\"comment\":\"Spec target\",\"match\":\"\\\\b(module|schema|struct|fun)\",\"name\":\"storage.modifier.spec.target.move\"},{\"comment\":\"Spec define inline\",\"match\":\"\\\\b(define)\",\"name\":\"storage.modifier.spec.define.move\"},{\"comment\":\"Target name\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"},{\"begin\":\"{\",\"comment\":\"Spec block\",\"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\":\"{\",\"comment\":\"Spec block\",\"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\"}},\"comment\":\"Spec define keyword\",\"end\":\"(?=[;{])\",\"name\":\"meta.spec_define.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_types\"},{\"include\":\"#types\"},{\"begin\":\"(?<=\\\\bdefine)\",\"comment\":\"Function name\",\"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\":{\"comment\":\"Spec-only 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\"},{\"comment\":\"Struct name (ident)\",\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.struct.move\"},{\"begin\":\"\\\\(\",\"comment\":\"Positional fields\",\"end\":\"\\\\)\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#type_param\"},{\"begin\":\"\\\\(\",\"comment\":\"Simple struct\",\"end\":\"(?<=[)])\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"}]},{\"begin\":\"{\",\"comment\":\"Struct body\",\"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*{\",\"comment\":\"Struct { field: value... }; identified as generic / ident followed by curly's\",\"end\":\"}\",\"name\":\"meta.struct.pack.move\",\"patterns\":[{\"include\":\"#comments\"}]},\"type_param\":{\"begin\":\"<\",\"comment\":\"Generic type param\",\"end\":\">\",\"name\":\"meta.generic_param.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#phantom\"},{\"include\":\"#capitalized\"},{\"include\":\"#module_access\"},{\"include\":\"#abilities\"}]},\"types\":{\"comment\":\"Built-in types + vector\",\"name\":\"meta.types.move\",\"patterns\":[{\"include\":\"#primitives\"},{\"include\":\"#vector\"}]},\"use_fun\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"comment\":\"use { fun } internals\",\"end\":\"(?=;)\",\"name\":\"meta.import.fun.move\",\"patterns\":[{\"include\":\"#comments\"},{\"comment\":\"as keyword\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},{\"comment\":\"Self keyword\",\"match\":\"\\\\b(Self)\\\\b\",\"name\":\"variable.language.self.use.fun.move\"},{\"comment\":\"Function name\",\"match\":\"\\\\b(_______[a-z][a-z_0-9]+)\\\\b\",\"name\":\"entity.name.function.use.move\"},{\"include\":\"#types\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#capitalized\"}]},\"vector\":{\"comment\":\"vector type\",\"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[A-F0-9a-f]+\",\"name\":\"support.constant.address.base16.move\"},{\"match\":\"@[a-zA-Z][a-zA-Z_0-9]*\",\"name\":\"support.constant.address.name.move\"},{\"match\":\"0x[_a-fA-F0-9]+(?: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\\\\0\\\"]\",\"name\":\"constant.character.escape.move\"},{\"match\":\"\\\\\\\\x[a-fA-F0-9][A-Fa-f0-9]\",\"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\":\"[A-Fa-f0-9]+\",\"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/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\"}]},{\"comment\":\"A nim procedure or method\",\"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 \\\"\\\"\\\"\",\"comment\":\"A discarded triple string literal comment\",\"end\":\"\\\"\\\"\\\"(?!\\\")\",\"name\":\"comment.line.discarded.nim\"},{\"include\":\"#float_literal\"},{\"include\":\"#integer_literal\"},{\"comment\":\"Operator as function name\",\"match\":\"(?<=\\\\`)[^\\\\` ]+(?=\\\\`)\",\"name\":\"entity.name.function.nim\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.export\"}},\"comment\":\"Export qualifier.\",\"match\":\"\\\\b\\\\s*(\\\\*)(?:\\\\s*(?=[,:])|\\\\s+(?=[=]))\"},{\"captures\":{\"1\":{\"name\":\"support.type.nim\"},\"2\":{\"name\":\"keyword.control.export\"}},\"comment\":\"Export qualifier following a type def.\",\"match\":\"\\\\b([A-Z]\\\\w+)(\\\\*)\"},{\"include\":\"#string_literal\"},{\"comment\":\"Language Constants.\",\"match\":\"\\\\b(true|false|Inf|NegInf|NaN|nil)\\\\b\",\"name\":\"constant.language.nim\"},{\"comment\":\"Keywords that affect program control flow or scope.\",\"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\"},{\"comment\":\"Keyword boolean operators for expressions.\",\"match\":\"(\\\\b(and|in|is|isnot|not|notin|or|xor)\\\\b)\",\"name\":\"keyword.boolean.nim\"},{\"comment\":\"Generic operators for expressions.\",\"match\":\"(=|\\\\+|-|\\\\*|/|<|>|@|\\\\$|~|&|%|!|\\\\?|\\\\^|\\\\.|:|\\\\\\\\)+\",\"name\":\"keyword.operator.nim\"},{\"comment\":\"Other keywords.\",\"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\"},{\"comment\":\"Invalid and unused keywords.\",\"match\":\"(\\\\b(generic|interface|lambda|out|shared)\\\\b)\",\"name\":\"invalid.illegal.invalid-keyword.nim\"},{\"comment\":\"Common functions\",\"match\":\"\\\\b(new|await|assert|echo|defined|declared|newException|countup|countdown|high|low)\\\\b\",\"name\":\"keyword.other.common.function.nim\"},{\"comment\":\"Built-in, concrete types.\",\"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\"},{\"comment\":\"Built-in, generic types.\",\"match\":\"\\\\b(range|array|seq|set|pointer)\\\\b\",\"name\":\"storage.type.generic.nim\"},{\"comment\":\"Special types.\",\"match\":\"\\\\b(openarray|varargs|void)\\\\b\",\"name\":\"storage.type.generic.nim\"},{\"comment\":\"Other constants.\",\"match\":\"\\\\b[A-Z][A-Z0-9_]+\\\\b\",\"name\":\"support.constant.nim\"},{\"comment\":\"Other types.\",\"match\":\"\\\\b[A-Z]\\\\w+\\\\b\",\"name\":\"support.type.nim\"},{\"comment\":\"Function call.\",\"match\":\"\\\\b\\\\w+\\\\b(?=(\\\\[([a-zA-Z0-9_,]|\\\\s)+\\\\])?\\\\()\",\"name\":\"support.function.any-method.nim\"},{\"comment\":\"Function call (no parenthesis).\",\"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\":\"(\\\")\\\"\\\"(?!\\\")(\\\\.{0,1}\\\\})?\",\"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([[:alpha:]]\\\\w*)(?:\\\\s|\\\\s*:)\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"(?=\\\\.?\\\\}|,)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"\\\\b([[:alpha:]]\\\\w*)\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"captures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"match\":\"\\\\b([[:alpha:]]\\\\w*)(?=\\\\.?\\\\}|,)\"},{\"begin\":\"\\\\b([[: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([[: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\"}},\"comment\":\"tmpl specifier\",\"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\":\"\\\\\\\\[cC]|\\\\\\\\[rR]\",\"name\":\"constant.character.escape.carriagereturn.nim\"},{\"match\":\"\\\\\\\\[lL]|\\\\\\\\[nN]\",\"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(b|B)[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(b|B)[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\"}},\"comment\":\"Double Quoted String\",\"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\"}},\"comment\":\"Single quoted character literal\",\"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\"}},\"comment\":\"Triple Quoted String\",\"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\"}},\"comment\":\"Raw Triple Quoted String\",\"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\":\"(\\\")\\\"\\\"(?!\\\")(\\\\.{0,1}\\\\})?\",\"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([[:alpha:]]\\\\w*)(?:\\\\s|\\\\s*:)\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"(?=\\\\.?\\\\}|,)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"begin\":\"\\\\b([[:alpha:]]\\\\w*)\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"source.nim\"}]},{\"captures\":{\"1\":{\"name\":\"meta.preprocessor.pragma.nim\"}},\"match\":\"\\\\b([[:alpha:]]\\\\w*)(?=\\\\.?\\\\}|,)\"},{\"begin\":\"\\\\b([[: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([[: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\":\"\\\\\\\\[cC]|\\\\\\\\[rR]\",\"name\":\"constant.character.escape.carriagereturn.nim\"},{\"match\":\"\\\\\\\\[lL]|\\\\\\\\[nN]\",\"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(b|B)[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(b|B)[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/nushell.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"nushell\",\"name\":\"nushell\",\"patterns\":[{\"include\":\"#define-variable\"},{\"include\":\"#define-alias\"},{\"include\":\"#function\"},{\"include\":\"#extern\"},{\"include\":\"#module\"},{\"include\":\"#use-module\"},{\"include\":\"#expression\"},{\"include\":\"#comment\"}],\"repository\":{\"binary\":{\"begin\":\"\\\\b(0x)(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.numeric.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"name\":\"constant.binary.nushell\",\"patterns\":[{\"match\":\"[0-9a-fA-F]{2}\",\"name\":\"constant.numeric.nushell\"}]},\"braced-expression\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.expression.braced.nushell\",\"patterns\":[{\"begin\":\"(?<=\\\\{)\\\\s*\\\\|\",\"end\":\"\\\\|\",\"name\":\"meta.closure.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"}]},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\w+)\\\\s*(:)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$\\\"((?:[^\\\"\\\\\\\\]|\\\\\\\\.)*)\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\"(?:[^\\\"\\\\\\\\]|\\\\\\\\.)*\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$'([^']*)')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"('[^']*')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"include\":\"#spread\"},{\"include\":\"source.nushell\"}]},\"command\":{\"begin\":\"(?<!\\\\w)(?:(\\\\^)|(?![0-9]|\\\\$))([\\\\w.!]+(?:(?: (?!-)[\\\\w\\\\-.!]+(?:(?= |\\\\))|$)|[\\\\w\\\\-.!]+))*|(?<=\\\\^)\\\\$?(?:\\\"[^\\\"]+\\\"|'[^']+'))\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#control-keywords\"},{\"captures\":{\"0\":{\"name\":\"keyword.other.builtin.nushell\"}},\"match\":\"(?:ansi|char) \\\\w+\"},{\"captures\":{\"1\":{\"name\":\"keyword.other.builtin.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"comment\":\"Regex generated with list-to-tree (https://github.com/glcraft/list-to-tree)\",\"match\":\"(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st)|b(?:g|its(?: (?:and|not|or|ro(?:l|r)|sh(?:l|r)|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|h(?:ar|unks)|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: (?:info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|f(?:ault)?|scribe|tect columns)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:e|l|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpack(?:z)?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:aml|ml)))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: session)?))|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cos(?:h)?|sin(?:h)?|tan(?:h)?)|vg)|c(?:eil|os(?:h)?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:in(?:h)?|qrt|tddev|um)|tan(?:h)?|variance))?)|d|e(?:rge|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|lugin(?: (?:add|list|rm|stop|use))?|net|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains)|unt(?:-null)?)|umulative)|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nt(?:eger|o-(?:df|lazy|nu))|s-(?:duplicated|in|n(?:ot-null|ull)|unique))|join|l(?:ast|it|owercase)|m(?:ax|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise)|p(?:ivot|rofile)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|slice)|ftime))|um(?:mary)?)|take|u(?:n(?:ique|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:an(?:dom(?: (?:b(?:inary|ool)|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|istry query)|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|m(?:d|sgpack(?:z)?)|nuon|p(?:arquet|list)|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|n(?:ame|iq(?:-by)?)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![\\\\w-])( (.*))?\"},{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#paren-expression\"}]}},\"match\":\"(?<=\\\\^)(?:\\\\$(\\\"[^\\\"]+\\\"|'[^']+')|\\\"[^\\\"]+\\\"|'[^']+')\",\"name\":\"entity.name.type.external.nushell\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.external.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"([\\\\w.]+(?:-[\\\\w.!]+)*)(?: (.*))?\"},{\"include\":\"#value\"}]}},\"end\":\"(?=\\\\||\\\\)|\\\\}|;)|$\",\"name\":\"meta.command.nushell\",\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#spread\"},{\"include\":\"#value\"}]},\"comment\":{\"match\":\"(#.*)$\",\"name\":\"comment.nushell\"},\"constant-keywords\":{\"match\":\"\\\\b(?:true|false|null)\\\\b\",\"name\":\"constant.language.nushell\"},\"constant-value\":{\"patterns\":[{\"include\":\"#constant-keywords\"},{\"include\":\"#datetime\"},{\"include\":\"#numbers\"},{\"include\":\"#numbers-hexa\"},{\"include\":\"#binary\"}]},\"control-keywords\":{\"comment\":\"Regex generated with list-to-tree (https://github.com/glcraft/list-to-tree)\",\"match\":\"(?<![0-9a-zA-Z_\\\\-.\\\\/:\\\\\\\\])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![0-9a-zA-Z_\\\\-.\\\\/:\\\\\\\\])\",\"name\":\"keyword.control.nushell\"},\"datetime\":{\"match\":\"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?:T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?(?:\\\\+\\\\d{2}:?\\\\d{2}|Z)?)?\\\\b\",\"name\":\"constant.numeric.nushell\"},\"define-alias\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"((?:export )?alias)\\\\s+([\\\\w\\\\-!]+)\\\\s*(=)\"},\"define-variable\":{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"(let|mut|(?:export\\\\s+)?const)\\\\s+(\\\\w+)\\\\s+(=)\"},\"expression\":{\"patterns\":[{\"include\":\"#pre-command\"},{\"include\":\"#for-loop\"},{\"include\":\"#operators\"},{\"match\":\"\\\\|\",\"name\":\"keyword.control.nushell\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#command\"},{\"include\":\"#value\"}]},\"extern\":{\"begin\":\"((?:export\\\\s+)?extern)\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\"(?<=\\\\])\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"patterns\":[{\"include\":\"#function-parameters\"}]},\"for-loop\":{\"begin\":\"(for)\\\\s+(\\\\$?\\\\w+)\\\\s+(in)\\\\s+(.+)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"},\"4\":{\"patterns\":[{\"include\":\"#value\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.for-loop.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function\":{\"begin\":\"((?:export\\\\s+)?def(?:\\\\s+--\\\\w+)*)\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|`[\\\\w\\\\- ]+`)(\\\\s+--\\\\w+)*\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"},\"3\":{\"name\":\"entity.name.function.nushell\"}},\"end\":\"(?<=\\\\})\",\"patterns\":[{\"include\":\"#function-parameters\"},{\"include\":\"#function-body\"},{\"include\":\"#function-inout\"}]},\"function-body\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.begin.nushell\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"name\":\"meta.function.body.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function-inout\":{\"patterns\":[{\"include\":\"#types\"},{\"match\":\"->\",\"name\":\"keyword.operator.nushell\"},{\"include\":\"#function-multiple-inout\"}]},\"function-multiple-inout\":{\"begin\":\"(?<=]\\\\s*)(:)\\\\s+(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.in-out.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"include\":\"#types\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.nushell\"}},\"match\":\"\\\\s*(,)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"keyword.operator.nushell\"}},\"match\":\"\\\\s+(->)\\\\s+\"}]},\"function-parameter\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(-{0,2}|\\\\.{3})[\\\\w-]+(?:\\\\((-[\\\\w?])\\\\))?\",\"name\":\"variable.parameter.nushell\"},{\"begin\":\"\\\\??:\\\\s*\",\"end\":\"(?=(?:\\\\s+(?:-{0,2}|\\\\.{3})[\\\\w-]+)|(?:\\\\s*(?:,|\\\\]|\\\\||@|=|#|$)))\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"@(?=\\\"|')\",\"end\":\"(?<=\\\"|')\",\"patterns\":[{\"include\":\"#string\"}]},{\"begin\":\"=\\\\s*\",\"end\":\"(?=(?:\\\\s+-{0,2}[\\\\w-]+)|(?:\\\\s*(?:,|\\\\]|\\\\||#|$)))\",\"name\":\"default.value.nushell\",\"patterns\":[{\"include\":\"#value\"}]}]},\"function-parameters\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.function.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"},{\"include\":\"#comment\"}]},\"internal-variables\":{\"match\":\"\\\\$(?:nu|env)\\\\b\",\"name\":\"variable.language.nushell\"},\"keyword\":{\"match\":\"(?:def(?:-env)?)\",\"name\":\"keyword.other.nushell\"},\"module\":{\"begin\":\"((?:export\\\\s+)?module)\\\\s+([\\\\w\\\\-]+)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.module.end.nushell\"}},\"name\":\"meta.module.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"numbers\":{\"match\":\"(?<![\\\\w-])[-+]?(?:\\\\d+|\\\\d{1,3}(?:_\\\\d{3})*)(?:\\\\.\\\\d*)?(?i:ns|us|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![\\\\w.])|(?=\\\\.\\\\.))\",\"name\":\"constant.numeric.nushell\"},\"numbers-hexa\":{\"match\":\"(?<![\\\\w-])0x[0-9a-fA-F]+(?![\\\\w.])\",\"name\":\"constant.numeric.nushell\"},\"operators\":{\"patterns\":[{\"include\":\"#operators-word\"},{\"include\":\"#operators-symbols\"},{\"include\":\"#ranges\"}]},\"operators-symbols\":{\"match\":\"(?<= )(?:(?:\\\\+|\\\\-|\\\\*|\\\\/)=?|\\\\/\\\\/|\\\\*\\\\*|!=|[<>=]=?|[!=]~|\\\\+\\\\+=?)(?= |$)\",\"name\":\"keyword.control.nushell\"},\"operators-word\":{\"match\":\"(?<= |\\\\()(?:mod|in|not-in|not|and|or|xor|bit-or|bit-and|bit-xor|bit-shl|bit-shr|starts-with|ends-with)(?= |\\\\)|$)\",\"name\":\"keyword.control.nushell\"},\"parameters\":{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(?<=\\\\s)(-{1,2})[\\\\w-]+\",\"name\":\"variable.parameter.nushell\"},\"paren-expression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.begin.nushell\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.end.nushell\"}},\"name\":\"meta.expression.parenthesis.nushell\",\"patterns\":[{\"include\":\"#expression\"}]},\"pre-command\":{\"begin\":\"(\\\\w+)(=)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"end\":\"(?=\\\\s+)\",\"patterns\":[{\"include\":\"#value\"}]},\"ranges\":{\"match\":\"\\\\.\\\\.<?\",\"name\":\"keyword.control.nushell\"},\"spread\":{\"match\":\"\\\\.\\\\.\\\\.(?=[^\\\\s\\\\]}])\",\"name\":\"keyword.control.nushell\"},\"string\":{\"patterns\":[{\"include\":\"#string-single-quote\"},{\"include\":\"#string-backtick\"},{\"include\":\"#string-double-quote\"},{\"include\":\"#string-interpolated-double\"},{\"include\":\"#string-interpolated-single\"},{\"include\":\"#string-bare\"}]},\"string-backtick\":{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"`\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"string-bare\":{\"match\":\"[^$\\\\[{(\\\"',|#\\\\s|][^\\\\[\\\\]{}()\\\"'\\\\s#,|]*\",\"name\":\"string.bare.nushell\"},\"string-double-quote\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.double.nushell\",\"patterns\":[{\"match\":\"\\\\w+\"},{\"include\":\"#string-escape\"}]},\"string-escape\":{\"match\":\"\\\\\\\\(?:[bfrnt\\\\\\\\'\\\"/]|u[0-9a-fA-F]{4})\",\"name\":\"constant.character.escape.nushell\"},\"string-interpolated-double\":{\"begin\":\"\\\\$\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.double.nushell\",\"patterns\":[{\"match\":\"\\\\\\\\[()]\",\"name\":\"constant.character.escape.nushell\"},{\"include\":\"#string-escape\"},{\"include\":\"#paren-expression\"}]},\"string-interpolated-single\":{\"begin\":\"\\\\$'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.single.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"string-single-quote\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"table\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.table.nushell\",\"patterns\":[{\"include\":\"#spread\"},{\"include\":\"#value\"},{\"match\":\",\",\"name\":\"punctuation.separator.nushell\"}]},\"types\":{\"patterns\":[{\"begin\":\"\\\\b(list)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.list.nushell\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"\\\\b(record)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.record.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.nushell\"}},\"match\":\"([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[^']+')\\\\s*:\\\\s*\"},{\"include\":\"#types\"}]},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.nushell\"}]},\"use-module\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"^\\\\s*((?:export )?use)\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+')(?:\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"^\\\\s*((?:export )?use)\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+')\\\\s*\\\\[\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"(\\\\])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([\\\\w\\\\- ]+)(?:\\\\.nu)?(?=$|\\\"|')\"}]},\"4\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"(?<path>(?:/|\\\\\\\\|~[\\\\/\\\\\\\\]|\\\\.\\\\.?[\\\\/\\\\\\\\])?(?:[^\\\\/\\\\\\\\]+[\\\\/\\\\\\\\])*[\\\\w\\\\- ]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>\\\\'|(?![\\\"'])\\\\g<path>)(?:\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[^']+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"(?<path>(?:/|\\\\\\\\|~[\\\\/\\\\\\\\]|\\\\.\\\\.?[\\\\/\\\\\\\\])?(?:[^\\\\/\\\\\\\\]+[\\\\/\\\\\\\\])*[\\\\w\\\\- ]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>\\\\'|(?![\\\"'])\\\\g<path>)\\\\s+\\\\[\",\"beginCaptures\":{\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([\\\\w\\\\- ]+)(?:\\\\.nu)?(?=$|\\\"|')\"}]}},\"end\":\"(\\\\])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"0\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"0\":{\"name\":\"entity.name.function.nushell\"}},\"match\":\"^\\\\s*(?:export )?use\\\\b\"}]},\"value\":{\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#variable-fields\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#table\"},{\"include\":\"#operators\"},{\"include\":\"#paren-expression\"},{\"include\":\"#braced-expression\"},{\"include\":\"#string\"},{\"include\":\"#comment\"}]},\"variable-fields\":{\"match\":\"(?<=\\\\)|\\\\}|\\\\])(?:\\\\.(?:[\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"))+\",\"name\":\"variable.other.nushell\"},\"variables\":{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#internal-variables\"},{\"match\":\"\\\\$.+\",\"name\":\"variable.other.nushell\"}]},\"2\":{\"name\":\"variable.other.nushell\"}},\"match\":\"(\\\\$[a-zA-Z0-9_]+)((?:\\\\.(?:[\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"))*)\"}},\"scopeName\":\"source.nushell\",\"aliases\":[\"nu\"]}"))
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"nushell\",\"name\":\"nushell\",\"patterns\":[{\"include\":\"#define-variable\"},{\"include\":\"#define-alias\"},{\"include\":\"#function\"},{\"include\":\"#extern\"},{\"include\":\"#module\"},{\"include\":\"#use-module\"},{\"include\":\"#expression\"},{\"include\":\"#comment\"}],\"repository\":{\"binary\":{\"begin\":\"\\\\b(0x)(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.numeric.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"name\":\"constant.binary.nushell\",\"patterns\":[{\"match\":\"[0-9a-fA-F]{2}\",\"name\":\"constant.numeric.nushell\"}]},\"braced-expression\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.expression.braced.nushell\",\"patterns\":[{\"begin\":\"(?<=\\\\{)\\\\s*\\\\|\",\"end\":\"\\\\|\",\"name\":\"meta.closure.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"}]},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\w+)\\\\s*(:)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$\\\"((?:[^\\\"\\\\\\\\]|\\\\\\\\.)*)\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\"(?:[^\\\"\\\\\\\\]|\\\\\\\\.)*\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$'([^']*)')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"('[^']*')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"include\":\"#spread\"},{\"include\":\"source.nushell\"}]},\"command\":{\"begin\":\"(?<!\\\\w)(?:(\\\\^)|(?![0-9]|\\\\$))([\\\\w.!]+(?:(?: (?!-)[\\\\w\\\\-.!]+(?:(?= |\\\\))|$)|[\\\\w\\\\-.!]+))*|(?<=\\\\^)\\\\$?(?:\\\"[^\\\"]+\\\"|'[^']+'))\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#control-keywords\"},{\"captures\":{\"0\":{\"name\":\"keyword.other.builtin.nushell\"}},\"match\":\"(?:ansi|char) \\\\w+\"},{\"captures\":{\"1\":{\"name\":\"keyword.other.builtin.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st)|b(?:g|its(?: (?:and|not|or|ro(?:l|r)|sh(?:l|r)|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|h(?:ar|unks)|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: (?:info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|f(?:ault)?|scribe|tect columns)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:e|l|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpack(?:z)?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:aml|ml)))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: session)?))|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cos(?:h)?|sin(?:h)?|tan(?:h)?)|vg)|c(?:eil|os(?:h)?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:in(?:h)?|qrt|tddev|um)|tan(?:h)?|variance))?)|d|e(?:rge|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|lugin(?: (?:add|list|rm|stop|use))?|net|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains)|unt(?:-null)?)|umulative)|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nt(?:eger|o-(?:df|lazy|nu))|s-(?:duplicated|in|n(?:ot-null|ull)|unique))|join|l(?:ast|it|owercase)|m(?:ax|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise)|p(?:ivot|rofile)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|slice)|ftime))|um(?:mary)?)|take|u(?:n(?:ique|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:an(?:dom(?: (?:b(?:inary|ool)|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|istry query)|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|m(?:d|sgpack(?:z)?)|nuon|p(?:arquet|list)|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|n(?:ame|iq(?:-by)?)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![\\\\w-])( (.*))?\"},{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#paren-expression\"}]}},\"match\":\"(?<=\\\\^)(?:\\\\$(\\\"[^\\\"]+\\\"|'[^']+')|\\\"[^\\\"]+\\\"|'[^']+')\",\"name\":\"entity.name.type.external.nushell\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.external.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"([\\\\w.]+(?:-[\\\\w.!]+)*)(?: (.*))?\"},{\"include\":\"#value\"}]}},\"end\":\"(?=\\\\||\\\\)|\\\\}|;)|$\",\"name\":\"meta.command.nushell\",\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#spread\"},{\"include\":\"#value\"}]},\"comment\":{\"match\":\"(#.*)$\",\"name\":\"comment.nushell\"},\"constant-keywords\":{\"match\":\"\\\\b(?:true|false|null)\\\\b\",\"name\":\"constant.language.nushell\"},\"constant-value\":{\"patterns\":[{\"include\":\"#constant-keywords\"},{\"include\":\"#datetime\"},{\"include\":\"#numbers\"},{\"include\":\"#numbers-hexa\"},{\"include\":\"#binary\"}]},\"control-keywords\":{\"match\":\"(?<![0-9a-zA-Z_\\\\-.\\\\/:\\\\\\\\])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![0-9a-zA-Z_\\\\-.\\\\/:\\\\\\\\])\",\"name\":\"keyword.control.nushell\"},\"datetime\":{\"match\":\"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?:T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?(?:\\\\+\\\\d{2}:?\\\\d{2}|Z)?)?\\\\b\",\"name\":\"constant.numeric.nushell\"},\"define-alias\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"((?:export )?alias)\\\\s+([\\\\w\\\\-!]+)\\\\s*(=)\"},\"define-variable\":{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"(let|mut|(?:export\\\\s+)?const)\\\\s+(\\\\w+)\\\\s+(=)\"},\"expression\":{\"patterns\":[{\"include\":\"#pre-command\"},{\"include\":\"#for-loop\"},{\"include\":\"#operators\"},{\"match\":\"\\\\|\",\"name\":\"keyword.control.nushell\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#command\"},{\"include\":\"#value\"}]},\"extern\":{\"begin\":\"((?:export\\\\s+)?extern)\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\"(?<=\\\\])\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"patterns\":[{\"include\":\"#function-parameters\"}]},\"for-loop\":{\"begin\":\"(for)\\\\s+(\\\\$?\\\\w+)\\\\s+(in)\\\\s+(.+)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"},\"4\":{\"patterns\":[{\"include\":\"#value\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.for-loop.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function\":{\"begin\":\"((?:export\\\\s+)?def(?:\\\\s+--\\\\w+)*)\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|`[\\\\w\\\\- ]+`)(\\\\s+--\\\\w+)*\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.type.nushell\"},\"3\":{\"name\":\"entity.name.function.nushell\"}},\"end\":\"(?<=\\\\})\",\"patterns\":[{\"include\":\"#function-parameters\"},{\"include\":\"#function-body\"},{\"include\":\"#function-inout\"}]},\"function-body\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.begin.nushell\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"name\":\"meta.function.body.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function-inout\":{\"patterns\":[{\"include\":\"#types\"},{\"match\":\"->\",\"name\":\"keyword.operator.nushell\"},{\"include\":\"#function-multiple-inout\"}]},\"function-multiple-inout\":{\"begin\":\"(?<=]\\\\s*)(:)\\\\s+(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.in-out.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"include\":\"#types\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.nushell\"}},\"match\":\"\\\\s*(,)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"keyword.operator.nushell\"}},\"match\":\"\\\\s+(->)\\\\s+\"}]},\"function-parameter\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(-{0,2}|\\\\.{3})[\\\\w-]+(?:\\\\((-[\\\\w?])\\\\))?\",\"name\":\"variable.parameter.nushell\"},{\"begin\":\"\\\\??:\\\\s*\",\"end\":\"(?=(?:\\\\s+(?:-{0,2}|\\\\.{3})[\\\\w-]+)|(?:\\\\s*(?:,|\\\\]|\\\\||@|=|#|$)))\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"@(?=\\\"|')\",\"end\":\"(?<=\\\"|')\",\"patterns\":[{\"include\":\"#string\"}]},{\"begin\":\"=\\\\s*\",\"end\":\"(?=(?:\\\\s+-{0,2}[\\\\w-]+)|(?:\\\\s*(?:,|\\\\]|\\\\||#|$)))\",\"name\":\"default.value.nushell\",\"patterns\":[{\"include\":\"#value\"}]}]},\"function-parameters\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.function.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"},{\"include\":\"#comment\"}]},\"internal-variables\":{\"match\":\"\\\\$(?:nu|env)\\\\b\",\"name\":\"variable.language.nushell\"},\"keyword\":{\"match\":\"(?:def(?:-env)?)\",\"name\":\"keyword.other.nushell\"},\"module\":{\"begin\":\"((?:export\\\\s+)?module)\\\\s+([\\\\w\\\\-]+)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.module.end.nushell\"}},\"name\":\"meta.module.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"numbers\":{\"match\":\"(?<![\\\\w-])[-+]?(?:\\\\d+|\\\\d{1,3}(?:_\\\\d{3})*)(?:\\\\.\\\\d*)?(?i:ns|us|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![\\\\w.])|(?=\\\\.\\\\.))\",\"name\":\"constant.numeric.nushell\"},\"numbers-hexa\":{\"match\":\"(?<![\\\\w-])0x[0-9a-fA-F]+(?![\\\\w.])\",\"name\":\"constant.numeric.nushell\"},\"operators\":{\"patterns\":[{\"include\":\"#operators-word\"},{\"include\":\"#operators-symbols\"},{\"include\":\"#ranges\"}]},\"operators-symbols\":{\"match\":\"(?<= )(?:(?:\\\\+|\\\\-|\\\\*|\\\\/)=?|\\\\/\\\\/|\\\\*\\\\*|!=|[<>=]=?|[!=]~|\\\\+\\\\+=?)(?= |$)\",\"name\":\"keyword.control.nushell\"},\"operators-word\":{\"match\":\"(?<= |\\\\()(?:mod|in|not-in|not|and|or|xor|bit-or|bit-and|bit-xor|bit-shl|bit-shr|starts-with|ends-with)(?= |\\\\)|$)\",\"name\":\"keyword.control.nushell\"},\"parameters\":{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(?<=\\\\s)(-{1,2})[\\\\w-]+\",\"name\":\"variable.parameter.nushell\"},\"paren-expression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.begin.nushell\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.end.nushell\"}},\"name\":\"meta.expression.parenthesis.nushell\",\"patterns\":[{\"include\":\"#expression\"}]},\"pre-command\":{\"begin\":\"(\\\\w+)(=)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"end\":\"(?=\\\\s+)\",\"patterns\":[{\"include\":\"#value\"}]},\"ranges\":{\"match\":\"\\\\.\\\\.<?\",\"name\":\"keyword.control.nushell\"},\"spread\":{\"match\":\"\\\\.\\\\.\\\\.(?=[^\\\\s\\\\]}])\",\"name\":\"keyword.control.nushell\"},\"string\":{\"patterns\":[{\"include\":\"#string-single-quote\"},{\"include\":\"#string-backtick\"},{\"include\":\"#string-double-quote\"},{\"include\":\"#string-interpolated-double\"},{\"include\":\"#string-interpolated-single\"},{\"include\":\"#string-bare\"}]},\"string-backtick\":{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"`\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"string-bare\":{\"match\":\"[^$\\\\[{(\\\"',|#\\\\s|][^\\\\[\\\\]{}()\\\"'\\\\s#,|]*\",\"name\":\"string.bare.nushell\"},\"string-double-quote\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.double.nushell\",\"patterns\":[{\"match\":\"\\\\w+\"},{\"include\":\"#string-escape\"}]},\"string-escape\":{\"match\":\"\\\\\\\\(?:[bfrnt\\\\\\\\'\\\"/]|u[0-9a-fA-F]{4})\",\"name\":\"constant.character.escape.nushell\"},\"string-interpolated-double\":{\"begin\":\"\\\\$\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.double.nushell\",\"patterns\":[{\"match\":\"\\\\\\\\[()]\",\"name\":\"constant.character.escape.nushell\"},{\"include\":\"#string-escape\"},{\"include\":\"#paren-expression\"}]},\"string-interpolated-single\":{\"begin\":\"\\\\$'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.single.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"string-single-quote\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"table\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.table.nushell\",\"patterns\":[{\"include\":\"#spread\"},{\"include\":\"#value\"},{\"match\":\",\",\"name\":\"punctuation.separator.nushell\"}]},\"types\":{\"patterns\":[{\"begin\":\"\\\\b(list)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.list.nushell\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"\\\\b(record)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.record.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.nushell\"}},\"match\":\"([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[^']+')\\\\s*:\\\\s*\"},{\"include\":\"#types\"}]},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.nushell\"}]},\"use-module\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"^\\\\s*((?:export )?use)\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+')(?:\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"^\\\\s*((?:export )?use)\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+')\\\\s*\\\\[\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"(\\\\])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([\\\\w\\\\- ]+)(?:\\\\.nu)?(?=$|\\\"|')\"}]},\"4\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"(?<path>(?:/|\\\\\\\\|~[\\\\/\\\\\\\\]|\\\\.\\\\.?[\\\\/\\\\\\\\])?(?:[^\\\\/\\\\\\\\]+[\\\\/\\\\\\\\])*[\\\\w\\\\- ]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>\\\\'|(?![\\\"'])\\\\g<path>)(?:\\\\s+([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[^']+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"(?<path>(?:/|\\\\\\\\|~[\\\\/\\\\\\\\]|\\\\.\\\\.?[\\\\/\\\\\\\\])?(?:[^\\\\/\\\\\\\\]+[\\\\/\\\\\\\\])*[\\\\w\\\\- ]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>\\\\'|(?![\\\"'])\\\\g<path>)\\\\s+\\\\[\",\"beginCaptures\":{\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([\\\\w\\\\- ]+)(?:\\\\.nu)?(?=$|\\\"|')\"}]}},\"end\":\"(\\\\])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"0\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([\\\\w\\\\-]+|\\\"[\\\\w\\\\- ]+\\\"|'[\\\\w\\\\- ]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"0\":{\"name\":\"entity.name.function.nushell\"}},\"match\":\"^\\\\s*(?:export )?use\\\\b\"}]},\"value\":{\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#variable-fields\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#table\"},{\"include\":\"#operators\"},{\"include\":\"#paren-expression\"},{\"include\":\"#braced-expression\"},{\"include\":\"#string\"},{\"include\":\"#comment\"}]},\"variable-fields\":{\"match\":\"(?<=\\\\)|\\\\}|\\\\])(?:\\\\.(?:[\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"))+\",\"name\":\"variable.other.nushell\"},\"variables\":{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#internal-variables\"},{\"match\":\"\\\\$.+\",\"name\":\"variable.other.nushell\"}]},\"2\":{\"name\":\"variable.other.nushell\"}},\"match\":\"(\\\\$[a-zA-Z0-9_]+)((?:\\\\.(?:[\\\\w-]+|\\\"[\\\\w\\\\- ]+\\\"))*)\"}},\"scopeName\":\"source.nushell\",\"aliases\":[\"nu\"]}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|