@shikijs/langs-precompiled 3.2.0 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mermaid.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EmulatedRegExp } from 'oniguruma-to-es'
2
2
 
3
- const lang = Object.freeze({displayName:"Mermaid",fileTypes:[],injectionSelector:"L:text.html.markdown",name:"mermaid",patterns:[{include:"#mermaid-code-block"},{include:"#mermaid-code-block-with-attributes"},{include:"#mermaid-ado-code-block"}],repository:{mermaid:{patterns:[{begin:/^\p{space}*(architecture-beta)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"punctuation.definition.typeparameters.begin.mermaid"},"4":{name:"string"},"5":{name:"keyword.control.mermaid"},"6":{name:"string"},"7":{name:"punctuation.definition.typeparameters.end.mermaid"},"8":{name:"punctuation.definition.typeparameters.begin.mermaid"},"9":{name:"string"},"10":{name:"punctuation.definition.typeparameters.end.mermaid"},"11":{name:"keyword.control.mermaid"},"12":{name:"variable"}},match:/\p{space}*(group|service)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\()?([\p{L}\p{M}\p{N}\p{Pc}\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{space}*(\])?\p{space}*(in)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)?/dgiv},{captures:{"1":{name:"variable"},"2":{name:"punctuation.definition.typeparameters.begin.mermaid"},"3":{name:"variable"},"4":{name:"punctuation.definition.typeparameters.end.mermaid"},"5":{name:"keyword.control.mermaid"},"6":{name:"entity.name.function.mermaid"},"7":{name:"keyword.control.mermaid"},"8":{name:"entity.name.function.mermaid"},"9":{name:"keyword.control.mermaid"},"10":{name:"variable"},"11":{name:"punctuation.definition.typeparameters.begin.mermaid"},"12":{name:"variable"},"13":{name:"punctuation.definition.typeparameters.end.mermaid"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\{)?\p{space}*(group)?(\})?\p{space}*(:)\p{space}*([TBLR])\p{space}+(<?-->?)\p{space}+([TBLR])\p{space}*(:)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\{)?\p{space}*(group)?(\})?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"variable"}},match:/\p{space}*(junction)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(in)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)?/dgiv}]},{begin:/^\p{space}*(classDiagram)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"entity.name.type.class.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"entity.name.type.class.mermaid"},"6":{name:"keyword.control.mermaid"},"7":{name:"string"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}("(?:\p{Nd}+|\*|0[^\n][^\n]\p{Nd}+|1[^\n][^\n]\p{Nd}+|1[^\n][^\n]\*)")?\p{space}?(--o|--\*|<--|-->|<\.\.|\.\.>|<\|\.\.|\.\.\|>|<\|--|--\|>|--\*|--|\.\.|\*--|o--)\p{space}("(?:\p{Nd}+|\*|0[^\n][^\n]\p{Nd}+|1[^\n][^\n]\p{Nd}+|1[^\n][^\n]\*)")?\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}?(:)?\p{space}([^\n]*)(?=\n?$)/dgiv},{captures:{"1":{name:"entity.name.type.class.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"entity.name.function.mermaid"},"5":{name:"punctuation.parenthesis.open.mermaid"},"6":{name:"storage.type.mermaid"},"7":{name:"punctuation.definition.typeparameters.begin.mermaid"},"8":{name:"storage.type.mermaid"},"9":{name:"punctuation.definition.typeparameters.end.mermaid"},"10":{name:"entity.name.variable.parameter.mermaid"},"11":{name:"punctuation.parenthesis.closed.mermaid"},"12":{name:"keyword.control.mermaid"},"13":{name:"storage.type.mermaid"},"14":{name:"punctuation.definition.typeparameters.begin.mermaid"},"15":{name:"storage.type.mermaid"},"16":{name:"punctuation.definition.typeparameters.end.mermaid"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}?(:)\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}\-]+)?(\))([\*\$]{0,2})\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?(?=\n?$)/dgv},{captures:{"1":{name:"entity.name.type.class.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"storage.type.mermaid"},"5":{name:"punctuation.definition.typeparameters.begin.mermaid"},"6":{name:"storage.type.mermaid"},"7":{name:"punctuation.definition.typeparameters.end.mermaid"},"8":{name:"entity.name.variable.field.mermaid"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}?(:)\p{space}([\+\~\#\-])?([\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}\-]+)?(?=\n?$)/dgv},{captures:{"1":{name:"punctuation.definition.typeparameters.begin.mermaid"},"2":{name:"storage.type.mermaid"},"3":{name:"punctuation.definition.typeparameters.end.mermaid"},"4":{name:"entity.name.type.class.mermaid"}},match:/(<<)([\p{L}\p{M}\p{N}\p{Pc}\-]+)(>>)\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?/dgv},{begin:/(class)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)(~)?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?\p{space}?(\{)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.type.class.mermaid"},"3":{name:"punctuation.definition.typeparameters.begin.mermaid"},"4":{name:"storage.type.mermaid"},"5":{name:"punctuation.definition.typeparameters.end.mermaid"},"6":{name:"keyword.control.mermaid"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{begin:/\p{space}([\+\~\#\-])?([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\()/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"},"3":{name:"punctuation.parenthesis.open.mermaid"}},end:/(\))([\*\$]{0,2})\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.parenthesis.closed.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"storage.type.mermaid"},"4":{name:"punctuation.definition.typeparameters.begin.mermaid"},"5":{name:"storage.type.mermaid"},"6":{name:"punctuation.definition.typeparameters.end.mermaid"}},patterns:[{captures:{"1":{name:"storage.type.mermaid"},"2":{name:"punctuation.definition.typeparameters.begin.mermaid"},"3":{name:"storage.type.mermaid"},"4":{name:"punctuation.definition.typeparameters.end.mermaid"},"5":{name:"entity.name.variable.parameter.mermaid"}},match:/\p{space}*,?\p{space}*([\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}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"storage.type.mermaid"},"3":{name:"punctuation.definition.typeparameters.begin.mermaid"},"4":{name:"storage.type.mermaid"},"5":{name:"punctuation.definition.typeparameters.end.mermaid"},"6":{name:"entity.name.variable.field.mermaid"}},match:/\p{space}([\+\~\#\-])?([\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}\-]+)?(?=\n?$)/dgv},{captures:{"1":{name:"punctuation.definition.typeparameters.begin.mermaid"},"2":{name:"storage.type.mermaid"},"3":{name:"punctuation.definition.typeparameters.end.mermaid"},"4":{name:"entity.name.type.class.mermaid"}},match:/(<<)([\p{L}\p{M}\p{N}\p{Pc}\-]+)(>>)\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?/dgv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.type.class.mermaid"},"3":{name:"punctuation.definition.typeparameters.begin.mermaid"},"4":{name:"storage.type.mermaid"},"5":{name:"punctuation.definition.typeparameters.end.mermaid"}},match:/(class)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)(~)?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?/dgiv}]},{begin:/^\p{space}*(erDiagram)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"},"4":{name:"keyword.control.mermaid"}},match:/^\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\[)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\p{space}\-]+")?\p{space}*(\])?(?=\n?$)/dgv},{begin:/\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\[)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\p{space}\-]+")?\p{space}*(\])?\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"},"4":{name:"keyword.control.mermaid"},"5":{name:"keyword.control.mermaid"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"storage.type.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(PK|FK)?\p{space}*("["\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")?\p{space}*/dgiv},{match:/%%[^\n]*/dgv,name:"comment"}]},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"variable"},"4":{name:"keyword.control.mermaid"},"5":{name:"string"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*((?:\|o|\|\||\}o|\}\||one or (?:zero|more|many)|zero or (?:one|more|many)|many\([01]\)|only one|0\+|1\+?)(?:[^\n][^\n]|--)(?:o\||\|\||o\{|\|\{|one or (?:zero|more|many)|zero or (?:one|more|many)|many\([01]\)|only one|0\+|1\+?))\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}\-]+)/dgiv}]},{begin:/^\p{space}*(gantt)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/^\p{space}*(dateFormat)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-\.]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/^\p{space}*(axisFormat)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\%\/\\\-\.]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/(tickInterval)\p{space}+(([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month))/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(excludes)\p{space}+((?:[\p{Nd}\-\,\p{space}]+|monday|tuesday|wednesday|thursday|friday|saturday|sunday|weekends)+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}+(todayMarker)\p{space}+([^\n]*)(?=\n?$)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(section)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/^\p{space}([^\n]*)(:)/dgv,beginCaptures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{match:/(crit|done|active|after)/dgv,name:"entity.name.function.mermaid"},{match:/%%[^\n]*/dgv,name:"comment"}]}]},{begin:/^\p{space}*(gitGraph)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{begin:/^\p{space}*(commit)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/\p{space}*(id)(:)\p{space}?("[^"\n]*")/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"entity.name.function.mermaid"}},match:/\p{space}*(type)(:)\p{space}?(NORMAL|REVERSE|HIGHLIGHT)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/\p{space}*(tag)(:)\p{space}?("[\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")/dgiv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/^\p{space}*(checkout)\p{space}*([^\p{space}"]*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"constant.numeric.decimal.mermaid"}},match:/^\p{space}*(branch)\p{space}*([^\p{space}"]*)\p{space}*(?:(order)(:)\p{space}?(\p{Nd}+))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"string"}},match:/^\p{space}*(merge)\p{space}*([^\p{space}"]*)\p{space}*(?:(tag)(:)\p{space}?("[^"\n]*"))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"}},match:/^\p{space}*(cherry-pick)\p{space}+(id)(:)\p{space}*("[^"\n]*")/dgiv}]},{begin:/^\p{space}*(graph|flowchart)\p{space}+([\p{L} 0-9]+)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"},"5":{name:"keyword.control.mermaid"}},match:/^\p{space}*(subgraph)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(\[)("?[\p{L}\p{M}\p{N}\p{Pc}\p{space}\*\+\%\=\\\/\:\.\-'\`\,\&\^\#\$\!\?\<\>]*"?)(\])/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/^\p{space}*(subgraph)\p{space}+([\p{L} 0-9\<\>]+)/dgv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/^\p{space}*(direction)\p{space}+(RB|BT|RL|TD|LR)/dgiv},{match:/\b(end)\b/dgv,name:"keyword.control.mermaid"},{begin:/(\b(?:(?!--|==)[\-\p{L}\p{M}\p{N}\p{Pc}])+\b\p{space}*)(\(\[|\[\[|\[\(|\[|\(+|[\>\{]|\(\()/dgv,beginCaptures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},end:/(\]\)|\]\]|\)\]|\]|\)+|\}|\)\))/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{begin:/\p{space}*(")/dgv,beginCaptures:{"1":{name:"string"}},end:/(")/dgv,endCaptures:{"1":{name:"string"}},patterns:[{begin:/([^"]*)/dgv,beginCaptures:{"1":{name:"string"}},end:/(?=")/dgv,patterns:[{captures:{"1":{name:"comment"}},match:/([^"]*)/dgv}]}]},{captures:{"1":{name:"string"}},match:/\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgv}]},{begin:/\p{space}*((?:-{2,5}|={2,5})[xo\>]?\|)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(\|)/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{begin:/\p{space}*(")/dgv,beginCaptures:{"1":{name:"string"}},end:/(")/dgv,endCaptures:{"1":{name:"string"}},patterns:[{begin:/([^"]*)/dgv,beginCaptures:{"1":{name:"string"}},end:/(?=")/dgv,patterns:[{captures:{"1":{name:"comment"}},match:/([^"]*)/dgv}]}]},{captures:{"1":{name:"string"}},match:/\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"},"3":{name:"keyword.control.mermaid"}},match:/\p{space}*([xo\<]?(?:-{2,5}|={2,5}|-\.{1,3}|-\.))((?:(?!--|==)[\p{L}\p{M}\p{N}\p{Pc}\p{space}\*\+\%\=\\\/\:\.\-'\`\,"\&\^\#\$\!\?\<\>\[\]])*)((?:-{2,5}|={2,5}|\.{1,3}-|\.-)[xo\>]?)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}*([ox\<]?(?:-[^\n]{1,3}-|-{1,3}|={1,3})[ox\>]?)/dgiv},{match:/(\b(?:(?!--|==)[\-\p{L}\p{M}\p{N}\p{Pc}])+\b\p{space}*)/dgv,name:"variable"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"string"}},match:/\p{space}*(class)\p{space}+(\b[\-\,\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"string"}},match:/\p{space}*(classDef)\p{space}+(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)\p{space}+(\b[\-\,\:\;\#\p{L}\p{M}\p{N}\p{Pc}]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"variable"},"4":{name:"string"}},match:/\p{space}*(click)\p{space}+(\b[\-\p{L}\p{M}\p{N}\p{Pc}]+\b\p{space}*)(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)?\p{space}("*[^\n]*")/dgiv}]},{begin:/^\p{space}*(pie)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/\p{space}([^\n]*)(:)/dgv,beginCaptures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{match:/%%[^\n]*/dgv,name:"comment"}]}]},{begin:/^\p{space}*(quadrantChart)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title)\p{space}*(["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/^\p{space}*([xy]-axis)\p{space}+((?:(?!-->)[\$\&\%\/\#\.\,\?\!\*\+\='\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}])*)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(-->)\p{space}*([\$\&\%\/\#\.\,\?\!\*\+\='\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(quadrant-[1234])\p{space}*(["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{captures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"constant.numeric.decimal.mermaid"},"5":{name:"keyword.control.mermaid"},"6":{name:"constant.numeric.decimal.mermaid"},"7":{name:"keyword.control.mermaid"}},match:/\p{space}*([\$\&\%\/\#\.\,\?\!\*\+\='\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)\p{space}*(:)\p{space}*(\[)\p{space}*(\p{Nd}\.\p{Nd}+)\p{space}*(,)\p{space}*(\p{Nd}\.\p{Nd}+)\p{space}*(\])/dgv}]},{begin:/^\p{space}*(requirementDiagram)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{begin:/^\p{space}*((?:functional|interface|performance|physical)?requirement|designConstraint)\p{space}*(["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)\p{space}*(\{)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/\p{space}*(id:)\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(text:)\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/\p{space}*(risk:)\p{space}*(low|medium|high)\p{space}*(?=\n?$)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/\p{space}*(verifymethod:)\p{space}*(analysis|inspection|test|demonstration)\p{space}*(?=\n?$)/dgiv}]},{begin:/^\p{space}*(element)\p{space}*(["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)\p{space}*(\{)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/\p{space}*(type:)\p{space}*(["\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/\p{space}*(docref:)\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgiv}]},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"variable"}},match:/^\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(-)\p{space}*(contains|copies|derives|satisfies|verifies|refines|traces)\p{space}*(->)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(?=\n?$)/dgiv},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"variable"}},match:/^\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(<-)\p{space}*(contains|copies|derives|satisfies|verifies|refines|traces)\p{space}*(-)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(?=\n?$)/dgiv}]},{begin:/^\p{space}*(sequenceDiagram)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/(%%|#)[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/(title)\p{space}*(:)?\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"}},match:/\p{space}*(participant|actor)\p{space}+((?:(?! as )["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}])+)\p{space}*(as)?\p{space}(["\(\)\$\&\%\^\/\#\.\,\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/\p{space}*((?:de)?activate)\p{space}+(\b["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?\p{space}*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"},"3":{name:"variable"},"4":{name:"keyword.control.mermaid"},"5":{name:"variable"},"6":{name:"keyword.control.mermaid"},"7":{name:"string"}},match:/\p{space}*(Note)\p{space}+((?:left|right)\p{space}of|over)\p{space}+(\b["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?\p{space}*)(,)?(\b["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?\p{space}*)?(:)(?:\p{space}+([^\;\#]*))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(loop)(?:\p{space}+([^\;\#]*))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}*(end)/dgv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(alt|else|option|par|and|rect|autonumber|critical|opt)(?:\p{space}+([^\#\;]*))?(?=\n?$)/dgiv},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"variable"},"4":{name:"keyword.control.mermaid"},"5":{name:"string"}},match:/\p{space}*(\b["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?)\p{space}*(-?-[\>x\)]>?[\+\-]?)\p{space}*(["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?)\p{space}*(:)\p{space}*([^\;\#]*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"},"3":{name:"string"}},match:/\p{space}*(box)\p{space}+(transparent)(?:\p{space}+([^\;\#]*))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(box)(?:\p{space}+([^\;\#]*))?/dgiv}]},{begin:/^\p{space}*(stateDiagram(?:-v2)?)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}+(\})\p{space}+/dgv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}+(--)\p{space}+/dgv},{match:/^\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)(?=\n?$)/dgv,name:"variable"},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(:)\p{space}+(\p{space}*[\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b)/dgv},{begin:/^\p{space}*(state)\p{space}+/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"},"3":{name:"variable"}},match:/\p{space}*("[\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b")\p{space}+(as)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgiv},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(\{)/dgv},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(<<(?:fork|join)>>)/dgiv}]},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(-->)/dgv,beginCaptures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(:)?\p{space}*([^\n\:]+)?/dgv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/(\[\*\])\p{space}*(:)?\p{space}*([^\n\:]+)?/dgv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"variable"},"4":{name:"keyword.control.mermaid"},"5":{name:"string"}},match:/(\[\*\])\p{space}+(-->)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(:)?\p{space}*([^\n\:]+)?/dgv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"}},match:/^\p{space}*(note (?:left|right) of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(:)\p{space}*([^\n\:]+)/dgiv},{begin:/^\p{space}*(note (?:left|right) of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)([^\n]|\n)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},contentName:"string",end:/(end note)/dgiv,endCaptures:{"1":{name:"keyword.control.mermaid"}}}]},{begin:/^\p{space}*(journey)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title|section)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/\p{space}*(["\(\)\$\&\%\^\/\.\,\?\!\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)\p{space}*(:)\p{space}*(\p{Nd}+)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"},"3":{name:"constant.numeric.decimal.mermaid"},"4":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"variable"}},match:/\p{space}*,?\p{space}*([^\,\#\n]+)/dgv}]}]},{begin:/^\p{space}*(xychart(?:-beta)?(?:\p{space}+horizontal)?)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/^\p{space}*(x-axis)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"constant.numeric.decimal.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"constant.numeric.decimal.mermaid"}},match:/\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)\p{space}*(-->)\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)/dgv},{captures:{"1":{name:"string"}},match:/\p{space}+("[\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")/dgv},{captures:{"1":{name:"string"}},match:/\p{space}+([\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{begin:/\p{space}*(\[)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/\p{space}*(\])/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"constant.numeric.decimal.mermaid"}},match:/\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)/dgv},{captures:{"1":{name:"string"}},match:/\p{space}*("[\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")/dgv},{captures:{"1":{name:"string"}},match:/\p{space}*([\(\$\&\%\^\/\#\.\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}*(,)/dgv}]}]},{begin:/^\p{space}*(y-axis)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"constant.numeric.decimal.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"constant.numeric.decimal.mermaid"}},match:/\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)\p{space}*(-->)\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)/dgv},{captures:{"1":{name:"string"}},match:/\p{space}+("[\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")/dgv},{captures:{"1":{name:"string"}},match:/\p{space}+([\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}]*)/dgv}]},{begin:/^\p{space}*(line|bar)\p{space}*(\[)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"}},end:/\p{space}*(\])/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"constant.numeric.decimal.mermaid"}},match:/\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)/dgv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}*(,)/dgv}]}]}]},"mermaid-ado-code-block":{begin:/\p{space}*:::\p{space}*mermaid\p{space}*(?=\n?$)/dgiv,contentName:"meta.embedded.block.mermaid",end:/\p{space}*:::\p{space}*/dgv,patterns:[{include:"#mermaid"}]},"mermaid-code-block":{begin:/(?<=[\`\~])mermaid(\p{space}+[^\`\~]*)?(?=\n?$)/dgiv,contentName:"meta.embedded.block.mermaid",end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{include:"#mermaid"}]},"mermaid-code-block-with-attributes":{begin:/(?<=[\`\~])\{\p{space}*\.?mermaid(\p{space}+[^\`\~]*)?(?=\n?$)/dgiv,contentName:"meta.embedded.block.mermaid",end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{include:"#mermaid"}]}},scopeName:"markdown.mermaid.codeblock",embeddedLangs:undefined,aliases:["mmd"]})
3
+ const lang = Object.freeze({displayName:"Mermaid",fileTypes:[],injectionSelector:"L:text.html.markdown",name:"mermaid",patterns:[{include:"#mermaid-code-block"},{include:"#mermaid-code-block-with-attributes"},{include:"#mermaid-ado-code-block"}],repository:{mermaid:{patterns:[{begin:/^\p{space}*(architecture-beta)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"punctuation.definition.typeparameters.begin.mermaid"},"4":{name:"string"},"5":{name:"keyword.control.mermaid"},"6":{name:"string"},"7":{name:"punctuation.definition.typeparameters.end.mermaid"},"8":{name:"punctuation.definition.typeparameters.begin.mermaid"},"9":{name:"string"},"10":{name:"punctuation.definition.typeparameters.end.mermaid"},"11":{name:"keyword.control.mermaid"},"12":{name:"variable"}},match:/\p{space}*(group|service)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\()?([\p{L}\p{M}\p{N}\p{Pc}\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{space}*(\])?\p{space}*(in)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)?/dgiv},{captures:{"1":{name:"variable"},"2":{name:"punctuation.definition.typeparameters.begin.mermaid"},"3":{name:"variable"},"4":{name:"punctuation.definition.typeparameters.end.mermaid"},"5":{name:"keyword.control.mermaid"},"6":{name:"entity.name.function.mermaid"},"7":{name:"keyword.control.mermaid"},"8":{name:"entity.name.function.mermaid"},"9":{name:"keyword.control.mermaid"},"10":{name:"variable"},"11":{name:"punctuation.definition.typeparameters.begin.mermaid"},"12":{name:"variable"},"13":{name:"punctuation.definition.typeparameters.end.mermaid"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\{)?\p{space}*(group)?(\})?\p{space}*(:)\p{space}*([TBLR])\p{space}+(<?-->?)\p{space}+([TBLR])\p{space}*(:)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\{)?\p{space}*(group)?(\})?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"variable"}},match:/\p{space}*(junction)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(in)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)?/dgiv}]},{begin:/^\p{space}*(classDiagram)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"entity.name.type.class.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"entity.name.type.class.mermaid"},"6":{name:"keyword.control.mermaid"},"7":{name:"string"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}("(?:\p{Nd}+|\*|0[^\n][^\n]\p{Nd}+|1[^\n][^\n]\p{Nd}+|1[^\n][^\n]\*)")?\p{space}?(--o|--\*|<--|-->|<\.\.|\.\.>|<\|\.\.|\.\.\|>|<\|--|--\|>|--\*|--|\.\.|\*--|o--)\p{space}("(?:\p{Nd}+|\*|0[^\n][^\n]\p{Nd}+|1[^\n][^\n]\p{Nd}+|1[^\n][^\n]\*)")?\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}?(:)?\p{space}([^\n]*)(?=\n?$)/dgiv},{captures:{"1":{name:"entity.name.type.class.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"entity.name.function.mermaid"},"5":{name:"punctuation.parenthesis.open.mermaid"},"6":{name:"storage.type.mermaid"},"7":{name:"punctuation.definition.typeparameters.begin.mermaid"},"8":{name:"storage.type.mermaid"},"9":{name:"punctuation.definition.typeparameters.end.mermaid"},"10":{name:"entity.name.variable.parameter.mermaid"},"11":{name:"punctuation.parenthesis.closed.mermaid"},"12":{name:"keyword.control.mermaid"},"13":{name:"storage.type.mermaid"},"14":{name:"punctuation.definition.typeparameters.begin.mermaid"},"15":{name:"storage.type.mermaid"},"16":{name:"punctuation.definition.typeparameters.end.mermaid"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}?(:)\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}\-]+)?(\))([\*\$]{0,2})\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?(?=\n?$)/dgv},{captures:{"1":{name:"entity.name.type.class.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"storage.type.mermaid"},"5":{name:"punctuation.definition.typeparameters.begin.mermaid"},"6":{name:"storage.type.mermaid"},"7":{name:"punctuation.definition.typeparameters.end.mermaid"},"8":{name:"entity.name.variable.field.mermaid"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}?(:)\p{space}([\+\~\#\-])?([\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}\-]+)?(?=\n?$)/dgv},{captures:{"1":{name:"punctuation.definition.typeparameters.begin.mermaid"},"2":{name:"storage.type.mermaid"},"3":{name:"punctuation.definition.typeparameters.end.mermaid"},"4":{name:"entity.name.type.class.mermaid"}},match:/(<<)([\p{L}\p{M}\p{N}\p{Pc}\-]+)(>>)\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?/dgv},{begin:/(class)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)(~)?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?\p{space}?(\{)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.type.class.mermaid"},"3":{name:"punctuation.definition.typeparameters.begin.mermaid"},"4":{name:"storage.type.mermaid"},"5":{name:"punctuation.definition.typeparameters.end.mermaid"},"6":{name:"keyword.control.mermaid"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{begin:/\p{space}([\+\~\#\-])?([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\()/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"},"3":{name:"punctuation.parenthesis.open.mermaid"}},end:/(\))([\*\$]{0,2})\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.parenthesis.closed.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"storage.type.mermaid"},"4":{name:"punctuation.definition.typeparameters.begin.mermaid"},"5":{name:"storage.type.mermaid"},"6":{name:"punctuation.definition.typeparameters.end.mermaid"}},patterns:[{captures:{"1":{name:"storage.type.mermaid"},"2":{name:"punctuation.definition.typeparameters.begin.mermaid"},"3":{name:"storage.type.mermaid"},"4":{name:"punctuation.definition.typeparameters.end.mermaid"},"5":{name:"entity.name.variable.parameter.mermaid"}},match:/\p{space}*,?\p{space}*([\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}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"storage.type.mermaid"},"3":{name:"punctuation.definition.typeparameters.begin.mermaid"},"4":{name:"storage.type.mermaid"},"5":{name:"punctuation.definition.typeparameters.end.mermaid"},"6":{name:"entity.name.variable.field.mermaid"}},match:/\p{space}([\+\~\#\-])?([\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}\-]+)?(?=\n?$)/dgv},{captures:{"1":{name:"punctuation.definition.typeparameters.begin.mermaid"},"2":{name:"storage.type.mermaid"},"3":{name:"punctuation.definition.typeparameters.end.mermaid"},"4":{name:"entity.name.type.class.mermaid"}},match:/(<<)([\p{L}\p{M}\p{N}\p{Pc}\-]+)(>>)\p{space}?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?/dgv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.type.class.mermaid"},"3":{name:"punctuation.definition.typeparameters.begin.mermaid"},"4":{name:"storage.type.mermaid"},"5":{name:"punctuation.definition.typeparameters.end.mermaid"}},match:/(class)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)(~)?([\p{L}\p{M}\p{N}\p{Pc}\-]+)?(~)?/dgiv}]},{begin:/^\p{space}*(erDiagram)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"},"4":{name:"keyword.control.mermaid"}},match:/^\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\[)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\p{space}\-]+")?\p{space}*(\])?(?=\n?$)/dgv},{begin:/\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\[)?\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+|"[\p{L}\p{M}\p{N}\p{Pc}\p{space}\-]+")?\p{space}*(\])?\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"},"4":{name:"keyword.control.mermaid"},"5":{name:"keyword.control.mermaid"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"storage.type.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(PK|FK)?\p{space}*("["\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")?\p{space}*/dgiv},{match:/%%[^\n]*/dgv,name:"comment"}]},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"variable"},"4":{name:"keyword.control.mermaid"},"5":{name:"string"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*((?:\|o|\|\||\}o|\}\||one or (?:zero|more|many)|zero or (?:one|more|many)|many\([01]\)|only one|0\+|1\+?)(?:[^\n][^\n]|--)(?:o\||\|\||o\{|\|\{|one or (?:zero|more|many)|zero or (?:one|more|many)|many\([01]\)|only one|0\+|1\+?))\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}\-]+)/dgiv}]},{begin:/^\p{space}*(gantt)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/^\p{space}*(dateFormat)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-\.]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/^\p{space}*(axisFormat)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\%\/\\\-\.]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/(tickInterval)\p{space}+(([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month))/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(excludes)\p{space}+((?:[\p{Nd}\-\,\p{space}]|monday|tuesday|wednesday|thursday|friday|saturday|sunday|weekends)+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}+(todayMarker)\p{space}+([^\n]*)(?=\n?$)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(section)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/^\p{space}([^\n]*)(:)/dgv,beginCaptures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{match:/(crit|done|active|after)/dgv,name:"entity.name.function.mermaid"},{match:/%%[^\n]*/dgv,name:"comment"}]}]},{begin:/^\p{space}*(gitGraph)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{begin:/^\p{space}*(commit)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/\p{space}*(id)(:)\p{space}?("[^"\n]*")/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"entity.name.function.mermaid"}},match:/\p{space}*(type)(:)\p{space}?(NORMAL|REVERSE|HIGHLIGHT)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/\p{space}*(tag)(:)\p{space}?("[\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")/dgiv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/^\p{space}*(checkout)\p{space}*([^\p{space}"]*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"constant.numeric.decimal.mermaid"}},match:/^\p{space}*(branch)\p{space}*([^\p{space}"]*)\p{space}*(?:(order)(:)\p{space}?(\p{Nd}+))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"string"}},match:/^\p{space}*(merge)\p{space}*([^\p{space}"]*)\p{space}*(?:(tag)(:)\p{space}?("[^"\n]*"))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"}},match:/^\p{space}*(cherry-pick)\p{space}+(id)(:)\p{space}*("[^"\n]*")/dgiv}]},{begin:/^\p{space}*(graph|flowchart)\p{space}+([\p{L} 0-9]+)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"},"5":{name:"keyword.control.mermaid"}},match:/^\p{space}*(subgraph)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(\[)("?[\p{L}\p{M}\p{N}\p{Pc}\p{space}\*\+\%\=\\\/\:\.\-'\`\,\&\^\#\$\!\?\<\>]*"?)(\])/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/^\p{space}*(subgraph)\p{space}+([\p{L} 0-9\<\>]+)/dgv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/^\p{space}*(direction)\p{space}+(RB|BT|RL|TD|LR)/dgiv},{match:/\b(end)\b/dgv,name:"keyword.control.mermaid"},{begin:/(\b(?:(?!--|==)[\-\p{L}\p{M}\p{N}\p{Pc}])+\b\p{space}*)(\(\[|\[\[|\[\(|\[|\(+|[\>\{]|\(\()/dgv,beginCaptures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},end:/(\]\)|\]\]|\)\]|\]|\)+|\}|\)\))/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{begin:/\p{space}*(")/dgv,beginCaptures:{"1":{name:"string"}},end:/(")/dgv,endCaptures:{"1":{name:"string"}},patterns:[{begin:/([^"]*)/dgv,beginCaptures:{"1":{name:"string"}},end:/(?=")/dgv,patterns:[{captures:{"1":{name:"comment"}},match:/([^"]*)/dgv}]}]},{captures:{"1":{name:"string"}},match:/\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgv}]},{begin:/\p{space}*((?:-{2,5}|={2,5})[xo\>]?\|)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(\|)/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{begin:/\p{space}*(")/dgv,beginCaptures:{"1":{name:"string"}},end:/(")/dgv,endCaptures:{"1":{name:"string"}},patterns:[{begin:/([^"]*)/dgv,beginCaptures:{"1":{name:"string"}},end:/(?=")/dgv,patterns:[{captures:{"1":{name:"comment"}},match:/([^"]*)/dgv}]}]},{captures:{"1":{name:"string"}},match:/\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"},"3":{name:"keyword.control.mermaid"}},match:/\p{space}*([xo\<]?(?:-{2,5}|={2,5}|-\.{1,3}|-\.))((?:(?!--|==)[\p{L}\p{M}\p{N}\p{Pc}\p{space}\*\+\%\=\\\/\:\.\-'\`\,"\&\^\#\$\!\?\<\>\[\]])*)((?:-{2,5}|={2,5}|\.{1,3}-|\.-)[xo\>]?)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}*([ox\<]?(?:-[^\n]{1,3}-|-{1,3}|={1,3})[ox\>]?)/dgiv},{match:/(\b(?:(?!--|==)[\-\p{L}\p{M}\p{N}\p{Pc}])+\b\p{space}*)/dgv,name:"variable"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"string"}},match:/\p{space}*(class)\p{space}+(\b[\-\,\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"string"}},match:/\p{space}*(classDef)\p{space}+(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)\p{space}+(\b[\-\,\:\;\#\p{L}\p{M}\p{N}\p{Pc}]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"variable"},"4":{name:"string"}},match:/\p{space}*(click)\p{space}+(\b[\-\p{L}\p{M}\p{N}\p{Pc}]+\b\p{space}*)(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)?\p{space}("*[^\n]*")/dgiv}]},{begin:/^\p{space}*(pie)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/\p{space}([^\n]*)(:)/dgv,beginCaptures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{match:/%%[^\n]*/dgv,name:"comment"}]}]},{begin:/^\p{space}*(quadrantChart)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title)\p{space}*(["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/^\p{space}*([xy]-axis)\p{space}+((?:(?!-->)[\$\&\%\/\#\.\,\?\!\*\+\='\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}])*)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(-->)\p{space}*([\$\&\%\/\#\.\,\?\!\*\+\='\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(quadrant-[1234])\p{space}*(["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{captures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"constant.numeric.decimal.mermaid"},"5":{name:"keyword.control.mermaid"},"6":{name:"constant.numeric.decimal.mermaid"},"7":{name:"keyword.control.mermaid"}},match:/\p{space}*([\$\&\%\/\#\.\,\?\!\*\+\='\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)\p{space}*(:)\p{space}*(\[)\p{space}*(\p{Nd}\.\p{Nd}+)\p{space}*(,)\p{space}*(\p{Nd}\.\p{Nd}+)\p{space}*(\])/dgv}]},{begin:/^\p{space}*(requirementDiagram)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{begin:/^\p{space}*((?:functional|interface|performance|physical)?requirement|designConstraint)\p{space}*(["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)\p{space}*(\{)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/\p{space}*(id:)\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(text:)\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/\p{space}*(risk:)\p{space}*(low|medium|high)\p{space}*(?=\n?$)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"}},match:/\p{space}*(verifymethod:)\p{space}*(analysis|inspection|test|demonstration)\p{space}*(?=\n?$)/dgiv}]},{begin:/^\p{space}*(element)\p{space}*(["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)\p{space}*(\{)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/\p{space}*(type:)\p{space}*(["\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/\p{space}*(docref:)\p{space}*([\$\&\%\^\/\#\.\,\?\!\;\:\*\+\<\>_'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgiv}]},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"variable"}},match:/^\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(-)\p{space}*(contains|copies|derives|satisfies|verifies|refines|traces)\p{space}*(->)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(?=\n?$)/dgiv},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"keyword.control.mermaid"},"4":{name:"keyword.control.mermaid"},"5":{name:"variable"}},match:/^\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(<-)\p{space}*(contains|copies|derives|satisfies|verifies|refines|traces)\p{space}*(-)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(?=\n?$)/dgiv}]},{begin:/^\p{space}*(sequenceDiagram)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/(%%|#)[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/(title)\p{space}*(:)?\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"}},match:/\p{space}*(participant|actor)\p{space}+((?:(?! as )["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}])+)\p{space}*(as)?\p{space}(["\(\)\$\&\%\^\/\#\.\,\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},match:/\p{space}*((?:de)?activate)\p{space}+(\b["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?\p{space}*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"},"3":{name:"variable"},"4":{name:"keyword.control.mermaid"},"5":{name:"variable"},"6":{name:"keyword.control.mermaid"},"7":{name:"string"}},match:/\p{space}*(Note)\p{space}+((?:left|right)\p{space}of|over)\p{space}+(\b["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?\p{space}*)(,)?(\b["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?\p{space}*)?(:)(?:\p{space}+([^\;\#]*))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(loop)(?:\p{space}+([^\;\#]*))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}*(end)/dgv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(alt|else|option|par|and|rect|autonumber|critical|opt)(?:\p{space}+([^\#\;]*))?(?=\n?$)/dgiv},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"variable"},"4":{name:"keyword.control.mermaid"},"5":{name:"string"}},match:/\p{space}*(\b["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?)\p{space}*(-?-[\>x\)]>?[\+\-]?)\p{space}*(["\(\)\$\&\%\^\/\#\.\?\!\*\=\<\>'\\\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b\)?)\p{space}*(:)\p{space}*([^\;\#]*)/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"entity.name.function.mermaid"},"3":{name:"string"}},match:/\p{space}*(box)\p{space}+(transparent)(?:\p{space}+([^\;\#]*))?/dgiv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/\p{space}*(box)(?:\p{space}+([^\;\#]*))?/dgiv}]},{begin:/^\p{space}*(stateDiagram(?:-v2)?)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}+(\})\p{space}+/dgv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}+(--)\p{space}+/dgv},{match:/^\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)(?=\n?$)/dgv,name:"variable"},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(:)\p{space}+(\p{space}*[\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b)/dgv},{begin:/^\p{space}*(state)\p{space}+/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"},"3":{name:"variable"}},match:/\p{space}*("[\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]+\b")\p{space}+(as)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgiv},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(\{)/dgv},{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"}},match:/\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(<<(?:fork|join)>>)/dgiv}]},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(-->)/dgv,beginCaptures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"variable"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(:)?\p{space}*([^\n\:]+)?/dgv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"string"}},match:/(\[\*\])\p{space}*(:)?\p{space}*([^\n\:]+)?/dgv}]},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"variable"},"4":{name:"keyword.control.mermaid"},"5":{name:"string"}},match:/(\[\*\])\p{space}+(-->)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(:)?\p{space}*([^\n\:]+)?/dgv},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"},"3":{name:"keyword.control.mermaid"},"4":{name:"string"}},match:/^\p{space}*(note (?:left|right) of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}+(:)\p{space}*([^\n\:]+)/dgiv},{begin:/^\p{space}*(note (?:left|right) of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)([^\n]|\n)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"variable"}},contentName:"string",end:/(end note)/dgiv,endCaptures:{"1":{name:"keyword.control.mermaid"}}}]},{begin:/^\p{space}*(journey)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title|section)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/\p{space}*(["\(\)\$\&\%\^\/\.\,\?\!\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)\p{space}*(:)\p{space}*(\p{Nd}+)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"string"},"2":{name:"keyword.control.mermaid"},"3":{name:"constant.numeric.decimal.mermaid"},"4":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"variable"}},match:/\p{space}*,?\p{space}*([^\,\#\n]+)/dgv}]}]},{begin:/^\p{space}*(xychart(?:-beta)?(?:\p{space}+horizontal)?)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\:\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{match:/%%[^\n]*/dgv,name:"comment"},{captures:{"1":{name:"keyword.control.mermaid"},"2":{name:"string"}},match:/^\p{space}*(title)\p{space}+(\p{space}*["\(\)\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*)/dgiv},{begin:/^\p{space}*(x-axis)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"constant.numeric.decimal.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"constant.numeric.decimal.mermaid"}},match:/\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)\p{space}*(-->)\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)/dgv},{captures:{"1":{name:"string"}},match:/\p{space}+("[\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")/dgv},{captures:{"1":{name:"string"}},match:/\p{space}+([\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{begin:/\p{space}*(\[)/dgv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/\p{space}*(\])/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"constant.numeric.decimal.mermaid"}},match:/\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)/dgv},{captures:{"1":{name:"string"}},match:/\p{space}*("[\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")/dgv},{captures:{"1":{name:"string"}},match:/\p{space}*([\(\$\&\%\^\/\#\.\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]+)/dgv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}*(,)/dgv}]}]},{begin:/^\p{space}*(y-axis)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"}},end:/(?=\n?$)/dgv,patterns:[{captures:{"1":{name:"constant.numeric.decimal.mermaid"},"2":{name:"keyword.control.mermaid"},"3":{name:"constant.numeric.decimal.mermaid"}},match:/\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)\p{space}*(-->)\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)/dgv},{captures:{"1":{name:"string"}},match:/\p{space}+("[\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}\p{space}]*")/dgv},{captures:{"1":{name:"string"}},match:/\p{space}+([\(\$\&\%\^\/\#\.\,\?\!\;\:\*\+\=\<\>'\\\-\p{L}\p{M}\p{N}\p{Pc}]*)/dgv}]},{begin:/^\p{space}*(line|bar)\p{space}*(\[)/dgiv,beginCaptures:{"1":{name:"keyword.control.mermaid"},"2":{name:"keyword.control.mermaid"}},end:/\p{space}*(\])/dgv,endCaptures:{"1":{name:"keyword.control.mermaid"}},patterns:[{captures:{"1":{name:"constant.numeric.decimal.mermaid"}},match:/\p{space}*([\-\+]?\p{Nd}+\.?\p{Nd}*)/dgv},{captures:{"1":{name:"keyword.control.mermaid"}},match:/\p{space}*(,)/dgv}]}]}]},"mermaid-ado-code-block":{begin:/\p{space}*:::\p{space}*mermaid\p{space}*(?=\n?$)/dgiv,contentName:"meta.embedded.block.mermaid",end:/\p{space}*:::\p{space}*/dgv,patterns:[{include:"#mermaid"}]},"mermaid-code-block":{begin:/(?<=[\`\~])mermaid(\p{space}+[^\`\~]*)?(?=\n?$)/dgiv,contentName:"meta.embedded.block.mermaid",end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{include:"#mermaid"}]},"mermaid-code-block-with-attributes":{begin:/(?<=[\`\~])\{\p{space}*\.?mermaid(\p{space}+[^\`\~]*)?(?=\n?$)/dgiv,contentName:"meta.embedded.block.mermaid",end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?=\\p{space}*[\\`\\~]{3,}\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{include:"#mermaid"}]}},scopeName:"markdown.mermaid.codeblock",embeddedLangs:undefined,aliases:["mmd"]})
4
4
 
5
5
  export default [
6
6
  lang
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:/\p{AHex}{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[lr]|sh[lr]|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|h(?:ar|unks)|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: (?:info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|f(?:ault)?|scribe|tect columns)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:[el]|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpackz?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:aml|ml)))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: session)?))|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cosh?|sinh?|tanh?)|vg)|c(?:eil|osh?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:inh?|qrt|tddev|um)|tanh?|variance))?)|d|e(?:rge|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|lugin(?: (?:add|list|rm|stop|use))?|net|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains)|unt(?:-null)?)|umulative)|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nt(?:eger|o-(?:df|lazy|nu))|s-(?:duplicated|in|n(?:ot-null|ull)|unique))|join|l(?:ast|it|owercase)|m(?:ax|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise)|p(?:ivot|rofile)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|slice)|ftime))|um(?:mary)?)|take|u(?:n(?:ique|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:an(?:dom(?: (?:b(?:inary|ool)|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|istry query)|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|m(?:d|sgpackz?)|nuon|p(?:arquet|list)|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|n(?:ame|iq(?:-by)?)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![\\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\p{AHex}+(?![\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\p{AHex}{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:/\p{AHex}{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[lr]|sh[lr]|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|h(?:ar|unks)|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: (?:info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|f(?:ault)?|scribe|tect columns)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:[el]|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpackz?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:aml|ml)))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: session)?))|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cosh?|sinh?|tanh?)|vg)|c(?:eil|osh?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:inh?|qrt|tddev|um)|tanh?|variance))?)|d|e(?:rge|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|lugin(?: (?:add|list|rm|stop|use))?|net|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains)|unt(?:-null)?)|umulative)|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nt(?:eger|o-(?:df|lazy|nu))|s-(?:duplicated|in|n(?:ot-null|ull)|unique))|join|l(?:ast|it|owercase)|m(?:ax|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise)|p(?:ivot|rofile)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|slice)|ftime))|um(?:mary)?)|take|u(?:n(?:ique|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:an(?:dom(?: (?:b(?:inary|ool)|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|istry query)|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|m(?:d|sgpackz?)|nuon|p(?:arquet|list)|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|n(?:ame|iq(?:-by)?)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![\\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:"#numbers-octal"},{include:"#numbers-binary"},{include:"#binary"}]},"control-keywords":{match:/(?<![0-9a-zA-Z_\-\.\/\:\\])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![0-9a-zA-Z_\-\.\/\:\\])/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:"#string-raw"},{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:/*@__PURE__*/ new EmulatedRegExp("(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}\\-])(?:(?=(_*))\\1)[\\-\\+]?(?:(?=(_*))\\2)(?:(?:NaN|infinity|inf)(?:(?=(_*))\\3)|(?:\\p{Nd}(?:(?=([\\p{Nd}_]*))\\4)\\.?|\\.(?:(?=(_*))\\5)\\p{Nd})(?:(?=([\\p{Nd}_]*))\\6)(?:E(?:(?=(_*))\\7)[\\-\\+]?(?:(?=(_*))\\8)\\p{Nd}(?:(?=([\\p{Nd}_]*))\\9))?)(?:ns|us|µs|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",{"hiddenCaptures":[1,2,3,4,5,6,7,8,9]}),name:"constant.numeric.nushell"},"numbers-binary":{match:/*@__PURE__*/ new EmulatedRegExp("(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}\\-])(?:(?=(_*))\\1)0(?:(?=(_*))\\2)b(?:(?=(_*))\\3)[01](?:(?=([01_]*))\\4)(?![\\p{L}\\p{M}\\p{N}\\p{Pc}\\.])","dgv",{"hiddenCaptures":[1,2,3,4]}),name:"constant.numeric.nushell"},"numbers-hexa":{match:/*@__PURE__*/ new EmulatedRegExp("(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}\\-])(?:(?=(_*))\\1)0(?:(?=(_*))\\2)x(?:(?=(_*))\\3)\\p{AHex}(?:(?=([_\\p{AHex}]*))\\4)(?![\\p{L}\\p{M}\\p{N}\\p{Pc}\\.])","dgv",{"hiddenCaptures":[1,2,3,4]}),name:"constant.numeric.nushell"},"numbers-octal":{match:/*@__PURE__*/ new EmulatedRegExp("(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}\\-])(?:(?=(_*))\\1)0(?:(?=(_*))\\2)o(?:(?=(_*))\\3)[0-7](?:(?=([0-7_]*))\\4)(?![\\p{L}\\p{M}\\p{N}\\p{Pc}\\.])","dgv",{"hiddenCaptures":[1,2,3,4]}),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|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?=[ \)]|(?=\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-raw"},{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\p{AHex}{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-raw":{begin:/r(#+)'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.nushell"}},end:/'\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.nushell"}},name:"string.raw.nushell"},"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