@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/julia.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import javascript from './javascript.mjs'
|
|
|
5
5
|
import r from './r.mjs'
|
|
6
6
|
import sql from './sql.mjs'
|
|
7
7
|
|
|
8
|
-
const lang = Object.freeze({displayName:"Julia",name:"julia",patterns:[{include:"#operator"},{include:"#array"},{include:"#string"},{include:"#parentheses"},{include:"#bracket"},{include:"#function_decl"},{include:"#function_call"},{include:"#for_block"},{include:"#keyword"},{include:"#number"},{include:"#comment"},{include:"#type_decl"},{include:"#symbol"},{include:"#punctuation"}],repository:{array:{patterns:[{begin:/\[/dgv,beginCaptures:{"0":{name:"meta.bracket.julia"}},end:/(\])((?:\.)?'*)/dgv,endCaptures:{"1":{name:"meta.bracket.julia"},"2":{name:"keyword.operator.transpose.julia"}},name:"meta.array.julia",patterns:[{match:/\bbegin\b/dgv,name:"constant.numeric.julia"},{match:/\bend\b/dgv,name:"constant.numeric.julia"},{include:"#self_no_for_block"}]}]},bracket:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"meta.bracket.julia"}},end:/(\})((?:\.)?'*)/dgv,endCaptures:{"1":{name:"meta.bracket.julia"},"2":{name:"keyword.operator.transpose.julia"}},patterns:[{include:"#self_no_for_block"}]}]},comment:{patterns:[{include:"#comment_block"},{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.julia"}},end:/\n/dgv,name:"comment.line.number-sign.julia",patterns:[{include:"#comment_tags"}]}]},comment_block:{patterns:[{begin:/#=/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.julia"}},end:/=#/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.julia"}},name:"comment.block.number-sign-equals.julia",patterns:[{include:"#comment_tags"},{include:"#comment_block"}]}]},comment_tags:{patterns:[{match:/\bTODO\b/dgv,name:"keyword.other.comment-annotation.julia"},{match:/\bFIXME\b/dgv,name:"keyword.other.comment-annotation.julia"},{match:/\bCHANGED\b/dgv,name:"keyword.other.comment-annotation.julia"},{match:/\bXXX\b/dgv,name:"keyword.other.comment-annotation.julia"}]},for_block:{comment:"for blocks need to be special-cased to support tokenizing 'outer' properly",patterns:[{begin:/\b(for)\b/dgv,beginCaptures:{"0":{name:"keyword.control.julia"}},end:/(?<!,|\p{space})(\p{space}*\n)/dgv,patterns:[{match:/\bouter\b/dgv,name:"keyword.other.julia"},{include:"$self"}]}]},function_call:{patterns:[{begin:/((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)(\{(?:[^\{\}]|\{(?:[^\{\}]|\{[^\{\}]*\})*\})*\})?\.?(\()/dgv,beginCaptures:{"1":{name:"support.function.julia"},"2":{name:"support.type.julia"},"3":{name:"meta.bracket.julia"}},end:/\)(('|(\.'))*\.?')?/dgv,endCaptures:{"0":{name:"meta.bracket.julia"},"1":{name:"keyword.operator.transposed-func.julia"}},patterns:[{include:"#self_no_for_block"}]}]},function_decl:{patterns:[{captures:{"1":{name:"entity.name.function.julia"},"2":{name:"support.type.julia"}},comment:"first group is function name\nSecond group is type parameters (e.g. {T<:Number, S})\nThen open parens\nThen a lookahead ensures that we are followed by:\n - anything (function arguments)\n - 0 or more spaces\n - Finally an equal sign\nNegative lookahead ensures we don't have another equal sign (not `==`)",match:/((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)(\{(?:[^\{\}]|\{(?:[^\{\}]|\{[^\{\}]*\})*\})*\})?(?=\([^\#]*\)(::[^\p{space}]+)?(\p{space}*\bwhere\b\p{space}+[^\n]+?)?\p{space}*?=(?![\=\>]))/dgv},{captures:{"1":{name:"keyword.other.julia"},"2":{name:"keyword.operator.dots.julia"},"3":{name:"entity.name.function.julia"},"4":{name:"support.type.julia"}},comment:"similar regex to previous, but with keyword not 1-line syntax",match:/\b(function|macro)(?:\p{space}+(?:(?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*(\.))?((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)(\{(?:[^\{\}]|\{(?:[^\{\}]|\{[^\{\}]*\})*\})*\})?|\p{space}*)(?=\()/dgv}]},keyword:{patterns:[{match:/\b(?<![\:_\.])(?:function|mutable\p{space}+struct|struct|macro|quote|abstract\p{space}+type|primitive\p{space}+type|module|baremodule|where)\b/dgv,name:"keyword.other.julia"},{match:/\b(?<![\:_])(?:if|else|elseif|for|while|begin|let|do|try|catch|finally|return|break|continue)\b/dgv,name:"keyword.control.julia"},{match:/\b(?<![\:_])end\b/dgv,name:"keyword.control.end.julia"},{match:/\b(?<![\:_])(?:global|local|const)\b/dgv,name:"keyword.storage.modifier.julia"},{match:/\b(?<![\:_])export\b/dgv,name:"keyword.control.export.julia"},{match:/^public\b/dgv,name:"keyword.control.public.julia"},{match:/\b(?<![\:_])import\b/dgv,name:"keyword.control.import.julia"},{match:/\b(?<![\:_])using\b/dgv,name:"keyword.control.using.julia"},{match:/(?<=\P{space}\p{space}+)\b(as)\b(?=\p{space}+\P{space})/dgv,name:"keyword.control.as.julia"},{match:/(@(\.|(?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*))/dgv,name:"support.function.macro.julia"}]},number:{patterns:[{captures:{"1":{name:"constant.numeric.julia"},"2":{name:"keyword.operator.conjugate-number.julia"}},match:/((?<!(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿]))(?:\b0(?:x|X)[0-9a-fA-F](?:_?[0-9a-fA-F])*|\b0o[0-7](?:_?[0-7])*|\b0b[0-1](?:_?[0-1])*|(?:\b[0-9](?:_?[0-9])*\.?(?!\.)[_0-9]*|\b\.[0-9](?:_?[0-9])*)(?:[efE][\+\-]?[0-9](?:_?[0-9])*)?(?:im\b|Inf(?:16|32|64)?\b|NaN(?:16|32|64)?\b|π\b|pi\b|ℯ\b)?|\b[0-9]+|\bInf(?:16|32|64)?\b|\bNaN(?:16|32|64)?\b|\bπ\b|\bpi\b|\bℯ\b))('*)/dgv},{match:/\bARGS\b|\bC_NULL\b|\bDEPOT_PATH\b|\bENDIAN_BOM\b|\bENV\b|\bLOAD_PATH\b|\bPROGRAM_FILE\b|\bstdin\b|\bstdout\b|\bstderr\b|\bVERSION\b|\bdevnull\b/dgv,name:"constant.global.julia"},{match:/\btrue\b|\bfalse\b|\bnothing\b|\bmissing\b/dgv,name:"constant.language.julia"}]},operator:{patterns:[{match:/\.?(?:<-->|->|-->|<--|←|→|↔|↚|↛|↞|↠|↢|↣|↦|↤|↮|⇎|⇍|⇏|⇐|⇒|⇔|⇴|⇶|⇷|⇸|⇹|⇺|⇻|⇼|⇽|⇾|⇿|⟵|⟶|⟷|⟹|⟺|⟻|⟼|⟽|⟾|⟿|⤀|⤁|⤂|⤃|⤄|⤅|⤆|⤇|⤌|⤍|⤎|⤏|⤐|⤑|⤔|⤕|⤖|⤗|⤘|⤝|⤞|⤟|⤠|⥄|⥅|⥆|⥇|⥈|⥊|⥋|⥎|⥐|⥒|⥓|⥖|⥗|⥚|⥛|⥞|⥟|⥢|⥤|⥦|⥧|⥨|⥩|⥪|⥫|⥬|⥭|⥰|⧴|⬱|⬰|⬲|⬳|⬴|⬵|⬶|⬷|⬸|⬹|⬺|⬻|⬼|⬽|⬾|⬿|⭀|⭁|⭂|⭃|⥷|⭄|⥺|⭇|⭈|⭉|⭊|⭋|⭌|←|→|⇜|⇝|↜|↝|↩|↪|↫|↬|↼|↽|⇀|⇁|⇄|⇆|⇇|⇉|⇋|⇌|⇚|⇛|⇠|⇢|↷|↶|↺|↻|=>)/dgv,name:"keyword.operator.arrow.julia"},{match:/(?::=|\+=|-=|\*=|\/\/=|\/=|\.\/\/=|\.\/=|\.\*=|\\=|\.\\=|\^=|\.\^=|%=|\.%=|÷=|\.÷=|\|=|&=|\.&=|⊻=|\.⊻=|\$=|<<=|>>=|>>>=|=(?!=))/dgv,name:"keyword.operator.update.julia"},{match:/(?:<<|>>>|>>|\.>>>|\.>>|\.<<)/dgv,name:"keyword.operator.shift.julia"},{captures:{"1":{name:"keyword.operator.relation.types.julia"},"2":{name:"support.type.julia"},"3":{name:"keyword.operator.transpose.julia"}},match:/\p{space}*(::|>:|<:)\p{space}*((?:(?:Union)?\([^\)]*\)|[\p{Alpha}_\$∇][\p{Alpha}\p{M}\p{Nd}\p{Pc}⁺-ₜ\!′\.]*(?:\{(?:[^\{\}]|\{(?:[^\{\}]|\{[^\{\}]*\})*\})*\}|"[^\n]+?(?<!\\)")?))(?:\.\.\.)?((?:\.)?'*)/dgv},{match:/(\.?((?<!<)<=|(?<!>)>=|>|<|≥|≤|===|==|≡|!=|≠|!==|≢|∈|∉|∋|∌|⊆|⊈|⊂|⊄|⊊|∝|∊|∍|∥|∦|∷|∺|∻|∽|∾|≁|≃|≂|≄|≅|≆|≇|≈|≉|≊|≋|≌|≍|≎|≐|≑|≒|≓|≖|≗|≘|≙|≚|≛|≜|≝|≞|≟|≣|≦|≧|≨|≩|≪|≫|≬|≭|≮|≯|≰|≱|≲|≳|≴|≵|≶|≷|≸|≹|≺|≻|≼|≽|≾|≿|⊀|⊁|⊃|⊅|⊇|⊉|⊋|⊏|⊐|⊑|⊒|⊜|⊩|⊬|⊮|⊰|⊱|⊲|⊳|⊴|⊵|⊶|⊷|⋍|⋐|⋑|⋕|⋖|⋗|⋘|⋙|⋚|⋛|⋜|⋝|⋞|⋟|⋠|⋡|⋢|⋣|⋤|⋥|⋦|⋧|⋨|⋩|⋪|⋫|⋬|⋭|⋲|⋳|⋴|⋵|⋶|⋷|⋸|⋹|⋺|⋻|⋼|⋽|⋾|⋿|⟈|⟉|⟒|⦷|⧀|⧁|⧡|⧣|⧤|⧥|⩦|⩧|⩪|⩫|⩬|⩭|⩮|⩯|⩰|⩱|⩲|⩳|⩵|⩶|⩷|⩸|⩹|⩺|⩻|⩼|⩽|⩾|⩿|⪀|⪁|⪂|⪃|⪄|⪅|⪆|⪇|⪈|⪉|⪊|⪋|⪌|⪍|⪎|⪏|⪐|⪑|⪒|⪓|⪔|⪕|⪖|⪗|⪘|⪙|⪚|⪛|⪜|⪝|⪞|⪟|⪠|⪡|⪢|⪣|⪤|⪥|⪦|⪧|⪨|⪩|⪪|⪫|⪬|⪭|⪮|⪯|⪰|⪱|⪲|⪳|⪴|⪵|⪶|⪷|⪸|⪹|⪺|⪻|⪼|⪽|⪾|⪿|⫀|⫁|⫂|⫃|⫄|⫅|⫆|⫇|⫈|⫉|⫊|⫋|⫌|⫍|⫎|⫏|⫐|⫑|⫒|⫓|⫔|⫕|⫖|⫗|⫘|⫙|⫷|⫸|⫹|⫺|⊢|⊣|⟂|⫪|⫫|<:|>:))/dgv,name:"keyword.operator.relation.julia"},{match:/(?<=\p{space})\?(?=\p{space})/dgv,name:"keyword.operator.ternary.julia"},{match:/(?<=\p{space}):(?=\p{space})/dgv,name:"keyword.operator.ternary.julia"},{match:/(?:\|\||&&|(?<!(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿]))!)/dgv,name:"keyword.operator.boolean.julia"},{match:/(?<=[\p{Alpha}\p{M}\p{Nd}\p{Pc}⁺-ₜ\!′∇\)\]\}]):/dgv,name:"keyword.operator.range.julia"},{match:/\|>/dgv,name:"keyword.operator.applies.julia"},{match:/(?:\||\.\||&|\.&|~|¬|\.~|⊻|\.⊻)/dgv,name:"keyword.operator.bitwise.julia"},{match:/\.?(?:\+\+|--|\+|-|−|¦|\||⊕|⊖|⊞|⊟|∪|∨|⊔|±|∓|∔|∸|≏|⊎|⊻|⊽|⋎|⋓|⟇|⧺|⧻|⨈|⨢|⨣|⨤|⨥|⨦|⨧|⨨|⨩|⨪|⨫|⨬|⨭|⨮|⨹|⨺|⩁|⩂|⩅|⩊|⩌|⩏|⩐|⩒|⩔|⩖|⩗|⩛|⩝|⩡|⩢|⩣|\*|\/\/?|⌿|÷|%|&|·|·|⋅|∘|×|\\|∩|∧|⊗|⊘|⊙|⊚|⊛|⊠|⊡|⊓|∗|∙|∤|⅋|≀|⊼|⋄|⋆|⋇|⋉|⋊|⋋|⋌|⋏|⋒|⟑|⦸|⦼|⦾|⦿|⧶|⧷|⨇|⨰|⨱|⨲|⨳|⨴|⨵|⨶|⨷|⨸|⨻|⨼|⨽|⩀|⩃|⩄|⩋|⩍|⩎|⩑|⩓|⩕|⩘|⩚|⩜|⩞|⩟|⩠|⫛|⊍|▷|⨝|⟕|⟖|⟗|⨟|\^|↑|↓|⇵|⟰|⟱|⤈|⤉|⤊|⤋|⤒|⤓|⥉|⥌|⥍|⥏|⥑|⥔|⥕|⥘|⥙|⥜|⥝|⥠|⥡|⥣|⥥|⥮|⥯|↑|↓|√|∛|∜|⋆|±|∓)/dgv,name:"keyword.operator.arithmetic.julia"},{match:/∘/dgv,name:"keyword.operator.compose.julia"},{match:/(?:::|(?<=\p{space})isa(?=\p{space}))/dgv,name:"keyword.operator.isa.julia"},{match:/(?<=\p{space})in(?=\p{space})/dgv,name:"keyword.operator.relation.in.julia"},{match:/(?:\.(?=(?:@|_|\p{L}))|\.\.+|…|⁝|⋮|⋱|⋰|⋯)/dgv,name:"keyword.operator.dots.julia"},{match:/\$(?=[^\n]+)/dgv,name:"keyword.operator.interpolation.julia"},{captures:{"2":{name:"keyword.operator.transposed-variable.julia"}},match:/((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)(('|(\.'))*\.?')/dgv},{captures:{"1":{name:"bracket.end.julia"},"2":{name:"keyword.operator.transposed-matrix.julia"}},match:/(\])((?:'|\.')*\.?')/dgv},{captures:{"1":{name:"bracket.end.julia"},"2":{name:"keyword.operator.transposed-parens.julia"}},match:/(\))((?:'|\.')*\.?')/dgv}]},parentheses:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.bracket.julia"}},end:/(\))((?:\.)?'*)/dgv,endCaptures:{"1":{name:"meta.bracket.julia"},"2":{name:"keyword.operator.transpose.julia"}},patterns:[{include:"#self_no_for_block"}]}]},punctuation:{patterns:[{match:/,/dgv,name:"punctuation.separator.comma.julia"},{match:/;/dgv,name:"punctuation.separator.semicolon.julia"}]},self_no_for_block:{comment:"Same as $self, but does not contain #for_block. 'outer' is not valid in some contexts (e.g. generators, comprehensions, indexing), so use this when matching those in begin/end patterns. Keep this up-to-date with $self!",patterns:[{include:"#operator"},{include:"#array"},{include:"#string"},{include:"#parentheses"},{include:"#bracket"},{include:"#function_decl"},{include:"#function_call"},{include:"#keyword"},{include:"#number"},{include:"#comment"},{include:"#type_decl"},{include:"#symbol"},{include:"#punctuation"}]},string:{patterns:[{begin:/(?:(@doc)\p{space}((?:doc)?""")|(doc"""))/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},end:/(""") ?(->)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"keyword.operator.arrow.julia"}},name:"string.docstring.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(i?cxx)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.cpp",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"embed.cxx.julia",patterns:[{include:"source.cpp#root_context"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(py)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.python",end:/([\p{space}\p{L}\p{M}\p{N}\p{Pc}]*)(""")/dgv,endCaptures:{"2":{name:"punctuation.definition.string.end.julia"}},name:"embed.python.julia",patterns:[{include:"source.python"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(js)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.javascript",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"embed.js.julia",patterns:[{include:"source.js"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(R)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.r",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"embed.R.julia",patterns:[{include:"source.r"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(raw)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"string.quoted.other.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(raw)(")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"string.quoted.other.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(sql)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.sql",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"embed.sql.julia",patterns:[{include:"source.sql"},{include:"#string_dollar_sign_interpolate"}]},{begin:/var"""/dgv,end:/"""/dgv,name:"constant.other.symbol.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/var"/dgv,end:/"/dgv,name:"constant.other.symbol.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/^\p{space}?(doc)?(""")\p{space}?(?=\n?$)/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},comment:"This only matches docstrings that start and end with triple quotes on\ntheir own line in the void",end:/(""")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"}},name:"string.docstring.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"}},end:/'(?!')/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"string.quoted.single.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.multiline.begin.julia"}},comment:"multi-line string with triple double quotes",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.multiline.end.julia"}},name:"string.quoted.triple.double.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/"(?!"")/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"}},comment:"String with single pair of double quotes. Regex matches isolated double quote",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"string.quoted.double.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/r"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.regexp.begin.julia"}},end:/(""")([imsx]{0,4})?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.regexp.end.julia"},"2":{comment:"I took this scope name from python regex grammar",name:"keyword.other.option-toggle.regexp.julia"}},name:"string.regexp.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/r"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.regexp.begin.julia"}},end:/(")([imsx]{0,4})?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.regexp.end.julia"},"2":{comment:"I took this scope name from python regex grammar",name:"keyword.other.option-toggle.regexp.julia"}},name:"string.regexp.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(?<!")((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"},"1":{name:"support.function.macro.julia"}},end:/(""")((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"support.function.macro.julia"}},name:"string.quoted.other.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(?<!")((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"},"1":{name:"support.function.macro.julia"}},end:/(?<![^\\]\\)(")((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"support.function.macro.julia"}},name:"string.quoted.other.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(?<!`)((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?```/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"},"1":{name:"support.function.macro.julia"}},end:/(```)((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"support.function.macro.julia"}},name:"string.interpolated.backtick.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(?<!`)((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"},"1":{name:"support.function.macro.julia"}},end:/(?<![^\\]\\)(`)((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"support.function.macro.julia"}},name:"string.interpolated.backtick.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]}]},string_dollar_sign_interpolate:{patterns:[{match:/\$(?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿]|[^\P{Sc}\$])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿]|[^\P{Sc}\$])*/dgv,name:"variable.interpolation.julia"},{begin:/\$(\()/dgv,beginCaptures:{"1":{name:"meta.bracket.julia"}},comment:"`punctuation.section.embedded`, `constant.escape`,\n& `meta.embedded.line` were considered but appear to have even spottier\nsupport among popular syntaxes.",end:/\)/dgv,endCaptures:{"0":{name:"meta.bracket.julia"}},name:"variable.interpolation.julia",patterns:[{include:"#self_no_for_block"}]}]},string_escaped_char:{patterns:[{match:/\\(\\|[0-3]\p{Nd}{0,2}|[4-7]\p{Nd}?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8}|[^\n])/dgv,name:"constant.character.escape.julia"}]},symbol:{patterns:[{comment:"This is string.quoted.symbol.julia in tpoisot's package",match:/(?<![\p{Alpha}\p{M}\p{Nd}\p{Pc}⁺-ₜ\!′∇\)\]\}]):(?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*(?!(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿]))(?!["\`])/dgv,name:"constant.other.symbol.julia"}]},type_decl:{patterns:[{captures:{"1":{name:"entity.name.type.julia"},"2":{name:"entity.other.inherited-class.julia"},"3":{name:"punctuation.separator.inheritance.julia"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(!:_))\\1)(?:struct|mutable\\p{space}+struct|abstract\\p{space}+type|primitive\\p{space}+type)\\p{space}+((?:[\\p{Alpha}_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[\\p{Alpha}\\p{M}\\p{Nd}\\p{Pc}_\\!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\\x01-¡]|[^\\P{Mc}\\x01-¡]|[^\\P{Nd}\\x01-¡]|[^\\P{Pc}\\x01-¡]|[^\\P{Sk}\\x01-¡]|[^\\P{Me}\\x01-¡]|[^\\P{No}\\x01-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)(\\p{space}*(<:)\\p{space}*(?:[\\p{Alpha}_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[\\p{Alpha}\\p{M}\\p{Nd}\\p{Pc}_\\!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\\x01-¡]|[^\\P{Mc}\\x01-¡]|[^\\P{Nd}\\x01-¡]|[^\\P{Pc}\\x01-¡]|[^\\P{Sk}\\x01-¡]|[^\\P{Me}\\x01-¡]|[^\\P{No}\\x01-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*(?:\\{[^\\n]*\\})?)?","dgv",{"hiddenCaptures":[1]}),name:"meta.type.julia"}]}},scopeName:"source.julia",embeddedLangs:["cpp","python","javascript","r","sql"],aliases:["jl"]})
|
|
8
|
+
const lang = Object.freeze({displayName:"Julia",name:"julia",patterns:[{include:"#operator"},{include:"#array"},{include:"#string"},{include:"#parentheses"},{include:"#bracket"},{include:"#function_decl"},{include:"#function_call"},{include:"#for_block"},{include:"#keyword"},{include:"#number"},{include:"#comment"},{include:"#type_decl"},{include:"#symbol"},{include:"#punctuation"}],repository:{array:{patterns:[{begin:/\[/dgv,beginCaptures:{"0":{name:"meta.bracket.julia"}},end:/(\])((?:\.)?'*)/dgv,endCaptures:{"1":{name:"meta.bracket.julia"},"2":{name:"keyword.operator.transpose.julia"}},name:"meta.array.julia",patterns:[{match:/\bbegin\b/dgv,name:"constant.numeric.julia"},{match:/\bend\b/dgv,name:"constant.numeric.julia"},{include:"#self_no_for_block"}]}]},bracket:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"meta.bracket.julia"}},end:/(\})((?:\.)?'*)/dgv,endCaptures:{"1":{name:"meta.bracket.julia"},"2":{name:"keyword.operator.transpose.julia"}},patterns:[{include:"#self_no_for_block"}]}]},comment:{patterns:[{include:"#comment_block"},{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.julia"}},end:/\n/dgv,name:"comment.line.number-sign.julia",patterns:[{include:"#comment_tags"}]}]},comment_block:{patterns:[{begin:/#=/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.julia"}},end:/=#/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.julia"}},name:"comment.block.number-sign-equals.julia",patterns:[{include:"#comment_tags"},{include:"#comment_block"}]}]},comment_tags:{patterns:[{match:/\bTODO\b/dgv,name:"keyword.other.comment-annotation.julia"},{match:/\bFIXME\b/dgv,name:"keyword.other.comment-annotation.julia"},{match:/\bCHANGED\b/dgv,name:"keyword.other.comment-annotation.julia"},{match:/\bXXX\b/dgv,name:"keyword.other.comment-annotation.julia"}]},for_block:{patterns:[{begin:/\b(for)\b/dgv,beginCaptures:{"0":{name:"keyword.control.julia"}},end:/(?<!,|\p{space})(\p{space}*\n)/dgv,patterns:[{match:/\bouter\b/dgv,name:"keyword.other.julia"},{include:"$self"}]}]},function_call:{patterns:[{begin:/((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)(\{(?:[^\{\}]|\{(?:[^\{\}]|\{[^\{\}]*\})*\})*\})?\.?(\()/dgv,beginCaptures:{"1":{name:"support.function.julia"},"2":{name:"support.type.julia"},"3":{name:"meta.bracket.julia"}},end:/\)(('|(\.'))*\.?')?/dgv,endCaptures:{"0":{name:"meta.bracket.julia"},"1":{name:"keyword.operator.transposed-func.julia"}},patterns:[{include:"#self_no_for_block"}]}]},function_decl:{patterns:[{captures:{"1":{name:"entity.name.function.julia"},"2":{name:"support.type.julia"}},match:/((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)(\{(?:[^\{\}]|\{(?:[^\{\}]|\{[^\{\}]*\})*\})*\})?(?=\([^\#]*\)(::[^\p{space}]+)?(\p{space}*\bwhere\b\p{space}+[^\n]+?)?\p{space}*?=(?![\=\>]))/dgv},{captures:{"1":{name:"keyword.other.julia"},"2":{name:"keyword.operator.dots.julia"},"3":{name:"entity.name.function.julia"},"4":{name:"support.type.julia"}},match:/\b(function|macro)(?:\p{space}+(?:(?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*(\.))?((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)(\{(?:[^\{\}]|\{(?:[^\{\}]|\{[^\{\}]*\})*\})*\})?|\p{space}*)(?=\()/dgv}]},keyword:{patterns:[{match:/\b(?<![\:_\.])(?:function|mutable\p{space}+struct|struct|macro|quote|abstract\p{space}+type|primitive\p{space}+type|module|baremodule|where)\b/dgv,name:"keyword.other.julia"},{match:/\b(?<![\:_])(?:if|else|elseif|for|while|begin|let|do|try|catch|finally|return|break|continue)\b/dgv,name:"keyword.control.julia"},{match:/\b(?<![\:_])end\b/dgv,name:"keyword.control.end.julia"},{match:/\b(?<![\:_])(?:global|local|const)\b/dgv,name:"keyword.storage.modifier.julia"},{match:/\b(?<![\:_])export\b/dgv,name:"keyword.control.export.julia"},{match:/^public\b/dgv,name:"keyword.control.public.julia"},{match:/\b(?<![\:_])import\b/dgv,name:"keyword.control.import.julia"},{match:/\b(?<![\:_])using\b/dgv,name:"keyword.control.using.julia"},{match:/(?<=\P{space}\p{space}+)\b(as)\b(?=\p{space}+\P{space})/dgv,name:"keyword.control.as.julia"},{match:/(@(\.|(?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*))/dgv,name:"support.function.macro.julia"}]},number:{patterns:[{captures:{"1":{name:"constant.numeric.julia"},"2":{name:"keyword.operator.conjugate-number.julia"}},match:/((?<!(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿]))(?:\b0(?:x|X)[0-9a-fA-F](?:_?[0-9a-fA-F])*|\b0o[0-7](?:_?[0-7])*|\b0b[0-1](?:_?[0-1])*|(?:\b[0-9](?:_?[0-9])*\.?(?!\.)[_0-9]*|\b\.[0-9](?:_?[0-9])*)(?:[efE][\+\-]?[0-9](?:_?[0-9])*)?(?:im\b|Inf(?:16|32|64)?\b|NaN(?:16|32|64)?\b|π\b|pi\b|ℯ\b)?|\b[0-9]+|\bInf(?:16|32|64)?\b|\bNaN(?:16|32|64)?\b|\bπ\b|\bpi\b|\bℯ\b))('*)/dgv},{match:/\bARGS\b|\bC_NULL\b|\bDEPOT_PATH\b|\bENDIAN_BOM\b|\bENV\b|\bLOAD_PATH\b|\bPROGRAM_FILE\b|\bstdin\b|\bstdout\b|\bstderr\b|\bVERSION\b|\bdevnull\b/dgv,name:"constant.global.julia"},{match:/\btrue\b|\bfalse\b|\bnothing\b|\bmissing\b/dgv,name:"constant.language.julia"}]},operator:{patterns:[{match:/\.?(?:<-->|->|-->|<--|←|→|↔|↚|↛|↞|↠|↢|↣|↦|↤|↮|⇎|⇍|⇏|⇐|⇒|⇔|⇴|⇶|⇷|⇸|⇹|⇺|⇻|⇼|⇽|⇾|⇿|⟵|⟶|⟷|⟹|⟺|⟻|⟼|⟽|⟾|⟿|⤀|⤁|⤂|⤃|⤄|⤅|⤆|⤇|⤌|⤍|⤎|⤏|⤐|⤑|⤔|⤕|⤖|⤗|⤘|⤝|⤞|⤟|⤠|⥄|⥅|⥆|⥇|⥈|⥊|⥋|⥎|⥐|⥒|⥓|⥖|⥗|⥚|⥛|⥞|⥟|⥢|⥤|⥦|⥧|⥨|⥩|⥪|⥫|⥬|⥭|⥰|⧴|⬱|⬰|⬲|⬳|⬴|⬵|⬶|⬷|⬸|⬹|⬺|⬻|⬼|⬽|⬾|⬿|⭀|⭁|⭂|⭃|⥷|⭄|⥺|⭇|⭈|⭉|⭊|⭋|⭌|←|→|⇜|⇝|↜|↝|↩|↪|↫|↬|↼|↽|⇀|⇁|⇄|⇆|⇇|⇉|⇋|⇌|⇚|⇛|⇠|⇢|↷|↶|↺|↻|=>)/dgv,name:"keyword.operator.arrow.julia"},{match:/(?::=|\+=|-=|\*=|\/\/=|\/=|\.\/\/=|\.\/=|\.\*=|\\=|\.\\=|\^=|\.\^=|%=|\.%=|÷=|\.÷=|\|=|&=|\.&=|⊻=|\.⊻=|\$=|<<=|>>=|>>>=|=(?!=))/dgv,name:"keyword.operator.update.julia"},{match:/(?:<<|>>>|>>|\.>>>|\.>>|\.<<)/dgv,name:"keyword.operator.shift.julia"},{captures:{"1":{name:"keyword.operator.relation.types.julia"},"2":{name:"support.type.julia"},"3":{name:"keyword.operator.transpose.julia"}},match:/\p{space}*(::|>:|<:)\p{space}*((?:(?:Union)?\([^\)]*\)|[\p{Alpha}_\$∇][\p{Alpha}\p{M}\p{Nd}\p{Pc}⁺-ₜ\!′\.]*(?:\{(?:[^\{\}]|\{(?:[^\{\}]|\{[^\{\}]*\})*\})*\}|"[^\n]+?(?<!\\)")?))(?:\.\.\.)?((?:\.)?'*)/dgv},{match:/(\.?((?<!<)<=|(?<!>)>=|>|<|≥|≤|===|==|≡|!=|≠|!==|≢|∈|∉|∋|∌|⊆|⊈|⊂|⊄|⊊|∝|∊|∍|∥|∦|∷|∺|∻|∽|∾|≁|≃|≂|≄|≅|≆|≇|≈|≉|≊|≋|≌|≍|≎|≐|≑|≒|≓|≖|≗|≘|≙|≚|≛|≜|≝|≞|≟|≣|≦|≧|≨|≩|≪|≫|≬|≭|≮|≯|≰|≱|≲|≳|≴|≵|≶|≷|≸|≹|≺|≻|≼|≽|≾|≿|⊀|⊁|⊃|⊅|⊇|⊉|⊋|⊏|⊐|⊑|⊒|⊜|⊩|⊬|⊮|⊰|⊱|⊲|⊳|⊴|⊵|⊶|⊷|⋍|⋐|⋑|⋕|⋖|⋗|⋘|⋙|⋚|⋛|⋜|⋝|⋞|⋟|⋠|⋡|⋢|⋣|⋤|⋥|⋦|⋧|⋨|⋩|⋪|⋫|⋬|⋭|⋲|⋳|⋴|⋵|⋶|⋷|⋸|⋹|⋺|⋻|⋼|⋽|⋾|⋿|⟈|⟉|⟒|⦷|⧀|⧁|⧡|⧣|⧤|⧥|⩦|⩧|⩪|⩫|⩬|⩭|⩮|⩯|⩰|⩱|⩲|⩳|⩵|⩶|⩷|⩸|⩹|⩺|⩻|⩼|⩽|⩾|⩿|⪀|⪁|⪂|⪃|⪄|⪅|⪆|⪇|⪈|⪉|⪊|⪋|⪌|⪍|⪎|⪏|⪐|⪑|⪒|⪓|⪔|⪕|⪖|⪗|⪘|⪙|⪚|⪛|⪜|⪝|⪞|⪟|⪠|⪡|⪢|⪣|⪤|⪥|⪦|⪧|⪨|⪩|⪪|⪫|⪬|⪭|⪮|⪯|⪰|⪱|⪲|⪳|⪴|⪵|⪶|⪷|⪸|⪹|⪺|⪻|⪼|⪽|⪾|⪿|⫀|⫁|⫂|⫃|⫄|⫅|⫆|⫇|⫈|⫉|⫊|⫋|⫌|⫍|⫎|⫏|⫐|⫑|⫒|⫓|⫔|⫕|⫖|⫗|⫘|⫙|⫷|⫸|⫹|⫺|⊢|⊣|⟂|⫪|⫫|<:|>:))/dgv,name:"keyword.operator.relation.julia"},{match:/(?<=\p{space})\?(?=\p{space})/dgv,name:"keyword.operator.ternary.julia"},{match:/(?<=\p{space}):(?=\p{space})/dgv,name:"keyword.operator.ternary.julia"},{match:/(?:\|\||&&|(?<!(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿]))!)/dgv,name:"keyword.operator.boolean.julia"},{match:/(?<=[\p{Alpha}\p{M}\p{Nd}\p{Pc}⁺-ₜ\!′∇\)\]\}]):/dgv,name:"keyword.operator.range.julia"},{match:/\|>/dgv,name:"keyword.operator.applies.julia"},{match:/(?:\||\.\||&|\.&|~|¬|\.~|⊻|\.⊻)/dgv,name:"keyword.operator.bitwise.julia"},{match:/\.?(?:\+\+|--|\+|-|−|¦|\||⊕|⊖|⊞|⊟|∪|∨|⊔|±|∓|∔|∸|≏|⊎|⊻|⊽|⋎|⋓|⟇|⧺|⧻|⨈|⨢|⨣|⨤|⨥|⨦|⨧|⨨|⨩|⨪|⨫|⨬|⨭|⨮|⨹|⨺|⩁|⩂|⩅|⩊|⩌|⩏|⩐|⩒|⩔|⩖|⩗|⩛|⩝|⩡|⩢|⩣|\*|\/\/?|⌿|÷|%|&|·|·|⋅|∘|×|\\|∩|∧|⊗|⊘|⊙|⊚|⊛|⊠|⊡|⊓|∗|∙|∤|⅋|≀|⊼|⋄|⋆|⋇|⋉|⋊|⋋|⋌|⋏|⋒|⟑|⦸|⦼|⦾|⦿|⧶|⧷|⨇|⨰|⨱|⨲|⨳|⨴|⨵|⨶|⨷|⨸|⨻|⨼|⨽|⩀|⩃|⩄|⩋|⩍|⩎|⩑|⩓|⩕|⩘|⩚|⩜|⩞|⩟|⩠|⫛|⊍|▷|⨝|⟕|⟖|⟗|⨟|\^|↑|↓|⇵|⟰|⟱|⤈|⤉|⤊|⤋|⤒|⤓|⥉|⥌|⥍|⥏|⥑|⥔|⥕|⥘|⥙|⥜|⥝|⥠|⥡|⥣|⥥|⥮|⥯|↑|↓|√|∛|∜|⋆|±|∓)/dgv,name:"keyword.operator.arithmetic.julia"},{match:/∘/dgv,name:"keyword.operator.compose.julia"},{match:/(?:::|(?<=\p{space})isa(?=\p{space}))/dgv,name:"keyword.operator.isa.julia"},{match:/(?<=\p{space})in(?=\p{space})/dgv,name:"keyword.operator.relation.in.julia"},{match:/(?:\.(?=(?:@|_|\p{L}))|\.\.+|…|⁝|⋮|⋱|⋰|⋯)/dgv,name:"keyword.operator.dots.julia"},{match:/\$(?=[^\n]+)/dgv,name:"keyword.operator.interpolation.julia"},{captures:{"2":{name:"keyword.operator.transposed-variable.julia"}},match:/((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)(('|(\.'))*\.?')/dgv},{captures:{"1":{name:"bracket.end.julia"},"2":{name:"keyword.operator.transposed-matrix.julia"}},match:/(\])((?:'|\.')*\.?')/dgv},{captures:{"1":{name:"bracket.end.julia"},"2":{name:"keyword.operator.transposed-parens.julia"}},match:/(\))((?:'|\.')*\.?')/dgv}]},parentheses:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.bracket.julia"}},end:/(\))((?:\.)?'*)/dgv,endCaptures:{"1":{name:"meta.bracket.julia"},"2":{name:"keyword.operator.transpose.julia"}},patterns:[{include:"#self_no_for_block"}]}]},punctuation:{patterns:[{match:/,/dgv,name:"punctuation.separator.comma.julia"},{match:/;/dgv,name:"punctuation.separator.semicolon.julia"}]},self_no_for_block:{patterns:[{include:"#operator"},{include:"#array"},{include:"#string"},{include:"#parentheses"},{include:"#bracket"},{include:"#function_decl"},{include:"#function_call"},{include:"#keyword"},{include:"#number"},{include:"#comment"},{include:"#type_decl"},{include:"#symbol"},{include:"#punctuation"}]},string:{patterns:[{begin:/(?:(@doc)\p{space}((?:doc)?""")|(doc"""))/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},end:/(""") ?(->)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"keyword.operator.arrow.julia"}},name:"string.docstring.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(i?cxx)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.cpp",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"embed.cxx.julia",patterns:[{include:"source.cpp#root_context"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(py)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.python",end:/([\p{space}\p{L}\p{M}\p{N}\p{Pc}]*)(""")/dgv,endCaptures:{"2":{name:"punctuation.definition.string.end.julia"}},name:"embed.python.julia",patterns:[{include:"source.python"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(js)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.javascript",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"embed.js.julia",patterns:[{include:"source.js"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(R)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.r",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"embed.R.julia",patterns:[{include:"source.r"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(raw)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"string.quoted.other.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(raw)(")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"string.quoted.other.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(sql)(""")/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},contentName:"meta.embedded.inline.sql",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"embed.sql.julia",patterns:[{include:"source.sql"},{include:"#string_dollar_sign_interpolate"}]},{begin:/var"""/dgv,end:/"""/dgv,name:"constant.other.symbol.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/var"/dgv,end:/"/dgv,name:"constant.other.symbol.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/^\p{space}?(doc)?(""")\p{space}?(?=\n?$)/dgv,beginCaptures:{"1":{name:"support.function.macro.julia"},"2":{name:"punctuation.definition.string.begin.julia"}},end:/(""")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"}},name:"string.docstring.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"}},end:/'(?!')/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"string.quoted.single.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.multiline.begin.julia"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.multiline.end.julia"}},name:"string.quoted.triple.double.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/"(?!"")/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.julia"}},name:"string.quoted.double.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/r"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.regexp.begin.julia"}},end:/(""")([imsx]{0,4})?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.regexp.end.julia"},"2":{name:"keyword.other.option-toggle.regexp.julia"}},name:"string.regexp.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/r"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.regexp.begin.julia"}},end:/(")([imsx]{0,4})?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.regexp.end.julia"},"2":{name:"keyword.other.option-toggle.regexp.julia"}},name:"string.regexp.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(?<!")((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"},"1":{name:"support.function.macro.julia"}},end:/(""")((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"support.function.macro.julia"}},name:"string.quoted.other.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(?<!")((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"},"1":{name:"support.function.macro.julia"}},end:/(?<![^\\]\\)(")((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"support.function.macro.julia"}},name:"string.quoted.other.julia",patterns:[{include:"#string_escaped_char"}]},{begin:/(?<!`)((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?```/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"},"1":{name:"support.function.macro.julia"}},end:/(```)((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"support.function.macro.julia"}},name:"string.interpolated.backtick.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]},{begin:/(?<!`)((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.julia"},"1":{name:"support.function.macro.julia"}},end:/(?<![^\\]\\)(`)((?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*)?/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.julia"},"2":{name:"support.function.macro.julia"}},name:"string.interpolated.backtick.julia",patterns:[{include:"#string_escaped_char"},{include:"#string_dollar_sign_interpolate"}]}]},string_dollar_sign_interpolate:{patterns:[{match:/\$(?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿]|[^\P{Sc}\$])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿]|[^\P{Sc}\$])*/dgv,name:"variable.interpolation.julia"},{begin:/\$(\()/dgv,beginCaptures:{"1":{name:"meta.bracket.julia"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.bracket.julia"}},name:"variable.interpolation.julia",patterns:[{include:"#self_no_for_block"}]}]},string_escaped_char:{patterns:[{match:/\\(\\|[0-3]\p{Nd}{0,2}|[4-7]\p{Nd}?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8}|[^\n])/dgv,name:"constant.character.escape.julia"}]},symbol:{patterns:[{match:/(?<![\p{Alpha}\p{M}\p{Nd}\p{Pc}⁺-ₜ\!′∇\)\]\}]):(?:[\p{Alpha}_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{So}←-⇿])(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿])*(?!(?:[\p{Alpha}\p{M}\p{Nd}\p{Pc}_\!\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\P{Mn}\x01-¡]|[^\P{Mc}\x01-¡]|[^\P{Nd}\x01-¡]|[^\P{Pc}\x01-¡]|[^\P{Sk}\x01-¡]|[^\P{Me}\x01-¡]|[^\P{No}\x01-¡]|[′-‷⁗]|[^\P{So}←-⇿]))(?!["\`])/dgv,name:"constant.other.symbol.julia"}]},type_decl:{patterns:[{captures:{"1":{name:"entity.name.type.julia"},"2":{name:"entity.other.inherited-class.julia"},"3":{name:"punctuation.separator.inheritance.julia"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(!:_))\\1)(?:struct|mutable\\p{space}+struct|abstract\\p{space}+type|primitive\\p{space}+type)\\p{space}+((?:[\\p{Alpha}_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[\\p{Alpha}\\p{M}\\p{Nd}\\p{Pc}_\\!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\\x01-¡]|[^\\P{Mc}\\x01-¡]|[^\\P{Nd}\\x01-¡]|[^\\P{Pc}\\x01-¡]|[^\\P{Sk}\\x01-¡]|[^\\P{Me}\\x01-¡]|[^\\P{No}\\x01-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)(\\p{space}*(<:)\\p{space}*(?:[\\p{Alpha}_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[\\p{Alpha}\\p{M}\\p{Nd}\\p{Pc}_\\!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\\x01-¡]|[^\\P{Mc}\\x01-¡]|[^\\P{Nd}\\x01-¡]|[^\\P{Pc}\\x01-¡]|[^\\P{Sk}\\x01-¡]|[^\\P{Me}\\x01-¡]|[^\\P{No}\\x01-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*(?:\\{[^\\n]*\\})?)?","dgv",{"hiddenCaptures":[1]}),name:"meta.type.julia"}]}},scopeName:"source.julia",embeddedLangs:["cpp","python","javascript","r","sql"],aliases:["jl"]})
|
|
9
9
|
|
|
10
10
|
export default [
|
|
11
11
|
...cpp,
|
package/dist/kusto.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Kusto",fileTypes:["csl","kusto","kql"],name:"kusto",patterns:[{comment:"Tabular operators: common helper operators",match:/\b(by|from|of|to|step|with)\b/dgv,name:"keyword.other.operator.kusto"},{comment:"Query statements: https://docs.microsoft.com/en-us/azure/kusto/query/statements",match:/\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\b/dgv,name:"keyword.control.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators",match:/\b(and|or|has_all|has_any|matches|regex)\b/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Strings"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/clusterfunction",match:/\b(cluster|database)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.special.database.kusto"},{comment:"Special functions: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/tablefunction",match:/\b(external_table|materialized_view|materialize|table|toscalar)\b/dgv,name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/betweenoperator",match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?between)\b/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binoperators",match:/\b(binary_and|binary_or|binary_shift_left|binary_shift_right|binary_xor)(?:\p{space}*\(\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*,\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.bitwise.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binary-notfunction",match:/\b(binary_not|bitset_count_ones)(?:\p{space}*\(\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.bitwise.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/in-cs-operator",match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?in~?)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"keyword.other.operator.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators",match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?(?:contains|endswith|hasprefix|hassuffix|has|startswith)(?:_cs)?)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"3":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"4":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/rangefunction",match:/\b(range)\p{space}*\((?:\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)\p{space}*,\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)\p{space}*,?(?:\p{space}*)?([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)?\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.range.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalarfunctions",match:/\b(abs|acos|around|array_concat|array_iff|array_index_of|array_length|array_reverse|array_rotate_left|array_rotate_right|array_shift_left|array_shift_right|array_slice|array_sort_asc|array_sort_desc|array_split|array_sum|asin|assert|atan2|atan|bag_has_key|bag_keys|bag_merge|bag_remove_keys|base64_decode_toarray|base64_decode_tostring|base64_decode_toguid|base64_encode_fromarray|base64_encode_tostring|base64_encode_fromguid|beta_cdf|beta_inv|beta_pdf|bin_at|bin_auto|case|ceiling|coalesce|column_ifexists|convert_angle|convert_energy|convert_force|convert_length|convert_mass|convert_speed|convert_temperature|convert_volume|cos|cot|countof|current_cluster_endpoint|current_database|current_principal_details|current_principal_is_member_of|current_principal|cursor_after|cursor_before_or_at|cursor_current|current_cursor|dcount_hll|degrees|dynamic_to_json|estimate_data_size|exp10|exp2|exp|extent_id|extent_tags|extract_all|extract_json|extractjson|extract|floor|format_bytes|format_ipv4_mask|format_ipv4|gamma|gettype|gzip_compress_to_base64_string|gzip_decompress_from_base64_string|has_any_index|has_any_ipv4_prefix|has_any_ipv4|has_ipv4_prefix|has_ipv4|hash_combine|hash_many|hash_md5|hash_sha1|hash_sha256|hash_xxhash64|hash|iff|iif|indexof_regex|indexof|ingestion_time|ipv4_compare|ipv4_is_in_range|ipv4_is_in_any_range|ipv4_is_match|ipv4_is_private|ipv4_netmask_suffix|ipv6_compare|ipv6_is_match|isascii|isempty|isfinite|isinf|isnan|isnotempty|notempty|isnotnull|notnull|isnull|isutf8|jaccard_index|log10|log2|loggamma|log|make_string|max_of|min_of|new_guid|not|bag_pack|pack_all|pack_array|pack_dictionary|pack|parse_command_line|parse_csv|parse_ipv4_mask|parse_ipv4|parse_ipv6_mask|parse_ipv6|parse_path|parse_urlquery|parse_url|parse_user_agent|parse_version|parse_xml|percentile_tdigest|percentile_array_tdigest|percentrank_tdigest|pi|pow|radians|rand|rank_tdigest|regex_quote|repeat|replace_regex|replace_string|reverse|round|set_difference|set_has_element|set_intersect|set_union|sign|sin|split|sqrt|strcat_array|strcat_delim|strcmp|strcat|string_size|strlen|strrep|substring|tan|to_utf8|tobool|todecimal|todouble|toreal|toguid|tohex|toint|tolong|tolower|tostring|toupper|translate|treepath|trim_end|trim_start|trim|unixtime_microseconds_todatetime|unixtime_milliseconds_todatetime|unixtime_nanoseconds_todatetime|unixtime_seconds_todatetime|url_decode|url_encode_component|url_encode|welch_test|zip|zlib_compress_to_base64_string|zlib_decompress_from_base64_string)\b/dgv,name:"support.function.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"3":{patterns:[{include:"#TimeSpanLiterals"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binfunction",match:/\b(bin)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*,\p{space}*([^\n]+?)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.bin.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/count-aggfunction",match:/\b(count)\p{space}*\(\p{space}*\)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/aggregation-functions",match:/\b(arg_max|arg_min|avgif|avg|binary_all_and|binary_all_or|binary_all_xor|buildschema|countif|dcount|dcountif|hll|hll_merge|make_bag_if|make_bag|make_list_with_nulls|make_list_if|make_list|make_set_if|make_set|maxif|max|minif|min|percentilesw_array|percentiles_array|percentilesw|percentilew|percentiles|percentile|stdevif|stdevp|stdev|sumif|sum|take_anyif|take_any|tdigest_merge|merge_tdigest|tdigest|varianceif|variancep|variance)\b/dgv,name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/geospatial-grid-systems",match:/\b(geo_distance_2points|geo_distance_point_to_line|geo_distance_point_to_polygon|geo_intersects_2lines|geo_intersects_2polygons|geo_intersects_line_with_polygon|geo_intersection_2lines|geo_intersection_2polygons|geo_intersection_line_with_polygon|geo_line_centroid|geo_line_densify|geo_line_length|geo_line_simplify|geo_polygon_area|geo_polygon_centroid|geo_polygon_densify|geo_polygon_perimeter|geo_polygon_simplify|geo_polygon_to_s2cells|geo_point_in_circle|geo_point_in_polygon|geo_point_to_geohash|geo_point_to_h3cell|geo_point_to_s2cell|geo_geohash_to_central_point|geo_geohash_neighbors|geo_geohash_to_polygon|geo_s2cell_to_central_point|geo_s2cell_neighbors|geo_s2cell_to_polygon|geo_h3cell_to_central_point|geo_h3cell_neighbors|geo_h3cell_to_polygon|geo_h3cell_parent|geo_h3cell_children|geo_h3cell_level|geo_h3cell_rings|geo_simplify_polygons_array|geo_union_lines_array|geo_union_polygons_array)\b/dgv,name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/windowsfunctions",match:/\b(next|prev|row_cumsum|row_number|row_rank|row_window_session)\b/dgv,name:"support.function.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:/\.(create-or-alter|replace)/dgv,name:"keyword.control.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:/(?<=let )[^\n]+(?=[^\p{L}\p{M}\p{N}\p{Pc}]*=)/dgv,name:"entity.function.name.lambda.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:/\b(folder|docstring|skipvalidation)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(function)\b/dgv,name:"storage.type.kusto"},{comment:"Data types: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types",match:/\b(bool|decimal|dynamic|guid|int|long|real|string)\b/dgv,name:"storage.type.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"variable.other.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/asoperator",match:/\b(as)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv,name:"meta.query.as.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatableoperator",match:/\b(datatable)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,name:"keyword.other.query.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/facetoperator",match:/\b(facet)(?:\p{space}+(by))?\b/dgv,name:"meta.query.facet.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"entity.name.function.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/invokeoperator",match:/\b(invoke)(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.invoke.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"},"3":{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/orderoperator",match:/\b(order)(?:\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.order.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"variable.other.column.kusto"},"3":{name:"keyword.other.operator.kusto"},"4":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"5":{name:"keyword.other.operator.kusto"},"6":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"7":{name:"keyword.other.operator.kusto"},"8":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/rangeoperator",match:/\b(range)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(from)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\p{space}+(to)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\p{space}+(step)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\b/dgv,name:"meta.query.range.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sampleoperator",match:/\b(sample)(?:\p{space}+(\p{Nd}+))?(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"meta.query.sample.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sampledistinctoperator",match:/\b(sample-distinct)(?:\p{space}+(\p{Nd}+)\p{space}+(of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.sample-distinct.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sortoperator",match:/\b(sort)(?:\p{space}+(by))?\b/dgv,name:"meta.query.sort.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/takeoperator",match:/\b(take|limit)\p{space}+(\p{Nd}+)\b/dgv,name:"meta.query.take.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/topoperator",match:/\b(top)(?:\p{space}+(\p{Nd}+)\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?(?![\p{L}\p{M}\p{N}\p{Pc}\-])\b/dgv,name:"meta.query.top.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"},"5":{name:"keyword.other.operator.kusto"},"6":{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/tophittersoperator",match:/\b(top-hitters)(?:\p{space}+(\p{Nd}+)\p{space}+(of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(?:\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?)?\b/dgv,name:"meta.query.top-hitters.kusto"},{comment:"Tabular operators: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/queries",match:/\b(consume|count|distinct|evaluate|extend|externaldata|find|fork|getschema|join|lookup|make-series|mv-apply|mv-expand|project-away|project-keep|project-rename|project-reorder|project|parse|parse-where|parse-kv|partition|print|reduce|render|scan|search|serialize|shuffle|summarize|top-nested|union|where)\b/dgv,name:"keyword.other.query.kusto"},{comment:"Tabular operators: evalute (plugins): https://docs.microsoft.com/en-us/azure/kusto/query/evaluateoperator",match:/\b(active_users_count|activity_counts_metrics|activity_engagement|new_activity_metrics|activity_metrics|autocluster|azure_digital_twins_query_request|bag_unpack|basket|cosmosdb_sql_request|dcount_intersect|diffpatterns|funnel_sequence_completion|funnel_sequence|http_request_post|http_request|infer_storage_schema|ipv4_lookup|mysql_request|narrow|pivot|preview|rolling_percentile|rows_near|schema_merge|session_count|sequence_detect|sliding_window_counts|sql_request)\b/dgv,name:"support.function.kusto"},{comment:"Tabular operators: join: https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:/\b(on|kind|hint\.remote|hint\.strategy)\b/dgv,name:"keyword.other.operator.kusto"},{comment:"Tabular operators: join ($left, $right): https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:/(\$left|\$right)\b/dgv,name:"keyword.other.kusto"},{comment:"Tabular operators: join (kinds, strategies): https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:/\b(innerunique|inner|leftouter|rightouter|fullouter|leftanti|anti|leftantisemi|rightanti|rightantisemi|leftsemi|rightsemi|broadcast)\b/dgv,name:"keyword.other.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/machine-learning-and-tsa",match:/\b(series_abs|series_acos|series_add|series_asin|series_atan|series_cos|series_decompose|series_decompose_anomalies|series_decompose_forecast|series_divide|series_equals|series_exp|series_fft|series_fill_backward|series_fill_const|series_fill_forward|series_fill_linear|series_fir|series_fit_2lines_dynamic|series_fit_2lines|series_fit_line_dynamic|series_fit_line|series_fit_poly|series_greater_equals|series_greater|series_ifft|series_iir|series_less_equals|series_less|series_multiply|series_not_equals|series_outliers|series_pearson_correlation|series_periods_detect|series_periods_validate|series_pow|series_seasonal|series_sign|series_sin|series_stats|series_stats_dynamic|series_subtract|series_tan)\b/dgv,name:"support.function.kusto"},{comment:"Tabular operators: mv-expand (bagexpand options): https://docs.microsoft.com/en-us/azure/kusto/query/mvexpandoperator",match:/\b(bag|array)\b/dgv,name:"keyword.other.operator.kusto"},{comment:"Tabular operators: order: https://docs.microsoft.com/en-us/azure/kusto/query/orderoperator",match:/\b(asc|desc|nulls first|nulls last)\b/dgv,name:"keyword.other.kusto"},{comment:"Tabular operators: parse: https://docs.microsoft.com/en-us/azure/kusto/query/parseoperator",match:/\b(regex|simple|relaxed)\b/dgv,name:"keyword.other.kusto"},{match:/\b(anomalychart|areachart|barchart|card|columnchart|ladderchart|linechart|piechart|pivotchart|scatterchart|stackedareachart|timechart|timepivot)\b/dgv,name:"support.function.kusto"},{include:"#Strings"},{match:/\{[^\n]*?\}/dgv,name:"string.other.kusto"},{comment:"Comments",match:/\/\/[^\n]*/dgv,name:"comment.line.kusto"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#DateTimeTimeSpanDataTypes"},{include:"#Numeric"},{match:/\b(true|false|null)\b/dgv,name:"constant.language.kusto"},{comment:"Deprecated functions",match:/\b(anyif|any|array_strcat|base64_decodestring|base64_encodestring|make_dictionary|makelist|makeset|mvexpand|todynamic|parse_json|replace|weekofyear)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\(|\b)/dgv,name:"invalid.deprecated.kusto"}],repository:{DateTimeTimeSpanDataTypes:{patterns:[{match:/\b(datetime|timespan|time)\b/dgv,name:"storage.type.kusto"}]},DateTimeTimeSpanFunctions:{patterns:[{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"}]},"3":{patterns:[{include:"#Strings"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/format-datetimefunction",match:/\b(format_datetime)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*,\p{space}*(['"][^\n]*?['"])\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.format_datetime.kusto"},{comment:"Scalar function: DateTime/Timespan Functions: https://docs.microsoft.com/en-us/azure/kusto/query/scalarfunctions#datetimetimespan-functions",match:/\b(ago|datetime_add|datetime_diff|datetime_local_to_utc|datetime_part|datetime_utc_to_local|dayofmonth|dayofweek|dayofyear|endofday|endofmonth|endofweek|endofyear|format_timespan|getmonth|getyear|hourofday|make_datetime|make_timespan|monthofyear|now|startofday|startofmonth|startofweek|startofyear|todatetime|totimespan|week_of_year)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,name:"support.function.kusto"}]},Escapes:{patterns:[{match:/(\\['"]|\\\\)/dgv,name:"constant.character.escape.kusto"}]},Numeric:{patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?(?:(?=([0-9]*))\\6))|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?(?=\\b|[\\p{L}\\p{M}\\p{N}\\p{Pc}])","dgv",{"hiddenCaptures":[6]}),name:"constant.numeric.kusto"}]},Strings:{patterns:[{begin:/([\@h]?")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.double.kusto",patterns:[{include:"#Escapes"}]},{begin:/([\@h]?')/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.single.kusto",patterns:[{include:"#Escapes"}]},{begin:/([\@h]?```)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string#multi-line-string-literals",end:/```/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.multi.kusto",patterns:[{include:"#Escapes"}]}]},TimeSpanLiterals:{patterns:[{comment:"timespan literals: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types/timespan#timespan-literals",match:/[\+\-]?(?:\p{Nd}*\.)?\p{Nd}+(?:microseconds?|ticks?|seconds?|ms|d|h|m|s)\b/dgv,name:"constant.numeric.kusto"}]}},scopeName:"source.kusto",embeddedLangs:undefined,aliases:["kql"]})
|
|
3
|
+
const lang = Object.freeze({displayName:"Kusto",fileTypes:["csl","kusto","kql"],name:"kusto",patterns:[{match:/\b(by|from|of|to|step|with)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\b/dgv,name:"keyword.control.kusto"},{match:/\b(and|or|has_all|has_any|matches|regex)\b/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Strings"}]}},match:/\b(cluster|database)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.special.database.kusto"},{match:/\b(external_table|materialized_view|materialize|table|toscalar)\b/dgv,name:"support.function.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?between)\b/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{patterns:[{include:"#Numeric"}]}},match:/\b(binary_and|binary_or|binary_shift_left|binary_shift_right|binary_xor)(?:\p{space}*\(\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*,\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.bitwise.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(binary_not|bitset_count_ones)(?:\p{space}*\(\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.bitwise.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?in~?)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"keyword.other.operator.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?(?:contains|endswith|hasprefix|hassuffix|has|startswith)(?:_cs)?)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"3":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"4":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},match:/\b(range)\p{space}*\((?:\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)\p{space}*,\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)\p{space}*,?(?:\p{space}*)?([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)?\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.range.kusto"},{match:/\b(abs|acos|around|array_concat|array_iff|array_index_of|array_length|array_reverse|array_rotate_left|array_rotate_right|array_shift_left|array_shift_right|array_slice|array_sort_asc|array_sort_desc|array_split|array_sum|asin|assert|atan2|atan|bag_has_key|bag_keys|bag_merge|bag_remove_keys|base64_decode_toarray|base64_decode_tostring|base64_decode_toguid|base64_encode_fromarray|base64_encode_tostring|base64_encode_fromguid|beta_cdf|beta_inv|beta_pdf|bin_at|bin_auto|case|ceiling|coalesce|column_ifexists|convert_angle|convert_energy|convert_force|convert_length|convert_mass|convert_speed|convert_temperature|convert_volume|cos|cot|countof|current_cluster_endpoint|current_database|current_principal_details|current_principal_is_member_of|current_principal|cursor_after|cursor_before_or_at|cursor_current|current_cursor|dcount_hll|degrees|dynamic_to_json|estimate_data_size|exp10|exp2|exp|extent_id|extent_tags|extract_all|extract_json|extractjson|extract|floor|format_bytes|format_ipv4_mask|format_ipv4|gamma|gettype|gzip_compress_to_base64_string|gzip_decompress_from_base64_string|has_any_index|has_any_ipv4_prefix|has_any_ipv4|has_ipv4_prefix|has_ipv4|hash_combine|hash_many|hash_md5|hash_sha1|hash_sha256|hash_xxhash64|hash|iff|iif|indexof_regex|indexof|ingestion_time|ipv4_compare|ipv4_is_in_range|ipv4_is_in_any_range|ipv4_is_match|ipv4_is_private|ipv4_netmask_suffix|ipv6_compare|ipv6_is_match|isascii|isempty|isfinite|isinf|isnan|isnotempty|notempty|isnotnull|notnull|isnull|isutf8|jaccard_index|log10|log2|loggamma|log|make_string|max_of|min_of|new_guid|not|bag_pack|pack_all|pack_array|pack_dictionary|pack|parse_command_line|parse_csv|parse_ipv4_mask|parse_ipv4|parse_ipv6_mask|parse_ipv6|parse_path|parse_urlquery|parse_url|parse_user_agent|parse_version|parse_xml|percentile_tdigest|percentile_array_tdigest|percentrank_tdigest|pi|pow|radians|rand|rank_tdigest|regex_quote|repeat|replace_regex|replace_string|reverse|round|set_difference|set_has_element|set_intersect|set_union|sign|sin|split|sqrt|strcat_array|strcat_delim|strcmp|strcat|string_size|strlen|strrep|substring|tan|to_utf8|tobool|todecimal|todouble|toreal|toguid|tohex|toint|tolong|tolower|tostring|toupper|translate|treepath|trim_end|trim_start|trim|unixtime_microseconds_todatetime|unixtime_milliseconds_todatetime|unixtime_nanoseconds_todatetime|unixtime_seconds_todatetime|url_decode|url_encode_component|url_encode|welch_test|zip|zlib_compress_to_base64_string|zlib_decompress_from_base64_string)\b/dgv,name:"support.function.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"3":{patterns:[{include:"#TimeSpanLiterals"},{include:"#Numeric"}]}},match:/\b(bin)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*,\p{space}*([^\n]+?)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.bin.kusto"},{match:/\b(count)\p{space}*\(\p{space}*\)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"support.function.kusto"},{match:/\b(arg_max|arg_min|avgif|avg|binary_all_and|binary_all_or|binary_all_xor|buildschema|countif|dcount|dcountif|hll|hll_merge|make_bag_if|make_bag|make_list_with_nulls|make_list_if|make_list|make_set_if|make_set|maxif|max|minif|min|percentilesw_array|percentiles_array|percentilesw|percentilew|percentiles|percentile|stdevif|stdevp|stdev|sumif|sum|take_anyif|take_any|tdigest_merge|merge_tdigest|tdigest|varianceif|variancep|variance)\b/dgv,name:"support.function.kusto"},{match:/\b(geo_distance_2points|geo_distance_point_to_line|geo_distance_point_to_polygon|geo_intersects_2lines|geo_intersects_2polygons|geo_intersects_line_with_polygon|geo_intersection_2lines|geo_intersection_2polygons|geo_intersection_line_with_polygon|geo_line_centroid|geo_line_densify|geo_line_length|geo_line_simplify|geo_polygon_area|geo_polygon_centroid|geo_polygon_densify|geo_polygon_perimeter|geo_polygon_simplify|geo_polygon_to_s2cells|geo_point_in_circle|geo_point_in_polygon|geo_point_to_geohash|geo_point_to_h3cell|geo_point_to_s2cell|geo_geohash_to_central_point|geo_geohash_neighbors|geo_geohash_to_polygon|geo_s2cell_to_central_point|geo_s2cell_neighbors|geo_s2cell_to_polygon|geo_h3cell_to_central_point|geo_h3cell_neighbors|geo_h3cell_to_polygon|geo_h3cell_parent|geo_h3cell_children|geo_h3cell_level|geo_h3cell_rings|geo_simplify_polygons_array|geo_union_lines_array|geo_union_polygons_array)\b/dgv,name:"support.function.kusto"},{match:/\b(next|prev|row_cumsum|row_number|row_rank|row_window_session)\b/dgv,name:"support.function.kusto"},{match:/\.(create-or-alter|replace)/dgv,name:"keyword.control.kusto"},{match:/(?<=let )[^\n]+(?=[^\p{L}\p{M}\p{N}\p{Pc}]*=)/dgv,name:"entity.function.name.lambda.kusto"},{match:/\b(folder|docstring|skipvalidation)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(function)\b/dgv,name:"storage.type.kusto"},{match:/\b(bool|decimal|dynamic|guid|int|long|real|string)\b/dgv,name:"storage.type.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"variable.other.kusto"}},match:/\b(as)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv,name:"meta.query.as.kusto"},{match:/\b(datatable)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,name:"keyword.other.query.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"}},match:/\b(facet)(?:\p{space}+(by))?\b/dgv,name:"meta.query.facet.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"entity.name.function.kusto"}},match:/\b(invoke)(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.invoke.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"},"3":{name:"variable.other.column.kusto"}},match:/\b(order)(?:\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.order.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"variable.other.column.kusto"},"3":{name:"keyword.other.operator.kusto"},"4":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"5":{name:"keyword.other.operator.kusto"},"6":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"7":{name:"keyword.other.operator.kusto"},"8":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},match:/\b(range)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(from)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\p{space}+(to)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\p{space}+(step)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\b/dgv,name:"meta.query.range.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(sample)(?:\p{space}+(\p{Nd}+))?(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"meta.query.sample.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"}},match:/\b(sample-distinct)(?:\p{space}+(\p{Nd}+)\p{space}+(of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.sample-distinct.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"}},match:/\b(sort)(?:\p{space}+(by))?\b/dgv,name:"meta.query.sort.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(take|limit)\p{space}+(\p{Nd}+)\b/dgv,name:"meta.query.take.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"}},match:/\b(top)(?:\p{space}+(\p{Nd}+)\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?(?![\p{L}\p{M}\p{N}\p{Pc}\-])\b/dgv,name:"meta.query.top.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"},"5":{name:"keyword.other.operator.kusto"},"6":{name:"variable.other.column.kusto"}},match:/\b(top-hitters)(?:\p{space}+(\p{Nd}+)\p{space}+(of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(?:\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?)?\b/dgv,name:"meta.query.top-hitters.kusto"},{match:/\b(consume|count|distinct|evaluate|extend|externaldata|find|fork|getschema|join|lookup|make-series|mv-apply|mv-expand|project-away|project-keep|project-rename|project-reorder|project|parse|parse-where|parse-kv|partition|print|reduce|render|scan|search|serialize|shuffle|summarize|top-nested|union|where)\b/dgv,name:"keyword.other.query.kusto"},{match:/\b(active_users_count|activity_counts_metrics|activity_engagement|new_activity_metrics|activity_metrics|autocluster|azure_digital_twins_query_request|bag_unpack|basket|cosmosdb_sql_request|dcount_intersect|diffpatterns|funnel_sequence_completion|funnel_sequence|http_request_post|http_request|infer_storage_schema|ipv4_lookup|mysql_request|narrow|pivot|preview|rolling_percentile|rows_near|schema_merge|session_count|sequence_detect|sliding_window_counts|sql_request)\b/dgv,name:"support.function.kusto"},{match:/\b(on|kind|hint\.remote|hint\.strategy)\b/dgv,name:"keyword.other.operator.kusto"},{match:/(\$left|\$right)\b/dgv,name:"keyword.other.kusto"},{match:/\b(innerunique|inner|leftouter|rightouter|fullouter|leftanti|anti|leftantisemi|rightanti|rightantisemi|leftsemi|rightsemi|broadcast)\b/dgv,name:"keyword.other.kusto"},{match:/\b(series_abs|series_acos|series_add|series_asin|series_atan|series_cos|series_decompose|series_decompose_anomalies|series_decompose_forecast|series_divide|series_equals|series_exp|series_fft|series_fill_backward|series_fill_const|series_fill_forward|series_fill_linear|series_fir|series_fit_2lines_dynamic|series_fit_2lines|series_fit_line_dynamic|series_fit_line|series_fit_poly|series_greater_equals|series_greater|series_ifft|series_iir|series_less_equals|series_less|series_multiply|series_not_equals|series_outliers|series_pearson_correlation|series_periods_detect|series_periods_validate|series_pow|series_seasonal|series_sign|series_sin|series_stats|series_stats_dynamic|series_subtract|series_tan)\b/dgv,name:"support.function.kusto"},{match:/\b(bag|array)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(asc|desc|nulls first|nulls last)\b/dgv,name:"keyword.other.kusto"},{match:/\b(regex|simple|relaxed)\b/dgv,name:"keyword.other.kusto"},{match:/\b(anomalychart|areachart|barchart|card|columnchart|ladderchart|linechart|piechart|pivotchart|scatterchart|stackedareachart|timechart|timepivot)\b/dgv,name:"support.function.kusto"},{include:"#Strings"},{match:/\{[^\n]*?\}/dgv,name:"string.other.kusto"},{match:/\/\/[^\n]*/dgv,name:"comment.line.kusto"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#DateTimeTimeSpanDataTypes"},{include:"#Numeric"},{match:/\b(true|false|null)\b/dgv,name:"constant.language.kusto"},{match:/\b(anyif|any|array_strcat|base64_decodestring|base64_encodestring|make_dictionary|makelist|makeset|mvexpand|todynamic|parse_json|replace|weekofyear)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\(|\b)/dgv,name:"invalid.deprecated.kusto"}],repository:{DateTimeTimeSpanDataTypes:{patterns:[{match:/\b(datetime|timespan|time)\b/dgv,name:"storage.type.kusto"}]},DateTimeTimeSpanFunctions:{patterns:[{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"}]},"3":{patterns:[{include:"#Strings"}]}},match:/\b(format_datetime)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*,\p{space}*(['"][^\n]*?['"])\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.format_datetime.kusto"},{match:/\b(ago|datetime_add|datetime_diff|datetime_local_to_utc|datetime_part|datetime_utc_to_local|dayofmonth|dayofweek|dayofyear|endofday|endofmonth|endofweek|endofyear|format_timespan|getmonth|getyear|hourofday|make_datetime|make_timespan|monthofyear|now|startofday|startofmonth|startofweek|startofyear|todatetime|totimespan|week_of_year)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,name:"support.function.kusto"}]},Escapes:{patterns:[{match:/(\\['"]|\\\\)/dgv,name:"constant.character.escape.kusto"}]},Numeric:{patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?(?:(?=([0-9]*))\\6))|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?(?=\\b|[\\p{L}\\p{M}\\p{N}\\p{Pc}])","dgv",{"hiddenCaptures":[6]}),name:"constant.numeric.kusto"}]},Strings:{patterns:[{begin:/([\@h]?")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.double.kusto",patterns:[{include:"#Escapes"}]},{begin:/([\@h]?')/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.single.kusto",patterns:[{include:"#Escapes"}]},{begin:/([\@h]?```)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/```/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.multi.kusto",patterns:[{include:"#Escapes"}]}]},TimeSpanLiterals:{patterns:[{match:/[\+\-]?(?:\p{Nd}*\.)?\p{Nd}+(?:microseconds?|ticks?|seconds?|ms|d|h|m|s)\b/dgv,name:"constant.numeric.kusto"}]}},scopeName:"source.kusto",embeddedLangs:undefined,aliases:["kql"]})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|