@shikijs/langs-precompiled 2.3.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionscript-3.mjs +1 -1
- package/dist/angular-html.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/blade.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/csharp.mjs +6 -2
- 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/erb.mjs +2 -1
- package/dist/erlang.mjs +1 -1
- package/dist/es-tag-css.mjs +1 -1
- package/dist/es-tag-glsl.mjs +1 -1
- package/dist/es-tag-html.mjs +1 -1
- package/dist/es-tag-sql.mjs +1 -1
- package/dist/es-tag-xml.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-derivative.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.mjs +1 -1
- package/dist/json5.mjs +1 -1
- package/dist/jsonc.mjs +1 -1
- package/dist/jsonl.mjs +1 -1
- package/dist/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/svelte.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/nim.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import css from './css.mjs'
|
|
|
7
7
|
import glsl from './glsl.mjs'
|
|
8
8
|
import markdown from './markdown.mjs'
|
|
9
9
|
|
|
10
|
-
const lang = Object.freeze({displayName:"Nim",fileTypes:["nim"],name:"nim",patterns:[{begin:/[ \t]*##\[/dgv,contentName:"comment.block.doc-comment.content.nim",end:/\]##/dgv,name:"comment.block.doc-comment.nim",patterns:[{include:"#multilinedoccomment",name:"comment.block.doc-comment.nested.nim"}]},{begin:/[ \t]*#\[/dgv,contentName:"comment.block.content.nim",end:/\]#/dgv,name:"comment.block.nim",patterns:[{include:"#multilinecomment",name:"comment.block.nested.nim"}]},{begin:/(^[ \t]+)?(?=##)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/##/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.nim"}},end:/\n/dgv,name:"comment.line.number-sign.doc-comment.nim"}]},{begin:/(^[ \t]+)?(?=#[^\[])/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.nim"}},end:/\n/dgv,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)\p{space}+`?([^\:\{\p{space}\`\*\(]*)`?(\p{space}*\*)?\p{space}*(?=\(|=|:|\[|\n|\{)/dgv,captures:{"1":{name:"keyword.other"},"2":{name:"entity.name.function.nim"},"3":{name:"keyword.control.export"}},end:/\)/dgv,patterns:[{include:"source.nim"}]}]},{begin:/discard """/dgv,comment:"A discarded triple string literal comment",end:/"""(?!")/dgv,name:"comment.line.discarded.nim"},{include:"#float_literal"},{include:"#integer_literal"},{comment:"Operator as function name",match:/(?<=`)[^\` ]+(?=`)/dgv,name:"entity.name.function.nim"},{captures:{"1":{name:"keyword.control.export"}},comment:"Export qualifier.",match:/\b\p{space}*(\*)(?:\p{space}*(?=[\,\:])|\p{space}+(?=[\=]))/dgv},{captures:{"1":{name:"support.type.nim"},"2":{name:"keyword.control.export"}},comment:"Export qualifier following a type def.",match:/\b([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)(\*)/dgv},{include:"#string_literal"},{comment:"Language Constants.",match:/\b(true|false|Inf|NegInf|NaN|nil)\b/dgv,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/dgv,name:"keyword.control.nim"},{comment:"Keyword boolean operators for expressions.",match:/(\b(and|in|is|isnot|not|notin|or|xor)\b)/dgv,name:"keyword.boolean.nim"},{comment:"Generic operators for expressions.",match:/(=|\+|-|\*|\/|<|>|@|\$|~|&|%|!|\?|\^|\.|:|\\)+/dgv,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)/dgv,name:"keyword.other.nim"},{comment:"Invalid and unused keywords.",match:/(\b(generic|interface|lambda|out|shared)\b)/dgv,name:"invalid.illegal.invalid-keyword.nim"},{comment:"Common functions",match:/\b(new|await|assert|echo|defined|declared|newException|countup|countdown|high|low)\b/dgv,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/dgv,name:"storage.type.concrete.nim"},{comment:"Built-in, generic types.",match:/\b(range|array|seq|set|pointer)\b/dgv,name:"storage.type.generic.nim"},{comment:"Special types.",match:/\b(openarray|varargs|void)\b/dgv,name:"storage.type.generic.nim"},{comment:"Other constants.",match:/\b[A-Z][A-Z0-9_]+\b/dgv,name:"support.constant.nim"},{comment:"Other types.",match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]+\b/dgv,name:"support.type.nim"},{comment:"Function call.",match:/\b[\p{L}\p{M}\p{N}\p{Pc}]+\b(?=(\[([a-zA-Z0-9_\,]|\p{space})+\])?\()/dgv,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)[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+(?!(and|in|is|isnot|not|notin|or|xor|[^a-zA-Z0-9_"'\`\(-\+]+)\b)(?=[a-zA-Z0-9_"'\`\(-\+])/dgv,name:"support.function.any-method.nim"},{begin:/(^\p{space}*)?(?=\{\.emit: ?""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/\{\.(emit:) ?(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.c",end:/(")""(?!")(\.?\})?/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.c"}},name:"meta.embedded.block.c",patterns:[{begin:/`/dgv,end:/`/dgv,name:"keyword.operator.nim"},{include:"source.c"}]}]},{begin:/\{\./dgv,beginCaptures:{"0":{name:"punctuation.pragma.start.nim"}},end:/\.?\}/dgv,endCaptures:{"0":{name:"punctuation.pragma.end.nim"}},patterns:[{begin:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)(?:\p{space}|\p{space}*:)/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"}},end:/(?=\.?\}|,)/dgv,patterns:[{include:"source.nim"}]},{begin:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)\(/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{captures:{"1":{name:"meta.preprocessor.pragma.nim"}},match:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)(?=\.?\}|,)/dgv},{begin:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)(""")/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"""(?!")/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.triple.raw.nim"},{begin:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)(")/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.raw.nim"},{begin:/\b(hint\[[\p{L}\p{M}\p{N}\p{Pc}]+\]):/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"}},end:/(?=\.?\}|,)/dgv,patterns:[{include:"source.nim"}]},{match:/,/dgv,name:"punctuation.separator.comma.nim"}]},{begin:/(^\p{space}*)?(?=asm """)/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(asm) (""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.asm",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.asm"}},name:"meta.embedded.block.asm",patterns:[{begin:/`/dgv,end:/`/dgv,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))?""")/dgv},{begin:/(^\p{space}*)?(?=html""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(html)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"text.html",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"text.html"}},name:"meta.embedded.block.html",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"text.html.basic"}]}]},{begin:/(^\p{space}*)?(?=xml""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(xml)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"text.xml",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"text.xml"}},name:"meta.embedded.block.xml",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"text.xml"}]}]},{begin:/(^\p{space}*)?(?=js""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(js)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.js",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.js"}},name:"meta.embedded.block.js",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"source.js"}]}]},{begin:/(^\p{space}*)?(?=css""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(css)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.css",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.css"}},name:"meta.embedded.block.css",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"source.css"}]}]},{begin:/(^\p{space}*)?(?=glsl""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(glsl)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.glsl",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.glsl"}},name:"meta.embedded.block.glsl",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"source.glsl"}]}]},{begin:/(^\p{space}*)?(?=md""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(md)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"text.html.markdown",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"text.html.markdown"}},name:"meta.embedded.block.html.markdown",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"text.html.markdown"}]}]}],repository:{char_escapes:{patterns:[{match:/\\[cC]|\\[rR]/dgv,name:"constant.character.escape.carriagereturn.nim"},{match:/\\[lL]|\\[nN]/dgv,name:"constant.character.escape.linefeed.nim"},{match:/\\[fF]/dgv,name:"constant.character.escape.formfeed.nim"},{match:/\\[tT]/dgv,name:"constant.character.escape.tabulator.nim"},{match:/\\[vV]/dgv,name:"constant.character.escape.verticaltabulator.nim"},{match:/\\"/dgv,name:"constant.character.escape.double-quote.nim"},{match:/\\'/dgv,name:"constant.character.escape.single-quote.nim"},{match:/\\[0-9]+/dgv,name:"constant.character.escape.chardecimalvalue.nim"},{match:/\\[aA]/dgv,name:"constant.character.escape.alert.nim"},{match:/\\[bB]/dgv,name:"constant.character.escape.backspace.nim"},{match:/\\[eE]/dgv,name:"constant.character.escape.escape.nim"},{match:/\\[xX]\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.hex.nim"},{match:/\\\\/dgv,name:"constant.character.escape.backslash.nim"}]},extended_string_quoted_double_raw:{begin:/\b([\p{L}\p{M}\p{N}\p{Pc}]+)(")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,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([\p{L}\p{M}\p{N}\p{Pc}]+)(""")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.triple.raw.nim"},float_literal:{patterns:[{match:/\b\p{Nd}[_\p{Nd}]*((\.\p{Nd}[_\p{Nd}]*([eE][\+\-]?\p{Nd}[_\p{Nd}]*)?)|([eE][\+\-]?\p{Nd}[_\p{Nd}]*))('([fF](32|64|128)|[fFdD]))?/dgv,name:"constant.numeric.float.decimal.nim"},{match:/\b0[xX]\p{AHex}[_\p{AHex}]*'([fF](32|64|128)|[fFdD])/dgv,name:"constant.numeric.float.hexadecimal.nim"},{match:/\b0o[0-7][_0-7]*'([fF](32|64|128)|[fFdD])/dgv,name:"constant.numeric.float.octal.nim"},{match:/\b0(b|B)[01][_01]*'([fF](32|64|128)|[fFdD])/dgv,name:"constant.numeric.float.binary.nim"},{match:/\b(\p{Nd}[_\p{Nd}]*)'([fF](32|64|128)|[fFdD])/dgv,name:"constant.numeric.float.decimal.nim"}]},fmt_interpolation:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.nim"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.nim"}},name:"meta.template.expression.nim",patterns:[{begin:/:/dgv,end:/(?=\})/dgv,name:"meta.template.format-specifier.nim"},{include:"source.nim"}]},fmt_string:{begin:/\b(fmt)(")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.raw.nim",patterns:[{match:/(?<!")"(?!")/dgv,name:"invalid.illegal.nim"},{include:"#raw_string_escapes"},{include:"#fmt_interpolation"}]},fmt_string_call:{begin:/(fmt)\((?=")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"}},end:/\)/dgv,patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},end:/"(?=\))/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.nim",patterns:[{match:/"/dgv,name:"invalid.illegal.nim"},{include:"#string_escapes"},{include:"#fmt_interpolation"}]}]},fmt_string_operator:{begin:/(&)(")/dgv,beginCaptures:{"1":{name:"keyword.operator.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.nim",patterns:[{match:/"/dgv,name:"invalid.illegal.nim"},{include:"#string_escapes"},{include:"#fmt_interpolation"}]},fmt_string_triple:{begin:/\b(fmt)(""")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.triple.raw.nim",patterns:[{include:"#fmt_interpolation"}]},fmt_string_triple_operator:{begin:/(&)(""")/dgv,beginCaptures:{"1":{name:"keyword.operator.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"""/dgv,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]\p{AHex}[_\p{AHex}]*)('(([iIuU](8|16|32|64))|[uU]))?/dgv,name:"constant.numeric.integer.hexadecimal.nim"},{match:/\b(0o[0-7][_0-7]*)('(([iIuU](8|16|32|64))|[uU]))?/dgv,name:"constant.numeric.integer.octal.nim"},{match:/\b(0(b|B)[01][_01]*)('(([iIuU](8|16|32|64))|[uU]))?/dgv,name:"constant.numeric.integer.binary.nim"},{match:/\b(\p{Nd}[_\p{Nd}]*)('(([iIuU](8|16|32|64))|[uU]))?/dgv,name:"constant.numeric.integer.decimal.nim"}]},multilinecomment:{begin:/#\[/dgv,end:/\]#/dgv,patterns:[{include:"#multilinecomment"}]},multilinedoccomment:{begin:/##\[/dgv,end:/\]##/dgv,patterns:[{include:"#multilinedoccomment"}]},raw_string_escapes:{captures:{"1":{name:"constant.character.escape.double-quote.nim"}},match:/[^"]("")/dgv},string_escapes:{patterns:[{match:/\\[pP]/dgv,name:"constant.character.escape.newline.nim"},{match:/\\[uU]\p{AHex}\p{AHex}\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.hex.nim"},{match:/\\[uU]\{\p{AHex}+\}/dgv,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:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},comment:"Double Quoted String",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.nim",patterns:[{include:"#string_escapes"}]},string_quoted_double_raw:{begin:/\br"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.raw.nim",patterns:[{include:"#raw_string_escapes"}]},string_quoted_single:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},comment:"Single quoted character literal",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.single.nim",patterns:[{include:"#char_escapes"},{match:/([^']{2,}?)/dgv,name:"invalid.illegal.character.nim"}]},string_quoted_triple:{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},comment:"Triple Quoted String",end:/"""(?!")/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.triple.nim"},string_quoted_triple_raw:{begin:/r"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},comment:"Raw Triple Quoted String",end:/"""/dgv,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"],aliases:undefined})
|
|
10
|
+
const lang = Object.freeze({displayName:"Nim",fileTypes:["nim"],name:"nim",patterns:[{begin:/[ \t]*##\[/dgv,contentName:"comment.block.doc-comment.content.nim",end:/\]##/dgv,name:"comment.block.doc-comment.nim",patterns:[{include:"#multilinedoccomment",name:"comment.block.doc-comment.nested.nim"}]},{begin:/[ \t]*#\[/dgv,contentName:"comment.block.content.nim",end:/\]#/dgv,name:"comment.block.nim",patterns:[{include:"#multilinecomment",name:"comment.block.nested.nim"}]},{begin:/(^[ \t]+)?(?=##)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/##/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.nim"}},end:/\n/dgv,name:"comment.line.number-sign.doc-comment.nim"}]},{begin:/(^[ \t]+)?(?=#[^\[])/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.nim"}},end:/\n/dgv,name:"comment.line.number-sign.nim"}]},{name:"meta.proc.nim",patterns:[{begin:/\b(proc|method|template|macro|iterator|converter|func)\p{space}+`?([^\:\{\p{space}\`\*\(]*)`?(\p{space}*\*)?\p{space}*(?=\(|=|:|\[|\n|\{)/dgv,captures:{"1":{name:"keyword.other"},"2":{name:"entity.name.function.nim"},"3":{name:"keyword.control.export"}},end:/\)/dgv,patterns:[{include:"source.nim"}]}]},{begin:/discard """/dgv,end:/"""(?!")/dgv,name:"comment.line.discarded.nim"},{include:"#float_literal"},{include:"#integer_literal"},{match:/(?<=`)[^\` ]+(?=`)/dgv,name:"entity.name.function.nim"},{captures:{"1":{name:"keyword.control.export"}},match:/\b\p{space}*(\*)(?:\p{space}*(?=[\,\:])|\p{space}+(?=[\=]))/dgv},{captures:{"1":{name:"support.type.nim"},"2":{name:"keyword.control.export"}},match:/\b([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)(\*)/dgv},{include:"#string_literal"},{match:/\b(true|false|Inf|NegInf|NaN|nil)\b/dgv,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/dgv,name:"keyword.control.nim"},{match:/(\b(and|in|is|isnot|not|notin|or|xor)\b)/dgv,name:"keyword.boolean.nim"},{match:/(=|\+|-|\*|\/|<|>|@|\$|~|&|%|!|\?|\^|\.|:|\\)+/dgv,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)/dgv,name:"keyword.other.nim"},{match:/(\b(generic|interface|lambda|out|shared)\b)/dgv,name:"invalid.illegal.invalid-keyword.nim"},{match:/\b(new|await|assert|echo|defined|declared|newException|countup|countdown|high|low)\b/dgv,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/dgv,name:"storage.type.concrete.nim"},{match:/\b(range|array|seq|set|pointer)\b/dgv,name:"storage.type.generic.nim"},{match:/\b(openarray|varargs|void)\b/dgv,name:"storage.type.generic.nim"},{match:/\b[A-Z][A-Z0-9_]+\b/dgv,name:"support.constant.nim"},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]+\b/dgv,name:"support.type.nim"},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}]+\b(?=(\[([a-zA-Z0-9_\,]|\p{space})+\])?\()/dgv,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)[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+(?!(and|in|is|isnot|not|notin|or|xor|[^a-zA-Z0-9_"'\`\(-\+]+)\b)(?=[a-zA-Z0-9_"'\`\(-\+])/dgv,name:"support.function.any-method.nim"},{begin:/(^\p{space}*)?(?=\{\.emit: ?""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/\{\.(emit:) ?(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.c",end:/(")""(?!")(\.?\})?/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.c"}},name:"meta.embedded.block.c",patterns:[{begin:/`/dgv,end:/`/dgv,name:"keyword.operator.nim"},{include:"source.c"}]}]},{begin:/\{\./dgv,beginCaptures:{"0":{name:"punctuation.pragma.start.nim"}},end:/\.?\}/dgv,endCaptures:{"0":{name:"punctuation.pragma.end.nim"}},patterns:[{begin:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)(?:\p{space}|\p{space}*:)/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"}},end:/(?=\.?\}|,)/dgv,patterns:[{include:"source.nim"}]},{begin:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)\(/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{captures:{"1":{name:"meta.preprocessor.pragma.nim"}},match:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)(?=\.?\}|,)/dgv},{begin:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)(""")/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"""(?!")/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.triple.raw.nim"},{begin:/\b([\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*)(")/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.raw.nim"},{begin:/\b(hint\[[\p{L}\p{M}\p{N}\p{Pc}]+\]):/dgv,beginCaptures:{"1":{name:"meta.preprocessor.pragma.nim"}},end:/(?=\.?\}|,)/dgv,patterns:[{include:"source.nim"}]},{match:/,/dgv,name:"punctuation.separator.comma.nim"}]},{begin:/(^\p{space}*)?(?=asm """)/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(asm) (""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.asm",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.asm"}},name:"meta.embedded.block.asm",patterns:[{begin:/`/dgv,end:/`/dgv,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))?""")/dgv},{begin:/(^\p{space}*)?(?=html""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(html)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"text.html",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"text.html"}},name:"meta.embedded.block.html",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"text.html.basic"}]}]},{begin:/(^\p{space}*)?(?=xml""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(xml)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"text.xml",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"text.xml"}},name:"meta.embedded.block.xml",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"text.xml"}]}]},{begin:/(^\p{space}*)?(?=js""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(js)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.js",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.js"}},name:"meta.embedded.block.js",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"source.js"}]}]},{begin:/(^\p{space}*)?(?=css""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(css)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.css",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.css"}},name:"meta.embedded.block.css",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"source.css"}]}]},{begin:/(^\p{space}*)?(?=glsl""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(glsl)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"source.glsl",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"source.glsl"}},name:"meta.embedded.block.glsl",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"source.glsl"}]}]},{begin:/(^\p{space}*)?(?=md""")/dgv,beginCaptures:{"0":{name:"punctuation.whitespace.embedded.leading.nim"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(\\p{space}*(?=\\n?$)\\n?)?","dgv",{"strategy":"clip_search"}),endCaptures:{"0":{name:"punctuation.whitespace.embedded.trailing.nim"}},patterns:[{begin:/(md)(""")/dgv,captures:{"1":{name:"keyword.other.nim"},"2":{name:"punctuation.section.embedded.begin.nim"}},contentName:"text.html.markdown",end:/(")""(?!")/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.nim"},"1":{name:"text.html.markdown"}},name:"meta.embedded.block.html.markdown",patterns:[{begin:/(?<!\$)(\$)\(/dgv,captures:{"1":{name:"keyword.operator.nim"}},end:/\)/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)\{/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/\}/dgv,patterns:[{include:"source.nim"}]},{begin:/(?<!\$)(\$)(for|while|case|of|when|if|else|elif)( )/dgv,captures:{"1":{name:"keyword.operator.nim"},"2":{name:"keyword.operator.nim"}},end:/(\{|\n)/dgv,endCaptures:{"1":{name:"plain"}},patterns:[{include:"source.nim"}]},{match:/(?<!\$)(\$[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"keyword.operator.nim"},{include:"text.html.markdown"}]}]}],repository:{char_escapes:{patterns:[{match:/\\[cC]|\\[rR]/dgv,name:"constant.character.escape.carriagereturn.nim"},{match:/\\[lL]|\\[nN]/dgv,name:"constant.character.escape.linefeed.nim"},{match:/\\[fF]/dgv,name:"constant.character.escape.formfeed.nim"},{match:/\\[tT]/dgv,name:"constant.character.escape.tabulator.nim"},{match:/\\[vV]/dgv,name:"constant.character.escape.verticaltabulator.nim"},{match:/\\"/dgv,name:"constant.character.escape.double-quote.nim"},{match:/\\'/dgv,name:"constant.character.escape.single-quote.nim"},{match:/\\[0-9]+/dgv,name:"constant.character.escape.chardecimalvalue.nim"},{match:/\\[aA]/dgv,name:"constant.character.escape.alert.nim"},{match:/\\[bB]/dgv,name:"constant.character.escape.backspace.nim"},{match:/\\[eE]/dgv,name:"constant.character.escape.escape.nim"},{match:/\\[xX]\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.hex.nim"},{match:/\\\\/dgv,name:"constant.character.escape.backslash.nim"}]},extended_string_quoted_double_raw:{begin:/\b([\p{L}\p{M}\p{N}\p{Pc}]+)(")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,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([\p{L}\p{M}\p{N}\p{Pc}]+)(""")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.triple.raw.nim"},float_literal:{patterns:[{match:/\b\p{Nd}[_\p{Nd}]*((\.\p{Nd}[_\p{Nd}]*([eE][\+\-]?\p{Nd}[_\p{Nd}]*)?)|([eE][\+\-]?\p{Nd}[_\p{Nd}]*))('([fF](32|64|128)|[fFdD]))?/dgv,name:"constant.numeric.float.decimal.nim"},{match:/\b0[xX]\p{AHex}[_\p{AHex}]*'([fF](32|64|128)|[fFdD])/dgv,name:"constant.numeric.float.hexadecimal.nim"},{match:/\b0o[0-7][_0-7]*'([fF](32|64|128)|[fFdD])/dgv,name:"constant.numeric.float.octal.nim"},{match:/\b0(b|B)[01][_01]*'([fF](32|64|128)|[fFdD])/dgv,name:"constant.numeric.float.binary.nim"},{match:/\b(\p{Nd}[_\p{Nd}]*)'([fF](32|64|128)|[fFdD])/dgv,name:"constant.numeric.float.decimal.nim"}]},fmt_interpolation:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.nim"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.nim"}},name:"meta.template.expression.nim",patterns:[{begin:/:/dgv,end:/(?=\})/dgv,name:"meta.template.format-specifier.nim"},{include:"source.nim"}]},fmt_string:{begin:/\b(fmt)(")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.raw.nim",patterns:[{match:/(?<!")"(?!")/dgv,name:"invalid.illegal.nim"},{include:"#raw_string_escapes"},{include:"#fmt_interpolation"}]},fmt_string_call:{begin:/(fmt)\((?=")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"}},end:/\)/dgv,patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},end:/"(?=\))/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.nim",patterns:[{match:/"/dgv,name:"invalid.illegal.nim"},{include:"#string_escapes"},{include:"#fmt_interpolation"}]}]},fmt_string_operator:{begin:/(&)(")/dgv,beginCaptures:{"1":{name:"keyword.operator.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.nim",patterns:[{match:/"/dgv,name:"invalid.illegal.nim"},{include:"#string_escapes"},{include:"#fmt_interpolation"}]},fmt_string_triple:{begin:/\b(fmt)(""")/dgv,beginCaptures:{"1":{name:"support.function.any-method.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.triple.raw.nim",patterns:[{include:"#fmt_interpolation"}]},fmt_string_triple_operator:{begin:/(&)(""")/dgv,beginCaptures:{"1":{name:"keyword.operator.nim"},"2":{name:"punctuation.definition.string.begin.nim"}},end:/"""/dgv,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]\p{AHex}[_\p{AHex}]*)('(([iIuU](8|16|32|64))|[uU]))?/dgv,name:"constant.numeric.integer.hexadecimal.nim"},{match:/\b(0o[0-7][_0-7]*)('(([iIuU](8|16|32|64))|[uU]))?/dgv,name:"constant.numeric.integer.octal.nim"},{match:/\b(0(b|B)[01][_01]*)('(([iIuU](8|16|32|64))|[uU]))?/dgv,name:"constant.numeric.integer.binary.nim"},{match:/\b(\p{Nd}[_\p{Nd}]*)('(([iIuU](8|16|32|64))|[uU]))?/dgv,name:"constant.numeric.integer.decimal.nim"}]},multilinecomment:{begin:/#\[/dgv,end:/\]#/dgv,patterns:[{include:"#multilinecomment"}]},multilinedoccomment:{begin:/##\[/dgv,end:/\]##/dgv,patterns:[{include:"#multilinedoccomment"}]},raw_string_escapes:{captures:{"1":{name:"constant.character.escape.double-quote.nim"}},match:/[^"]("")/dgv},string_escapes:{patterns:[{match:/\\[pP]/dgv,name:"constant.character.escape.newline.nim"},{match:/\\[uU]\p{AHex}\p{AHex}\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.hex.nim"},{match:/\\[uU]\{\p{AHex}+\}/dgv,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:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.nim",patterns:[{include:"#string_escapes"}]},string_quoted_double_raw:{begin:/\br"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.double.raw.nim",patterns:[{include:"#raw_string_escapes"}]},string_quoted_single:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.single.nim",patterns:[{include:"#char_escapes"},{match:/([^']{2,}?)/dgv,name:"invalid.illegal.character.nim"}]},string_quoted_triple:{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},end:/"""(?!")/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nim"}},name:"string.quoted.triple.nim"},string_quoted_triple_raw:{begin:/r"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nim"}},end:/"""/dgv,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"],aliases:undefined})
|
|
11
11
|
|
|
12
12
|
export default [
|
|
13
13
|
...c,
|
package/dist/nushell.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({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)(\[)/dgv,beginCaptures:{"1":{name:"constant.numeric.nushell"},"2":{name:"meta.brace.square.begin.nushell"}},end:/\]/dgv,endCaptures:{"0":{name:"meta.brace.square.begin.nushell"}},name:"constant.binary.nushell",patterns:[{match:/[0-9a-fA-F]{2}/dgv,name:"constant.numeric.nushell"}]},"braced-expression":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.bracket.curly.nushell"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.bracket.curly.nushell"}},name:"meta.expression.braced.nushell",patterns:[{begin:/(?<=\{)\p{space}*\|/dgv,end:/\|/dgv,name:"meta.closure.parameters.nushell",patterns:[{include:"#function-parameter"}]},{captures:{"1":{name:"variable.other.nushell"},"2":{name:"keyword.control.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(:)\p{space}*/dgv},{captures:{"1":{name:"variable.other.nushell"},"2":{name:"variable.other.nushell",patterns:[{include:"#paren-expression"}]},"3":{name:"keyword.control.nushell"}},match:/(\$"((?:[^"\\]|\\[^\n])*)")\p{space}*(:)\p{space}*/dgv,name:"meta.record-entry.nushell"},{captures:{"1":{name:"variable.other.nushell"},"2":{name:"keyword.control.nushell"}},match:/("(?:[^"\\]|\\[^\n])*")\p{space}*(:)\p{space}*/dgv,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:/(\$'([^']*)')\p{space}*(:)\p{space}*/dgv,name:"meta.record-entry.nushell"},{captures:{"1":{name:"variable.other.nushell"},"2":{name:"keyword.control.nushell"}},match:/('[^']*')\p{space}*(:)\p{space}*/dgv,name:"meta.record-entry.nushell"},{include:"#spread"},{include:"source.nushell"}]},command:{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(?:(\^)|(?![0-9]|\$))([\p{L}\p{M}\p{N}\p{Pc}\.\!]+(?: (?!-)[\p{L}\p{M}\p{N}\p{Pc}\-\.\!]+(?:(?= |\))|(?=\n?$))|[\p{L}\p{M}\p{N}\p{Pc}\-\.\!]+)*|(?<=\^)\$?(?:"[^"]+"|'[^']+'))/dgv,beginCaptures:{"1":{name:"keyword.operator.nushell"},"2":{patterns:[{include:"#control-keywords"},{captures:{"0":{name:"keyword.other.builtin.nushell"}},match:/(?:ansi|char) [\p{L}\p{M}\p{N}\p{Pc}]+/dgv},{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:/*@__PURE__*/ new EmulatedRegExp("(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)(?![\\p{L}\\p{M}\\p{N}\\p{Pc}\\-])( ([^\\n]*))?","dgv",{"lazyCompile":true})},{captures:{"1":{patterns:[{include:"#paren-expression"}]}},match:/(?<=\^)(?:\$("[^"]+"|'[^']+')|"[^"]+"|'[^']+')/dgv,name:"entity.name.type.external.nushell"},{captures:{"1":{name:"entity.name.type.external.nushell"},"2":{patterns:[{include:"#value"}]}},match:/([\p{L}\p{M}\p{N}\p{Pc}\.]+(?:-[\p{L}\p{M}\p{N}\p{Pc}\.\!]+)*)(?: ([^\n]*))?/dgv},{include:"#value"}]}},end:/(?=\||\)|\}|;)|(?=\n?$)/dgv,name:"meta.command.nushell",patterns:[{include:"#parameters"},{include:"#spread"},{include:"#value"}]},comment:{match:/(#[^\n]*)(?=\n?$)/dgv,name:"comment.nushell"},"constant-keywords":{match:/\b(?:true|false|null)\b/dgv,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_\-\.\/\:\\])/dgv,name:"keyword.control.nushell"},datetime:{match:/\b\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}(?:T\p{Nd}{2}:\p{Nd}{2}:\p{Nd}{2}(?:\.\p{Nd}+)?(?:\+\p{Nd}{2}:?\p{Nd}{2}|Z)?)?\b/dgv,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)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-\!]+)\p{space}*(=)/dgv},"define-variable":{captures:{"1":{name:"keyword.other.nushell"},"2":{name:"variable.other.nushell"},"3":{patterns:[{include:"#operators"}]}},match:/(let|mut|(?:export\p{space}+)?const)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(=)/dgv},expression:{patterns:[{include:"#pre-command"},{include:"#for-loop"},{include:"#operators"},{match:/\|/dgv,name:"keyword.control.nushell"},{include:"#control-keywords"},{include:"#constant-value"},{include:"#command"},{include:"#value"}]},extern:{begin:/((?:export\p{space}+)?extern)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+")/dgv,beginCaptures:{"1":{name:"entity.name.function.nushell"},"2":{name:"entity.name.type.nushell"}},end:/(?<=\])/dgv,endCaptures:{"0":{name:"punctuation.definition.function.end.nushell"}},patterns:[{include:"#function-parameters"}]},"for-loop":{begin:/(for)\p{space}+(\$?[\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(in)\p{space}+([^\n]+)\p{space}*(\{)/dgv,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:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.bracket.curly.nushell"}},name:"meta.for-loop.nushell",patterns:[{include:"source.nushell"}]},function:{begin:/((?:export\p{space}+)?def(?:\p{space}+--[\p{L}\p{M}\p{N}\p{Pc}]+)*)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+'|`[\p{L}\p{M}\p{N}\p{Pc}\- ]+`)(\p{space}+--[\p{L}\p{M}\p{N}\p{Pc}]+)*/dgv,beginCaptures:{"1":{name:"entity.name.function.nushell"},"2":{name:"entity.name.type.nushell"},"3":{name:"entity.name.function.nushell"}},end:/(?<=\})/dgv,patterns:[{include:"#function-parameters"},{include:"#function-body"},{include:"#function-inout"}]},"function-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.function.begin.nushell"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.function.end.nushell"}},name:"meta.function.body.nushell",patterns:[{include:"source.nushell"}]},"function-inout":{patterns:[{include:"#types"},{match:/->/dgv,name:"keyword.operator.nushell"},{include:"#function-multiple-inout"}]},"function-multiple-inout":{begin:/(?<=\]\p{space}*)(:)\p{space}+(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.in-out.nushell"},"2":{name:"meta.brace.square.begin.nushell"}},end:/\]/dgv,endCaptures:{"0":{name:"meta.brace.square.end.nushell"}},patterns:[{include:"#types"},{captures:{"1":{name:"punctuation.separator.nushell"}},match:/\p{space}*(,)\p{space}*/dgv},{captures:{"1":{name:"keyword.operator.nushell"}},match:/\p{space}+(->)\p{space}+/dgv}]},"function-parameter":{patterns:[{captures:{"1":{name:"keyword.control.nushell"}},match:/(-{0,2}|\.{3})[\p{L}\p{M}\p{N}\p{Pc}\-]+(?:\((-[\p{L}\p{M}\p{N}\p{Pc}\?])\))?/dgv,name:"variable.parameter.nushell"},{begin:/\??:\p{space}*/dgv,end:/(?=\p{space}+(?:-{0,2}|\.{3})[\p{L}\p{M}\p{N}\p{Pc}\-]+|\p{space}*(?:,|\]|\||@|=|#|(?=\n?$)))/dgv,patterns:[{include:"#types"}]},{begin:/@(?="|')/dgv,end:/(?<="|')/dgv,patterns:[{include:"#string"}]},{begin:/=\p{space}*/dgv,end:/(?=\p{space}+-{0,2}[\p{L}\p{M}\p{N}\p{Pc}\-]+|\p{space}*(?:,|\]|\||#|(?=\n?$)))/dgv,name:"default.value.nushell",patterns:[{include:"#value"}]}]},"function-parameters":{begin:/\[/dgv,beginCaptures:{"0":{name:"meta.brace.square.begin.nushell"}},end:/\]/dgv,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/dgv,name:"variable.language.nushell"},keyword:{match:/def(?:-env)?/dgv,name:"keyword.other.nushell"},module:{begin:/((?:export\p{space}+)?module)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*\{/dgv,beginCaptures:{"1":{name:"entity.name.function.nushell"},"2":{name:"entity.name.namespace.nushell"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.module.end.nushell"}},name:"meta.module.nushell",patterns:[{include:"source.nushell"}]},numbers:{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])[\-\+]?(?:\p{Nd}+|\p{Nd}{1,3}(?:_\p{Nd}{3})*)(?:\.\p{Nd}*)?(?:ns|us|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![\p{L}\p{M}\p{N}\p{Pc}\.])|(?=\.\.))/dgiv,name:"constant.numeric.nushell"},"numbers-hexa":{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])0x[0-9a-fA-F]+(?![\p{L}\p{M}\p{N}\p{Pc}\.])/dgv,name:"constant.numeric.nushell"},operators:{patterns:[{include:"#operators-word"},{include:"#operators-symbols"},{include:"#ranges"}]},"operators-symbols":{match:/(?<= )(?:(?:\+|-|\*|\/)=?|\/\/|\*\*|!=|[\<\>\=]=?|[\!\=]~|\+\+=?)(?= |(?=\n?$))/dgv,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)(?= |\)|(?=\n?$))/dgv,name:"keyword.control.nushell"},parameters:{captures:{"1":{name:"keyword.control.nushell"}},match:/(?<=\p{space})(-{1,2})[\p{L}\p{M}\p{N}\p{Pc}\-]+/dgv,name:"variable.parameter.nushell"},"paren-expression":{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.brace.round.begin.nushell"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.end.nushell"}},name:"meta.expression.parenthesis.nushell",patterns:[{include:"#expression"}]},"pre-command":{begin:/([\p{L}\p{M}\p{N}\p{Pc}]+)(=)/dgv,beginCaptures:{"1":{name:"variable.other.nushell"},"2":{patterns:[{include:"#operators"}]}},end:/(?=\p{space}+)/dgv,patterns:[{include:"#value"}]},ranges:{match:/\.\.<?/dgv,name:"keyword.control.nushell"},spread:{match:/\.\.\.(?=[^\p{space}\]\}])/dgv,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:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.quoted.single.nushell"},"string-bare":{match:/[^\$\[\{\("'\,\|\#\p{space}\|][^\[\]\{\}\(\)"'\p{space}\#\,\|]*/dgv,name:"string.bare.nushell"},"string-double-quote":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.quoted.double.nushell",patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv},{include:"#string-escape"}]},"string-escape":{match:/\\(?:[bfrnt\\'"\/]|u[0-9a-fA-F]{4})/dgv,name:"constant.character.escape.nushell"},"string-interpolated-double":{begin:/\$"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.interpolated.double.nushell",patterns:[{match:/\\[\(\)]/dgv,name:"constant.character.escape.nushell"},{include:"#string-escape"},{include:"#paren-expression"}]},"string-interpolated-single":{begin:/\$'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.interpolated.single.nushell",patterns:[{include:"#paren-expression"}]},"string-single-quote":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.quoted.single.nushell"},table:{begin:/\[/dgv,beginCaptures:{"0":{name:"meta.brace.square.begin.nushell"}},end:/\]/dgv,endCaptures:{"0":{name:"meta.brace.square.end.nushell"}},name:"meta.table.nushell",patterns:[{include:"#spread"},{include:"#value"},{match:/,/dgv,name:"punctuation.separator.nushell"}]},types:{patterns:[{begin:/\b(list)\p{space}*</dgv,beginCaptures:{"1":{name:"entity.name.type.nushell"}},end:/>/dgv,name:"meta.list.nushell",patterns:[{include:"#types"}]},{begin:/\b(record)\p{space}*</dgv,beginCaptures:{"1":{name:"entity.name.type.nushell"}},end:/>/dgv,name:"meta.record.nushell",patterns:[{captures:{"1":{name:"variable.parameter.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[^']+')\p{space}*:\p{space}*/dgv},{include:"#types"}]},{match:/\b([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv,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:/^\p{space}*((?:export )?use)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+')(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+'|\*))?\p{space}*;?(?=\n?$)/dgv},{begin:/^\p{space}*((?:export )?use)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+')\p{space}*\[/dgv,beginCaptures:{"1":{name:"entity.name.function.nushell"},"2":{name:"entity.name.namespace.nushell"}},end:/(\])\p{space}*;?\p{space}*(?=\n?$)/dgv,endCaptures:{"1":{name:"meta.brace.square.end.nushell"}},patterns:[{captures:{"1":{name:"keyword.other.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+'|\*),?/dgv},{include:"#comment"}]},{captures:{"2":{name:"entity.name.function.nushell"},"3":{name:"string.bare.nushell",patterns:[{captures:{"1":{name:"entity.name.namespace.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\- ]+)(?:\.nu)?(?=(?=\n?$)|"|')/dgv}]},"4":{name:"keyword.other.nushell"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<path>(?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?){0}^\\p{space}*((?:export )?use)\\p{space}+(\"((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?)\"|'((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?)'|(?![\"'])((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?))(?:\\p{space}+([\\p{L}\\p{M}\\p{N}\\p{Pc}\\-]+|\"[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+\"|'[^']+'|\\*))?\\p{space}*;?(?=\\n?$)","dgv",{"hiddenCaptures":[4,5,6],"transfers":[[1,[4,5,6]]]})},{begin:/*@__PURE__*/ new EmulatedRegExp("(?<path>(?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?){0}^\\p{space}*((?:export )?use)\\p{space}+(\"((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?)\"|'((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?)'|(?![\"'])((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?))\\p{space}+\\[","dgv",{"hiddenCaptures":[4,5,6],"transfers":[[1,[4,5,6]]]}),beginCaptures:{"2":{name:"entity.name.function.nushell"},"3":{name:"string.bare.nushell",patterns:[{captures:{"1":{name:"entity.name.namespace.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\- ]+)(?:\.nu)?(?=(?=\n?$)|"|')/dgv}]}},end:/(\])\p{space}*;?\p{space}*(?=\n?$)/dgv,endCaptures:{"1":{name:"meta.brace.square.end.nushell"}},patterns:[{captures:{"0":{name:"keyword.other.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+'|\*),?/dgv},{include:"#comment"}]},{captures:{"0":{name:"entity.name.function.nushell"}},match:/^\p{space}*(?:export )?use\b/dgv}]},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:/(?<=\)|\}|\])(?:\.(?:[\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"))+/dgv,name:"variable.other.nushell"},variables:{captures:{"1":{patterns:[{include:"#internal-variables"},{match:/\$[^\n]+/dgv,name:"variable.other.nushell"}]},"2":{name:"variable.other.nushell"}},match:/(\$[a-zA-Z0-9_]+)((?:\.(?:[\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"))*)/dgv}},scopeName:"source.nushell",embeddedLangs:undefined,aliases:["nu"]})
|
|
3
|
+
const lang = Object.freeze({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)(\[)/dgv,beginCaptures:{"1":{name:"constant.numeric.nushell"},"2":{name:"meta.brace.square.begin.nushell"}},end:/\]/dgv,endCaptures:{"0":{name:"meta.brace.square.begin.nushell"}},name:"constant.binary.nushell",patterns:[{match:/[0-9a-fA-F]{2}/dgv,name:"constant.numeric.nushell"}]},"braced-expression":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.bracket.curly.nushell"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.bracket.curly.nushell"}},name:"meta.expression.braced.nushell",patterns:[{begin:/(?<=\{)\p{space}*\|/dgv,end:/\|/dgv,name:"meta.closure.parameters.nushell",patterns:[{include:"#function-parameter"}]},{captures:{"1":{name:"variable.other.nushell"},"2":{name:"keyword.control.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(:)\p{space}*/dgv},{captures:{"1":{name:"variable.other.nushell"},"2":{name:"variable.other.nushell",patterns:[{include:"#paren-expression"}]},"3":{name:"keyword.control.nushell"}},match:/(\$"((?:[^"\\]|\\[^\n])*)")\p{space}*(:)\p{space}*/dgv,name:"meta.record-entry.nushell"},{captures:{"1":{name:"variable.other.nushell"},"2":{name:"keyword.control.nushell"}},match:/("(?:[^"\\]|\\[^\n])*")\p{space}*(:)\p{space}*/dgv,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:/(\$'([^']*)')\p{space}*(:)\p{space}*/dgv,name:"meta.record-entry.nushell"},{captures:{"1":{name:"variable.other.nushell"},"2":{name:"keyword.control.nushell"}},match:/('[^']*')\p{space}*(:)\p{space}*/dgv,name:"meta.record-entry.nushell"},{include:"#spread"},{include:"source.nushell"}]},command:{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(?:(\^)|(?![0-9]|\$))([\p{L}\p{M}\p{N}\p{Pc}\.\!]+(?: (?!-)[\p{L}\p{M}\p{N}\p{Pc}\-\.\!]+(?:(?= |\))|(?=\n?$))|[\p{L}\p{M}\p{N}\p{Pc}\-\.\!]+)*|(?<=\^)\$?(?:"[^"]+"|'[^']+'))/dgv,beginCaptures:{"1":{name:"keyword.operator.nushell"},"2":{patterns:[{include:"#control-keywords"},{captures:{"0":{name:"keyword.other.builtin.nushell"}},match:/(?:ansi|char) [\p{L}\p{M}\p{N}\p{Pc}]+/dgv},{captures:{"1":{name:"keyword.other.builtin.nushell"},"2":{patterns:[{include:"#value"}]}},match:/*@__PURE__*/ new EmulatedRegExp("(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)(?![\\p{L}\\p{M}\\p{N}\\p{Pc}\\-])( ([^\\n]*))?","dgv",{"lazyCompile":true})},{captures:{"1":{patterns:[{include:"#paren-expression"}]}},match:/(?<=\^)(?:\$("[^"]+"|'[^']+')|"[^"]+"|'[^']+')/dgv,name:"entity.name.type.external.nushell"},{captures:{"1":{name:"entity.name.type.external.nushell"},"2":{patterns:[{include:"#value"}]}},match:/([\p{L}\p{M}\p{N}\p{Pc}\.]+(?:-[\p{L}\p{M}\p{N}\p{Pc}\.\!]+)*)(?: ([^\n]*))?/dgv},{include:"#value"}]}},end:/(?=\||\)|\}|;)|(?=\n?$)/dgv,name:"meta.command.nushell",patterns:[{include:"#parameters"},{include:"#spread"},{include:"#value"}]},comment:{match:/(#[^\n]*)(?=\n?$)/dgv,name:"comment.nushell"},"constant-keywords":{match:/\b(?:true|false|null)\b/dgv,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_\-\.\/\:\\])/dgv,name:"keyword.control.nushell"},datetime:{match:/\b\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}(?:T\p{Nd}{2}:\p{Nd}{2}:\p{Nd}{2}(?:\.\p{Nd}+)?(?:\+\p{Nd}{2}:?\p{Nd}{2}|Z)?)?\b/dgv,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)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-\!]+)\p{space}*(=)/dgv},"define-variable":{captures:{"1":{name:"keyword.other.nushell"},"2":{name:"variable.other.nushell"},"3":{patterns:[{include:"#operators"}]}},match:/(let|mut|(?:export\p{space}+)?const)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(=)/dgv},expression:{patterns:[{include:"#pre-command"},{include:"#for-loop"},{include:"#operators"},{match:/\|/dgv,name:"keyword.control.nushell"},{include:"#control-keywords"},{include:"#constant-value"},{include:"#command"},{include:"#value"}]},extern:{begin:/((?:export\p{space}+)?extern)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+")/dgv,beginCaptures:{"1":{name:"entity.name.function.nushell"},"2":{name:"entity.name.type.nushell"}},end:/(?<=\])/dgv,endCaptures:{"0":{name:"punctuation.definition.function.end.nushell"}},patterns:[{include:"#function-parameters"}]},"for-loop":{begin:/(for)\p{space}+(\$?[\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(in)\p{space}+([^\n]+)\p{space}*(\{)/dgv,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:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.bracket.curly.nushell"}},name:"meta.for-loop.nushell",patterns:[{include:"source.nushell"}]},function:{begin:/((?:export\p{space}+)?def(?:\p{space}+--[\p{L}\p{M}\p{N}\p{Pc}]+)*)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+'|`[\p{L}\p{M}\p{N}\p{Pc}\- ]+`)(\p{space}+--[\p{L}\p{M}\p{N}\p{Pc}]+)*/dgv,beginCaptures:{"1":{name:"entity.name.function.nushell"},"2":{name:"entity.name.type.nushell"},"3":{name:"entity.name.function.nushell"}},end:/(?<=\})/dgv,patterns:[{include:"#function-parameters"},{include:"#function-body"},{include:"#function-inout"}]},"function-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.function.begin.nushell"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.function.end.nushell"}},name:"meta.function.body.nushell",patterns:[{include:"source.nushell"}]},"function-inout":{patterns:[{include:"#types"},{match:/->/dgv,name:"keyword.operator.nushell"},{include:"#function-multiple-inout"}]},"function-multiple-inout":{begin:/(?<=\]\p{space}*)(:)\p{space}+(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.in-out.nushell"},"2":{name:"meta.brace.square.begin.nushell"}},end:/\]/dgv,endCaptures:{"0":{name:"meta.brace.square.end.nushell"}},patterns:[{include:"#types"},{captures:{"1":{name:"punctuation.separator.nushell"}},match:/\p{space}*(,)\p{space}*/dgv},{captures:{"1":{name:"keyword.operator.nushell"}},match:/\p{space}+(->)\p{space}+/dgv}]},"function-parameter":{patterns:[{captures:{"1":{name:"keyword.control.nushell"}},match:/(-{0,2}|\.{3})[\p{L}\p{M}\p{N}\p{Pc}\-]+(?:\((-[\p{L}\p{M}\p{N}\p{Pc}\?])\))?/dgv,name:"variable.parameter.nushell"},{begin:/\??:\p{space}*/dgv,end:/(?=\p{space}+(?:-{0,2}|\.{3})[\p{L}\p{M}\p{N}\p{Pc}\-]+|\p{space}*(?:,|\]|\||@|=|#|(?=\n?$)))/dgv,patterns:[{include:"#types"}]},{begin:/@(?="|')/dgv,end:/(?<="|')/dgv,patterns:[{include:"#string"}]},{begin:/=\p{space}*/dgv,end:/(?=\p{space}+-{0,2}[\p{L}\p{M}\p{N}\p{Pc}\-]+|\p{space}*(?:,|\]|\||#|(?=\n?$)))/dgv,name:"default.value.nushell",patterns:[{include:"#value"}]}]},"function-parameters":{begin:/\[/dgv,beginCaptures:{"0":{name:"meta.brace.square.begin.nushell"}},end:/\]/dgv,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/dgv,name:"variable.language.nushell"},keyword:{match:/def(?:-env)?/dgv,name:"keyword.other.nushell"},module:{begin:/((?:export\p{space}+)?module)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*\{/dgv,beginCaptures:{"1":{name:"entity.name.function.nushell"},"2":{name:"entity.name.namespace.nushell"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.module.end.nushell"}},name:"meta.module.nushell",patterns:[{include:"source.nushell"}]},numbers:{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])[\-\+]?(?:\p{Nd}+|\p{Nd}{1,3}(?:_\p{Nd}{3})*)(?:\.\p{Nd}*)?(?:ns|us|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![\p{L}\p{M}\p{N}\p{Pc}\.])|(?=\.\.))/dgiv,name:"constant.numeric.nushell"},"numbers-hexa":{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])0x[0-9a-fA-F]+(?![\p{L}\p{M}\p{N}\p{Pc}\.])/dgv,name:"constant.numeric.nushell"},operators:{patterns:[{include:"#operators-word"},{include:"#operators-symbols"},{include:"#ranges"}]},"operators-symbols":{match:/(?<= )(?:(?:\+|-|\*|\/)=?|\/\/|\*\*|!=|[\<\>\=]=?|[\!\=]~|\+\+=?)(?= |(?=\n?$))/dgv,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)(?= |\)|(?=\n?$))/dgv,name:"keyword.control.nushell"},parameters:{captures:{"1":{name:"keyword.control.nushell"}},match:/(?<=\p{space})(-{1,2})[\p{L}\p{M}\p{N}\p{Pc}\-]+/dgv,name:"variable.parameter.nushell"},"paren-expression":{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.brace.round.begin.nushell"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.end.nushell"}},name:"meta.expression.parenthesis.nushell",patterns:[{include:"#expression"}]},"pre-command":{begin:/([\p{L}\p{M}\p{N}\p{Pc}]+)(=)/dgv,beginCaptures:{"1":{name:"variable.other.nushell"},"2":{patterns:[{include:"#operators"}]}},end:/(?=\p{space}+)/dgv,patterns:[{include:"#value"}]},ranges:{match:/\.\.<?/dgv,name:"keyword.control.nushell"},spread:{match:/\.\.\.(?=[^\p{space}\]\}])/dgv,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:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.quoted.single.nushell"},"string-bare":{match:/[^\$\[\{\("'\,\|\#\p{space}\|][^\[\]\{\}\(\)"'\p{space}\#\,\|]*/dgv,name:"string.bare.nushell"},"string-double-quote":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.quoted.double.nushell",patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv},{include:"#string-escape"}]},"string-escape":{match:/\\(?:[bfrnt\\'"\/]|u[0-9a-fA-F]{4})/dgv,name:"constant.character.escape.nushell"},"string-interpolated-double":{begin:/\$"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.interpolated.double.nushell",patterns:[{match:/\\[\(\)]/dgv,name:"constant.character.escape.nushell"},{include:"#string-escape"},{include:"#paren-expression"}]},"string-interpolated-single":{begin:/\$'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.interpolated.single.nushell",patterns:[{include:"#paren-expression"}]},"string-single-quote":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.quoted.single.nushell"},table:{begin:/\[/dgv,beginCaptures:{"0":{name:"meta.brace.square.begin.nushell"}},end:/\]/dgv,endCaptures:{"0":{name:"meta.brace.square.end.nushell"}},name:"meta.table.nushell",patterns:[{include:"#spread"},{include:"#value"},{match:/,/dgv,name:"punctuation.separator.nushell"}]},types:{patterns:[{begin:/\b(list)\p{space}*</dgv,beginCaptures:{"1":{name:"entity.name.type.nushell"}},end:/>/dgv,name:"meta.list.nushell",patterns:[{include:"#types"}]},{begin:/\b(record)\p{space}*</dgv,beginCaptures:{"1":{name:"entity.name.type.nushell"}},end:/>/dgv,name:"meta.record.nushell",patterns:[{captures:{"1":{name:"variable.parameter.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[^']+')\p{space}*:\p{space}*/dgv},{include:"#types"}]},{match:/\b([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv,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:/^\p{space}*((?:export )?use)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+')(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+'|\*))?\p{space}*;?(?=\n?$)/dgv},{begin:/^\p{space}*((?:export )?use)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+')\p{space}*\[/dgv,beginCaptures:{"1":{name:"entity.name.function.nushell"},"2":{name:"entity.name.namespace.nushell"}},end:/(\])\p{space}*;?\p{space}*(?=\n?$)/dgv,endCaptures:{"1":{name:"meta.brace.square.end.nushell"}},patterns:[{captures:{"1":{name:"keyword.other.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+'|\*),?/dgv},{include:"#comment"}]},{captures:{"2":{name:"entity.name.function.nushell"},"3":{name:"string.bare.nushell",patterns:[{captures:{"1":{name:"entity.name.namespace.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\- ]+)(?:\.nu)?(?=(?=\n?$)|"|')/dgv}]},"4":{name:"keyword.other.nushell"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<path>(?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?){0}^\\p{space}*((?:export )?use)\\p{space}+(\"((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?)\"|'((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?)'|(?![\"'])((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?))(?:\\p{space}+([\\p{L}\\p{M}\\p{N}\\p{Pc}\\-]+|\"[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+\"|'[^']+'|\\*))?\\p{space}*;?(?=\\n?$)","dgv",{"hiddenCaptures":[4,5,6],"transfers":[[1,[4,5,6]]]})},{begin:/*@__PURE__*/ new EmulatedRegExp("(?<path>(?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?){0}^\\p{space}*((?:export )?use)\\p{space}+(\"((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?)\"|'((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?)'|(?![\"'])((?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]+(?:\\.nu)?))\\p{space}+\\[","dgv",{"hiddenCaptures":[4,5,6],"transfers":[[1,[4,5,6]]]}),beginCaptures:{"2":{name:"entity.name.function.nushell"},"3":{name:"string.bare.nushell",patterns:[{captures:{"1":{name:"entity.name.namespace.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\- ]+)(?:\.nu)?(?=(?=\n?$)|"|')/dgv}]}},end:/(\])\p{space}*;?\p{space}*(?=\n?$)/dgv,endCaptures:{"1":{name:"meta.brace.square.end.nushell"}},patterns:[{captures:{"0":{name:"keyword.other.nushell"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"|'[\p{L}\p{M}\p{N}\p{Pc}\- ]+'|\*),?/dgv},{include:"#comment"}]},{captures:{"0":{name:"entity.name.function.nushell"}},match:/^\p{space}*(?:export )?use\b/dgv}]},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:/(?<=\)|\}|\])(?:\.(?:[\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"))+/dgv,name:"variable.other.nushell"},variables:{captures:{"1":{patterns:[{include:"#internal-variables"},{match:/\$[^\n]+/dgv,name:"variable.other.nushell"}]},"2":{name:"variable.other.nushell"}},match:/(\$[a-zA-Z0-9_]+)((?:\.(?:[\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\- ]+"))*)/dgv}},scopeName:"source.nushell",embeddedLangs:undefined,aliases:["nu"]})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|