@shikijs/langs-precompiled 1.27.0 → 1.27.1
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/angular-ts.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/gdscript.mjs +3 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/ini.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +2 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/nginx.mjs +2 -1
- package/dist/nim.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/pug.mjs +2 -1
- package/dist/python.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/systemd.mjs +3 -1
- package/dist/templ.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/package.json +3 -3
package/dist/latex.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
1
2
|
import tex from './tex.mjs'
|
|
2
3
|
|
|
3
|
-
const lang = Object.freeze({displayName:"LaTeX",name:"latex",patterns:[{comment:"This scope identifies partially typed commands such as `\\tab`. We use this to trigger “Command Completion” only when it makes sense.",match:/(?<=\\[\p{L}\p{M}\p{N}\p{Pc}\@]|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{2}|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{3}|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{4}|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{5}|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{6})\p{space}/dgv,name:"meta.space-after-command.latex"},{begin:/((\\)(?:usepackage|documentclass))\b(?=\[|\{)/dgv,beginCaptures:{"1":{name:"keyword.control.preamble.latex"},"2":{name:"punctuation.definition.function.latex"}},end:/(?<=\})/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.preamble.latex",patterns:[{include:"#multiline-optional-arg"},{begin:/((?:|(?<=\]))\{)/dgv,beginCaptures:{"0":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"support.class.latex",end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"$self"}]}]},{begin:/((\\)(?:include|input))(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.include.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.include.latex",patterns:[{include:"$self"}]},{begin:/((\\)((?:sub){0,2}section|(?:sub)?paragraph|chapter|part|addpart|addchap|addsec|minisec|frametitle)(?:\*)?)((?:\[[^\[]*?\]){0,2})(\{)/dgv,beginCaptures:{"1":{name:"support.function.section.latex"},"2":{name:"punctuation.definition.function.latex"},"4":{patterns:[{include:"#optional-arg-bracket"}]},"5":{name:"punctuation.definition.arguments.begin.latex"}},comment:"this works OK with all kinds of crazy stuff as long as section is one line",contentName:"entity.name.section.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.function.section.$3.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(\p{space}*\\begin\{songs\}\{[^\n]*\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.data.environment.songs.latex",end:/(\\end\{songs\}(?:\p{space}*\n)?)/dgv,name:"meta.function.environment.songs.latex",patterns:[{begin:/\\\[/dgv,end:/\]/dgv,name:"meta.chord.block.latex support.class.chord.block.environment.latex",patterns:[{include:"$self"}]},{match:/\^/dgv,name:"meta.chord.block.latex support.class.chord.block.environment.latex"},{include:"$self"}]},{begin:/(?:(?<=^|\n(?!$))\p{space}*)?\\begin\{(lstlisting|minted|pyglist)\}(?=\[|\{)/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\\end\{\1\}()/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)((?:asy|asymptote))(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.asy",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.asy"}]},{begin:/(?:|(?<=\]))(\{)(bash)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.shell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.shell"}]},{begin:/(?:|(?<=\]))(\{)((?:c|cpp))(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.cpp.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.cpp.embedded.latex"}]},{begin:/(?:|(?<=\]))(\{)(css)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.css",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.css"}]},{begin:/(?:|(?<=\]))(\{)(gnuplot)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.gnuplot",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.gnuplot"}]},{begin:/(?:|(?<=\]))(\{)((?:hs|haskell))(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.haskell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.haskell"}]},{begin:/(?:|(?<=\]))(\{)(html)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"text.html",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"text.html.basic"}]},{begin:/(?:|(?<=\]))(\{)(java)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.java",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.java"}]},{begin:/(?:|(?<=\]))(\{)((?:jl|julia))(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.julia",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.julia"}]},{begin:/(?:|(?<=\]))(\{)((?:js|javascript))(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.js",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.js"}]},{begin:/(?:|(?<=\]))(\{)(lua)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.lua"}]},{begin:/(?:|(?<=\]))(\{)((?:py|python|sage))(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.python"}]},{begin:/(?:|(?<=\]))(\{)((?:rb|ruby))(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.ruby",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.ruby"}]},{begin:/(?:|(?<=\]))(\{)(rust)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.rust",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.rust"}]},{begin:/(?:|(?<=\]))(\{)((?:ts|typescript))(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.ts",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.ts"}]},{begin:/(?:|(?<=\]))(\{)(xml)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"text.xml",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"text.xml"}]},{begin:/(?:|(?<=\]))(\{)(yaml)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.yaml",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.yaml"}]},{begin:/(?:|(?<=\]))(\{)([a-zA-Z]*)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"meta.function.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:lstlisting|minted|pyglist)\})/dgv,name:"meta.embedded.block.generic.latex"}]},{begin:/\p{space}*\\begin\{(?:asy|asycode)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:asy|asycode)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.asymptote",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:asy|asycode)\*?\})/dgv,patterns:[{include:"source.asymptote"}]}]},{begin:/\p{space}*\\begin\{cppcode\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{cppcode\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.cpp.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{cppcode\*?\})/dgv,patterns:[{include:"source.cpp.embedded.latex"}]}]},{begin:/\p{space}*\\begin\{(?:dot2tex|dotcode)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:dot2tex|dotcode)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.dot",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:dot2tex|dotcode)\*?\})/dgv,patterns:[{include:"source.dot"}]}]},{begin:/\p{space}*\\begin\{gnuplot\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{gnuplot\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.gnuplot",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{gnuplot\*?\})/dgv,patterns:[{include:"source.gnuplot"}]}]},{begin:/\p{space}*\\begin\{hscode\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{hscode\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.haskell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{hscode\*?\})/dgv,patterns:[{include:"source.haskell"}]}]},{begin:/\p{space}*\\begin\{(?:jlcode|jlverbatim|jlblock|jlconcode|jlconsole|jlconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:jlcode|jlverbatim|jlblock|jlconcode|jlconsole|jlconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.julia",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:jlcode|jlverbatim|jlblock|jlconcode|jlconsole|jlconverbatim)\*?\})/dgv,patterns:[{include:"source.julia"}]}]},{begin:/\p{space}*\\begin\{(?:juliacode|juliaverbatim|juliablock|juliaconcode|juliaconsole|juliaconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:juliacode|juliaverbatim|juliablock|juliaconcode|juliaconsole|juliaconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.julia",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:juliacode|juliaverbatim|juliablock|juliaconcode|juliaconsole|juliaconverbatim)\*?\})/dgv,patterns:[{include:"source.julia"}]}]},{begin:/\p{space}*\\begin\{luacode\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{luacode\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{luacode\*?\})/dgv,patterns:[{include:"source.lua"}]}]},{begin:/\p{space}*\\begin\{(?:pycode|pyverbatim|pyblock|pyconcode|pyconsole|pyconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:pycode|pyverbatim|pyblock|pyconcode|pyconsole|pyconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:pycode|pyverbatim|pyblock|pyconcode|pyconsole|pyconverbatim)\*?\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/\p{space}*\\begin\{(?:pylabcode|pylabverbatim|pylabblock|pylabconcode|pylabconsole|pylabconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:pylabcode|pylabverbatim|pylabblock|pylabconcode|pylabconsole|pylabconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:pylabcode|pylabverbatim|pylabblock|pylabconcode|pylabconsole|pylabconverbatim)\*?\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/\p{space}*\\begin\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|python|pythonq|pythonrepl)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|python|pythonq|pythonrepl)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|python|pythonq|pythonrepl)\*?\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/\p{space}*\\begin\{scalacode\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{scalacode\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.scala",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{scalacode\*?\})/dgv,patterns:[{include:"source.scala"}]}]},{begin:/\p{space}*\\begin\{(?:sympycode|sympyverbatim|sympyblock|sympyconcode|sympyconsole|sympyconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:sympycode|sympyverbatim|sympyblock|sympyconcode|sympyconsole|sympyconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:sympycode|sympyverbatim|sympyblock|sympyconcode|sympyconsole|sympyconverbatim)\*?\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/\p{space}*\\begin\{([a-zA-Z]*code|lstlisting|minted|pyglist)\*?\}(?:\[[^\n]*\])?(?:\{[^\n]*\})?/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.function.embedded.latex",end:/\\end\{\1\}(?:\p{space}*\n)?()/dgv,name:"meta.embedded.block.generic.latex"},{begin:/((?:(?<=^|\n(?!$))\p{space}*)?\\begin\{((?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?))\})(?:\[[^\]]*\]){0,2}(?=\{)/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{\2\})()/dgv,patterns:[{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Aa][Ssſ][Yy]|[Aa][Ssſ][Yy][Mm][Pp][Tt][Oo][Tt][Ee])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.asy",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.asy"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Bb][Aa][Ssſ][Hh]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.shell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.shell"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Cc]|[Cc][Pp][Pp])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.cpp.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.cpp.embedded.latex"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Cc][Ssſ][Ssſ]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.css",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.css"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Gg][Nn][Uu][Pp][Ll][Oo][Tt]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.gnuplot",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.gnuplot"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Hh][Ssſ]|[Hh][Aa][Ssſ][KKk][Ee][Ll][Ll])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.haskell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.haskell"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Hh][Tt][Mm][Ll]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"text.html",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"text.html.basic"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Jj][Aa][Vv][Aa]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.java",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.java"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Jj][Ll]|[Jj][Uu][Ll][Ii][Aa])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.julia",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.julia"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Jj][Ssſ]|[Jj][Aa][Vv][Aa][Ssſ][Cc][Rr][Ii][Pp][Tt])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.js",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.js"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Ll][Uu][Aa]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.lua"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Pp][Yy]|[Pp][Yy][Tt][Hh][Oo][Nn]|[Ssſ][Aa][Gg][Ee])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Rr][Bb]|[Rr][Uu][Bb][Yy])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.ruby",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.ruby"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Rr][Uu][Ssſ][Tt]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.rust",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.rust"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Tt][Ssſ]|[Tt][Yy][Pp][Ee][Ssſ][Cc][Rr][Ii][Pp][Tt])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.ts",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.ts"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Xx][Mm][Ll]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"text.xml",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"text.xml"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Yy][Aa][Mm][Ll]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.yaml",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.yaml"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Tt][Ii][KKk][Zz]|[Tt][Ii][KKk][Zz][Pp][Ii][Cc][Tt][Uu][Rr][Ee])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"text.tex.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"text.tex.latex"}]}]},{begin:/(\{)/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"meta.function.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,name:"meta.embedded.block.generic.latex"}]}]},{begin:/(?:(?<=^|\n(?!$))\p{space}*)?\\begin\{(terminal\*?)\}(?=\[|\{)/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\\end\{\1\}()/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)([a-zA-Z]*)(\})/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"meta.function.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{terminal\*?\})/dgv,name:"meta.embedded.block.generic.latex"}]},{begin:/((\\)addplot)\+?(\[[^\[]*\])*\p{space}*(gnuplot)\p{space}*(\[[^\[]*\])*\p{space}*(\{)/dgv,captures:{"1":{name:"support.function.be.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"variable.parameter.function.latex"},"5":{patterns:[{include:"#optional-arg-bracket"}]},"6":{name:"punctuation.definition.arguments.begin.latex"}},end:/\p{space}*(\};)/dgv,patterns:[{begin:/%/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.latex"}},end:/(?=$|\n)\n?/dgv,name:"comment.line.percentage.latex"},{include:"source.gnuplot"}]},{begin:/(\p{space}*\\begin\{((?:fboxv|boxedv|V|v|spv)erbatim\*?)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"markup.raw.verbatim.latex",end:/(\\end\{\2\})()/dgv,name:"meta.function.verbatim.latex"},{begin:/(\p{space}*\\begin\{VerbatimOut\}\{[^\}]*\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"markup.raw.verbatim.latex",end:/(\\end\{VerbatimOut\})/dgv,name:"meta.function.verbatim.latex"},{begin:/(\p{space}*\\begin\{alltt\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"markup.raw.verbatim.latex",end:/(\\end\{alltt\})/dgv,name:"meta.function.alltt.latex",patterns:[{captures:{"1":{name:"punctuation.definition.function.latex"}},match:/(\\)[A-Za-z]+/dgv,name:"support.function.general.latex"}]},{begin:/(\p{space}*\\begin\{([Cc]omment)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"comment.line.percentage.latex",end:/(\\end\{\2\})()/dgv,name:"meta.function.verbatim.latex"},{begin:/\p{space}*((\\)(?:href|hyperref|hyperimage))(?=\[|\{)/dgv,beginCaptures:{"1":{name:"support.function.url.latex"}},comment:"Captures \\command[option]{url}{optional category}{optional name}{text}",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.function.hyperlink.latex",patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/(?:|(?<=\]))(\{)([^\}]*)(\})(?:\{[^\}]*\}){2}?(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"markup.underline.link.latex"},"3":{name:"punctuation.definition.arguments.end.latex"},"4":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"meta.variable.parameter.function.latex",end:/(?=\})/dgv,patterns:[{include:"$self"}]},{begin:/(?:|(?<=\]))(?:(\{)[^\}]*(\}))?(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"punctuation.definition.arguments.end.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"meta.variable.parameter.function.latex",end:/(?=\})/dgv,patterns:[{include:"$self"}]}]},{captures:{"1":{name:"support.function.url.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"},"5":{name:"punctuation.definition.arguments.end.latex"},"'":{name:"markup.underline.link.latex"}},match:/\p{space}*((\\)url)(\{)([^\}]*)(\})/dgv,name:"meta.function.link.url.latex"},{captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},comment:"These two patterns match the \\begin{document} and \\end{document} commands, so that the environment matching pattern following them will ignore those commands.",match:/(\p{space}*\\begin\{document\})/dgv,name:"meta.function.begin-document.latex"},{captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},match:/(\p{space}*\\end\{document\})/dgv,name:"meta.function.end-document.latex"},{begin:/\p{space}*((\\)begin)(\{)((?:\+?array|equation|(?:IEEE)?eqnarray|multline|align|aligned|alignat|alignedat|flalign|flaligned|flalignat|split|gather|gathered|\+?cases|(?:display)?math|\+?[a-zA-Z]*matrix|[pbBvV]?NiceMatrix|[pbBvV]?NiceArray|(?:arg)?(?:mini|maxi))(?:\*|!)?)(\})(\p{space}*\n)?/dgv,captures:{"1":{name:"support.function.be.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"},"4":{name:"variable.parameter.function.latex"},"5":{name:"punctuation.definition.arguments.end.latex"}},contentName:"meta.math.block.latex support.class.math.block.environment.latex",end:/\p{space}*((\\)end)(\{)((?!))(\})(?:\p{space}*\n)?/dgv,name:"meta.function.environment.math.latex",patterns:[{match:/(?<!\\)&/dgv,name:"keyword.control.equation.align.latex"},{match:/\\\\/dgv,name:"keyword.control.equation.newline.latex"},{include:"#definition-label"},{include:"text.tex#math"},{include:"$self"}]},{begin:/\p{space}*(\\begin\{empheq\}(?:\[[^\n]*\])?)/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.math.block.latex support.class.math.block.environment.latex",end:/\p{space}*(\\end\{empheq\})/dgv,name:"meta.function.environment.math.latex",patterns:[{match:/(?<!\\)&/dgv,name:"keyword.control.equation.align.latex"},{match:/\\\\/dgv,name:"keyword.control.equation.newline.latex"},{include:"#definition-label"},{include:"text.tex#math"},{include:"$self"}]},{begin:/(\p{space}*\\begin\{(tabular[xy\*]?|xltabular|longtable|(?:long)?tabu|(?:long|tall)?tblr|NiceTabular[X\*]?|booktabs)\}(\p{space}*\n)?)/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.data.environment.tabular.latex",end:/(\p{space}*\\end\{((?!))\}(?:\p{space}*\n)?)/dgv,name:"meta.function.environment.tabular.latex",patterns:[{match:/(?<!\\)&/dgv,name:"keyword.control.table.cell.latex"},{match:/\\\\/dgv,name:"keyword.control.table.newline.latex"},{include:"$self"}]},{begin:/(\p{space}*\\begin\{(itemize|enumerate|description|list)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{\2\}(?:\p{space}*\n)?)()/dgv,name:"meta.function.environment.list.latex",patterns:[{include:"$self"}]},{begin:/(\p{space}*\\begin\{tikzpicture\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{tikzpicture\}(?:\p{space}*\n)?)/dgv,name:"meta.function.environment.latex.tikz",patterns:[{include:"$self"}]},{begin:/(\p{space}*\\begin\{frame\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{frame\})/dgv,name:"meta.function.environment.frame.latex",patterns:[{include:"$self"}]},{begin:/(\p{space}*\\begin\{(mpost\*?)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{\2\}(?:\p{space}*\n)?)()/dgv,name:"meta.function.environment.latex.mpost"},{begin:/(\p{space}*\\begin\{markdown\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.embedded.markdown_latex_combined",end:/(\\end\{markdown\})/dgv,patterns:[{include:"text.tex.markdown_latex_combined"}]},{begin:/(\p{space}*\\begin\{([\p{L}\p{M}\p{N}\p{Pc}]+\*?)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{\2\}(?:\p{space}*\n)?)()/dgv,name:"meta.function.environment.general.latex",patterns:[{include:"$self"}]},{captures:{"1":{name:"storage.type.function.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.begin.latex"},"4":{name:"support.function.general.latex"},"5":{name:"punctuation.definition.function.latex"},"6":{name:"punctuation.definition.end.latex"}},match:/((\\)(?:newcommand|renewcommand|(?:re)?newrobustcmd|DeclareRobustCommand))\*?(\{)((\\)[^\}]*)(\})/dgv},{begin:/((\\)marginpar)((?:\[[^\[]*?\])*)(\{)/dgv,beginCaptures:{"1":{name:"support.function.marginpar.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.marginpar.begin.latex"}},contentName:"meta.paragraph.margin.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.marginpar.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)footnote)((?:\[[^\[]*?\])*)(\{)/dgv,beginCaptures:{"1":{name:"support.function.footnote.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.footnote.begin.latex"}},contentName:"entity.name.footnote.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.footnote.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)emph)(\{)/dgv,beginCaptures:{"1":{name:"support.function.emph.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.emph.begin.latex"}},contentName:"markup.italic.emph.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.emph.end.latex"}},name:"meta.function.emph.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)textit)(\{)/dgv,captures:{"1":{name:"support.function.textit.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.textit.begin.latex"}},comment:"We put the keyword in a capture and name this capture, so that disabling spell checking for “keyword” won't be inherited by the argument to \\textit{...}.\n\nPut specific matches for particular LaTeX keyword.functions before the last two more general functions",contentName:"markup.italic.textit.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.textit.end.latex"}},name:"meta.function.textit.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)textbf)(\{)/dgv,captures:{"1":{name:"support.function.textbf.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.textbf.begin.latex"}},contentName:"markup.bold.textbf.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.textbf.end.latex"}},name:"meta.function.textbf.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)texttt)(\{)/dgv,captures:{"1":{name:"support.function.texttt.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.texttt.begin.latex"}},contentName:"markup.raw.texttt.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.texttt.end.latex"}},name:"meta.function.texttt.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{captures:{"0":{name:"keyword.other.item.latex"},"1":{name:"punctuation.definition.keyword.latex"}},match:/(\\)item\b/dgv,name:"meta.scope.item.latex"},{begin:/((\\)(?:[aA]uto|foot|full|no|ref|short|[tT]ext|[pP]aren|[sS]mart)?[cC]ite(?:al)?(?:p|s|t|author|year(?:par)?|title)?[ANP]*\*?)((?:(?:\([^\)]*\)){0,2}(?:\[[^\]]*\]){0,2}\{[\p{Alphabetic}\p{Number}_\:\.\-]*\})*)(<[^\]\<\>]*>)?((?:\[[^\]]*\])*)(\{)/dgv,captures:{"1":{name:"keyword.control.cite.latex"},"2":{name:"punctuation.definition.keyword.latex"},"3":{patterns:[{include:"#autocites-arg"}]},"4":{patterns:[{include:"#optional-arg-angle-no-highlight"}]},"5":{patterns:[{include:"#optional-arg-bracket-no-highlight"}]},"6":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.citation.latex",patterns:[{captures:{"1":{name:"comment.line.percentage.tex"},"2":{name:"punctuation.definition.comment.tex"}},match:/((%)[^\n]*)(?=$|\n)/dgv},{match:/[\p{Alphabetic}\p{Number}\:\.\-]+/dgv,name:"constant.other.reference.citation.latex"}]},{begin:/((\\)bibentry)(\{)/dgv,captures:{"1":{name:"keyword.control.cite.latex"},"2":{name:"punctuation.definition.keyword.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.citation.latex",patterns:[{match:/[\p{Alphabetic}\p{Number}\:\.]+/dgv,name:"constant.other.reference.citation.latex"}]},{begin:/((\\)[\p{L}\p{M}\p{N}\p{Pc}]*[rR]ef\*?)(?:\[[^\]]*\])?(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.ref.latex"},"2":{name:"punctuation.definition.keyword.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.reference.label.latex",patterns:[{match:/[\p{Alphabetic}\p{Number}\.\,\:\/\*\!\^_\-]/dgv,name:"constant.other.reference.label.latex"}]},{include:"#definition-label"},{begin:/((\\)(?:verb|Verb|spverb)\*?)\p{space}*((\\)scantokens)(\{)/dgv,beginCaptures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"support.function.verb.latex"},"4":{name:"punctuation.definition.verb.latex"},"5":{name:"punctuation.definition.begin.latex"}},contentName:"markup.raw.verb.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.latex"}},name:"meta.function.verb.latex",patterns:[{include:"$self"}]},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.verb.latex"},"4":{name:"markup.raw.verb.latex"},"5":{name:"punctuation.definition.verb.latex"}},match:/((\\)(?:verb|Verb|spverb)\*?)\p{space}*((?<=\p{space})\P{space}|[^a-zA-Z])([^\n]*?)(\3|(?=$|\n))/dgv,name:"meta.function.verb.latex"},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.arguments.begin.latex"},"5":{name:"punctuation.definition.arguments.end.latex"},"6":{name:"punctuation.definition.verb.latex"},"7":{name:"markup.raw.verb.latex"},"8":{name:"punctuation.definition.verb.latex"},"9":{name:"punctuation.definition.verb.latex"},"10":{name:"markup.raw.verb.latex"},"11":{name:"punctuation.definition.verb.latex"}},match:/((\\)(?:mint|mintinline))((?:\[[^\[]*?\])?)(\{)[a-zA-Z]*(\})(?:([^a-zA-Z\{])([^\n]*?)(\6)|(\{)([^\n]*?)(\}))/dgv,name:"meta.function.verb.latex"},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.verb.latex"},"5":{name:"markup.raw.verb.latex"},"6":{name:"punctuation.definition.verb.latex"},"7":{name:"punctuation.definition.verb.latex"},"8":{name:"markup.raw.verb.latex"},"9":{name:"punctuation.definition.verb.latex"}},match:/((\\)[a-z]+inline)((?:\[[^\[]*?\])?)(?:([^a-zA-Z\{])([^\n]*?)(\4)|(\{)([^\n]*?)(\}))/dgv,name:"meta.function.verb.latex"},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.verb.latex"},"5":{name:"source.python",patterns:[{include:"source.python"}]},"6":{name:"punctuation.definition.verb.latex"},"7":{name:"punctuation.definition.verb.latex"},"8":{name:"source.python",patterns:[{include:"source.python"}]},"9":{name:"punctuation.definition.verb.latex"}},match:/((\\)(?:(?:py|pycon|pylab|pylabcon|sympy|sympycon)[cv]?|pyq|pycq|pyif))((?:\[[^\[]*?\])?)(?:([^a-zA-Z\{])([^\n]*?)(\4)|(\{)([^\n]*?)(\}))/dgv,name:"meta.function.verb.latex"},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.verb.latex"},"5":{name:"source.julia",patterns:[{include:"source.julia"}]},"6":{name:"punctuation.definition.verb.latex"},"7":{name:"punctuation.definition.verb.latex"},"8":{name:"source.julia",patterns:[{include:"source.julia"}]},"9":{name:"punctuation.definition.verb.latex"}},match:/((\\)(?:jl|julia)[cv]?)((?:\[[^\[]*?\])?)(?:([^a-zA-Z\{])([^\n]*?)(\4)|(\{)([^\n]*?)(\}))/dgv,name:"meta.function.verb.latex"},{begin:/((\\)(?:directlua|luadirect))(\{)/dgv,beginCaptures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"source.lua",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"source.lua"}]},{match:/\\(?:newline|pagebreak|clearpage|linebreak|pause)\b/dgv,name:"keyword.control.layout.latex"},{begin:/\\\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.latex"}},end:/\\\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.latex"}},name:"meta.math.block.latex support.class.math.block.environment.latex",patterns:[{include:"text.tex#math"},{include:"$self"}]},{begin:/\$\$/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.latex"}},end:/\$\$/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.latex"}},name:"meta.math.block.latex support.class.math.block.environment.latex",patterns:[{match:/\\\$/dgv,name:"constant.character.escape.latex"},{include:"text.tex#math"},{include:"$self"}]},{begin:/\$/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.tex"}},end:/\$/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.tex"}},name:"meta.math.block.tex support.class.math.block.tex",patterns:[{match:/\\\$/dgv,name:"constant.character.escape.latex"},{include:"text.tex#math"},{include:"$self"}]},{begin:/\\\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.latex"}},end:/\\\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.latex"}},name:"meta.math.block.latex support.class.math.block.environment.latex",patterns:[{include:"text.tex#math"},{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.constant.latex"}},match:/(\\)(text(s(terling|ixoldstyle|urd|e(ction|venoldstyle|rvicemark))|yen|n(ineoldstyle|umero|aira)|c(ircledP|o(py(left|right)|lonmonetary)|urrency|e(nt(oldstyle)?|lsius))|t(hree(superior|oldstyle|quarters(emdash)?)|i(ldelow|mes)|w(o(superior|oldstyle)|elveudash)|rademark)|interrobang(down)?|zerooldstyle|o(hm|ne(superior|half|oldstyle|quarter)|penbullet|rd(feminine|masculine))|d(i(scount|ed|v(orced)?)|o(ng|wnarrow|llar(oldstyle)?)|egree|agger(dbl)?|blhyphen(char)?)|uparrow|p(ilcrow|e(so|r(t(housand|enthousand)|iodcentered))|aragraph|m)|e(stimated|ightoldstyle|uro)|quotes(traight(dblbase|base)|ingle)|f(iveoldstyle|ouroldstyle|lorin|ractionsolidus)|won|l(not|ira|e(ftarrow|af)|quill|angle|brackdbl)|a(s(cii(caron|dieresis|acute|grave|macron|breve)|teriskcentered)|cutedbl)|r(ightarrow|e(cipe|ferencemark|gistered)|quill|angle|brackdbl)|g(uarani|ravedbl)|m(ho|inus|u(sicalnote)?|arried)|b(igcircle|orn|ullet|lank|a(ht|rdbl)|rokenbar)))\b/dgv,name:"constant.character.latex"},{captures:{"1":{name:"punctuation.definition.variable.latex"}},match:/(\\)(?:[cgl]_+[_\p{Alphabetic}\@]+_[a-z]+|[qs]_[_\p{Alphabetic}\@]+[\p{Alphabetic}\@])/dgv,name:"variable.other.latex3.latex"},{captures:{"1":{name:"punctuation.definition.column-specials.begin.latex"},"2":{name:"punctuation.definition.column-specials.end.latex"}},match:/(?:<|>)(\{)\$(\})/dgv,name:"meta.column-specials.latex"},{include:"text.tex"}],repository:{"autocites-arg":{patterns:[{captures:{"1":{patterns:[{include:"#optional-arg-parenthesis-no-highlight"}]},"2":{patterns:[{include:"#optional-arg-bracket-no-highlight"}]},"3":{name:"punctuation.definition.arguments.begin.latex"},"4":{name:"constant.other.reference.citation.latex"},"5":{name:"punctuation.definition.arguments.end.latex"},"6":{patterns:[{include:"#autocites-arg"}]}},match:/((?:\([^\)]*\)){0,2})((?:\[[^\]]*\]){0,2})(\{)([\p{Alphabetic}\p{Number}_\:\.\-]+)(\})([^\n]*)/dgv}]},"begin-env-tokenizer":{captures:{"1":{name:"support.function.be.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"},"4":{name:"variable.parameter.function.latex"},"5":{name:"punctuation.definition.arguments.end.latex"},"6":{name:"punctuation.definition.arguments.optional.begin.latex"},"7":{patterns:[{include:"$self"}]},"8":{name:"punctuation.definition.arguments.optional.end.latex"},"9":{name:"punctuation.definition.arguments.begin.latex"},"10":{name:"variable.parameter.function.latex"},"11":{name:"punctuation.definition.arguments.end.latex"}},match:/\p{space}*((\\)(?:begin|end))(\{)([a-zA-Z]*\*?)(\})(?:(\[)([^\]]*)(\])){0,2}(?:(\{)([^\{\}]*)(\}))?/dgv},"definition-label":{begin:/((\\)z?label)((?:\[[^\[]*?\])*)(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.label.latex"},"2":{name:"punctuation.definition.keyword.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.definition.label.latex",patterns:[{match:/[\p{Alphabetic}\p{Number}\.\,\:\/\*\!\^_\-]/dgv,name:"variable.parameter.definition.label.latex"}]},"multiline-optional-arg":{begin:/\[/dgvy,beginCaptures:{"0":{name:"punctuation.definition.arguments.optional.begin.latex"}},contentName:"variable.parameter.function.latex",end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.optional.end.latex"}},name:"meta.parameter.optional.latex",patterns:[{include:"$self"}]},"multiline-optional-arg-no-highlight":{begin:/\[/dgvy,beginCaptures:{"0":{name:"punctuation.definition.arguments.optional.begin.latex"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.optional.end.latex"}},name:"meta.parameter.optional.latex",patterns:[{include:"$self"}]},"optional-arg-angle-no-highlight":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(<)[^\<]*?(>)/dgv,name:"meta.parameter.optional.latex"}]},"optional-arg-bracket":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(\[)([^\[]*?)(\])/dgv,name:"meta.parameter.optional.latex"}]},"optional-arg-bracket-no-highlight":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(\[)[^\[]*?(\])/dgv,name:"meta.parameter.optional.latex"}]},"optional-arg-parenthesis":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(\()([^\(]*?)(\))/dgv,name:"meta.parameter.optional.latex"}]},"optional-arg-parenthesis-no-highlight":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(\()[^\(]*?(\))/dgv,name:"meta.parameter.optional.latex"}]}},scopeName:"text.tex.latex",embeddedLangs:["tex"],aliases:undefined,embeddedLangsLazy:["shellscript","css","gnuplot","haskell","html","java","julia","javascript","lua","python","ruby","rust","typescript","xml","yaml","scala"]})
|
|
4
|
+
const lang = Object.freeze({displayName:"LaTeX",name:"latex",patterns:[{comment:"This scope identifies partially typed commands such as `\\tab`. We use this to trigger “Command Completion” only when it makes sense.",match:/(?<=\\[\p{L}\p{M}\p{N}\p{Pc}\@]|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{2}|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{3}|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{4}|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{5}|\\[\p{L}\p{M}\p{N}\p{Pc}\@]{6})\p{space}/dgv,name:"meta.space-after-command.latex"},{begin:/((\\)(?:usepackage|documentclass))\b(?=\[|\{)/dgv,beginCaptures:{"1":{name:"keyword.control.preamble.latex"},"2":{name:"punctuation.definition.function.latex"}},end:/(?<=\})/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.preamble.latex",patterns:[{include:"#multiline-optional-arg"},{begin:/*@__PURE__*/ new EmulatedRegExp("((?:^|(?<=\\]))\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"0":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"support.class.latex",end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"$self"}]}]},{begin:/((\\)(?:include|input))(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.include.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.include.latex",patterns:[{include:"$self"}]},{begin:/((\\)((?:sub){0,2}section|(?:sub)?paragraph|chapter|part|addpart|addchap|addsec|minisec|frametitle)(?:\*)?)((?:\[[^\[]*?\]){0,2})(\{)/dgv,beginCaptures:{"1":{name:"support.function.section.latex"},"2":{name:"punctuation.definition.function.latex"},"4":{patterns:[{include:"#optional-arg-bracket"}]},"5":{name:"punctuation.definition.arguments.begin.latex"}},comment:"this works OK with all kinds of crazy stuff as long as section is one line",contentName:"entity.name.section.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.function.section.$3.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(\p{space}*\\begin\{songs\}\{[^\n]*\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.data.environment.songs.latex",end:/(\\end\{songs\}(?:\p{space}*\n)?)/dgv,name:"meta.function.environment.songs.latex",patterns:[{begin:/\\\[/dgv,end:/\]/dgv,name:"meta.chord.block.latex support.class.chord.block.environment.latex",patterns:[{include:"$self"}]},{match:/\^/dgv,name:"meta.chord.block.latex support.class.chord.block.environment.latex"},{include:"$self"}]},{begin:/(?:(?<=^|\n(?!$))\p{space}*)?\\begin\{(lstlisting|minted|pyglist)\}(?=\[|\{)/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\\end\{\1\}()/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)((?:asy|asymptote))(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.asy",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.asy"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(bash)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.shell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.shell"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)((?:c|cpp))(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.cpp.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.cpp.embedded.latex"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(css)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.css",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.css"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(gnuplot)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.gnuplot",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.gnuplot"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)((?:hs|haskell))(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.haskell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.haskell"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(html)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"text.html",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"text.html.basic"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(java)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.java",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.java"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)((?:jl|julia))(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.julia",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.julia"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)((?:js|javascript))(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.js",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.js"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(lua)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.lua"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)((?:py|python|sage))(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.python"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)((?:rb|ruby))(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.ruby",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.ruby"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(rust)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.rust",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.rust"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)((?:ts|typescript))(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.ts",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.ts"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(xml)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"text.xml",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"text.xml"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)(yaml)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"source.yaml",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:minted|lstlisting|pyglist)\})/dgv,patterns:[{include:"source.yaml"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)([a-zA-Z]*)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"meta.function.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:lstlisting|minted|pyglist)\})/dgv,name:"meta.embedded.block.generic.latex"}]},{begin:/\p{space}*\\begin\{(?:asy|asycode)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:asy|asycode)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.asymptote",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:asy|asycode)\*?\})/dgv,patterns:[{include:"source.asymptote"}]}]},{begin:/\p{space}*\\begin\{cppcode\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{cppcode\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.cpp.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{cppcode\*?\})/dgv,patterns:[{include:"source.cpp.embedded.latex"}]}]},{begin:/\p{space}*\\begin\{(?:dot2tex|dotcode)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:dot2tex|dotcode)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.dot",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:dot2tex|dotcode)\*?\})/dgv,patterns:[{include:"source.dot"}]}]},{begin:/\p{space}*\\begin\{gnuplot\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{gnuplot\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.gnuplot",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{gnuplot\*?\})/dgv,patterns:[{include:"source.gnuplot"}]}]},{begin:/\p{space}*\\begin\{hscode\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{hscode\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.haskell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{hscode\*?\})/dgv,patterns:[{include:"source.haskell"}]}]},{begin:/\p{space}*\\begin\{(?:jlcode|jlverbatim|jlblock|jlconcode|jlconsole|jlconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:jlcode|jlverbatim|jlblock|jlconcode|jlconsole|jlconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.julia",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:jlcode|jlverbatim|jlblock|jlconcode|jlconsole|jlconverbatim)\*?\})/dgv,patterns:[{include:"source.julia"}]}]},{begin:/\p{space}*\\begin\{(?:juliacode|juliaverbatim|juliablock|juliaconcode|juliaconsole|juliaconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:juliacode|juliaverbatim|juliablock|juliaconcode|juliaconsole|juliaconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.julia",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:juliacode|juliaverbatim|juliablock|juliaconcode|juliaconsole|juliaconverbatim)\*?\})/dgv,patterns:[{include:"source.julia"}]}]},{begin:/\p{space}*\\begin\{luacode\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{luacode\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{luacode\*?\})/dgv,patterns:[{include:"source.lua"}]}]},{begin:/\p{space}*\\begin\{(?:pycode|pyverbatim|pyblock|pyconcode|pyconsole|pyconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:pycode|pyverbatim|pyblock|pyconcode|pyconsole|pyconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:pycode|pyverbatim|pyblock|pyconcode|pyconsole|pyconverbatim)\*?\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/\p{space}*\\begin\{(?:pylabcode|pylabverbatim|pylabblock|pylabconcode|pylabconsole|pylabconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:pylabcode|pylabverbatim|pylabblock|pylabconcode|pylabconsole|pylabconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:pylabcode|pylabverbatim|pylabblock|pylabconcode|pylabconsole|pylabconverbatim)\*?\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/\p{space}*\\begin\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|python|pythonq|pythonrepl)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|python|pythonq|pythonrepl)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|python|pythonq|pythonrepl)\*?\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/\p{space}*\\begin\{scalacode\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{scalacode\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.scala",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{scalacode\*?\})/dgv,patterns:[{include:"source.scala"}]}]},{begin:/\p{space}*\\begin\{(?:sympycode|sympyverbatim|sympyblock|sympyconcode|sympyconsole|sympyconverbatim)\*?\}(?:\[[a-zA-Z0-9_\-]*\])?(?=\[|\{|\p{space}*(?=$|\n))/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\p{space}*\\end\{(?:sympycode|sympyverbatim|sympyblock|sympyconcode|sympyconsole|sympyconverbatim)\*?\}/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"variable.parameter.function.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}}},{begin:/(?<=^|\n(?!$))(?=\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:sympycode|sympyverbatim|sympyblock|sympyconcode|sympyconsole|sympyconverbatim)\*?\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/\p{space}*\\begin\{([a-zA-Z]*code|lstlisting|minted|pyglist)\*?\}(?:\[[^\n]*\])?(?:\{[^\n]*\})?/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.function.embedded.latex",end:/\\end\{\1\}(?:\p{space}*\n)?()/dgv,name:"meta.embedded.block.generic.latex"},{begin:/((?:(?<=^|\n(?!$))\p{space}*)?\\begin\{((?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?))\})(?:\[[^\]]*\]){0,2}(?=\{)/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{\2\})()/dgv,patterns:[{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Aa][Ssſ][Yy]|[Aa][Ssſ][Yy][Mm][Pp][Tt][Oo][Tt][Ee])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.asy",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.asy"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Bb][Aa][Ssſ][Hh]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.shell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.shell"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Cc]|[Cc][Pp][Pp])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.cpp.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.cpp.embedded.latex"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Cc][Ssſ][Ssſ]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.css",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.css"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Gg][Nn][Uu][Pp][Ll][Oo][Tt]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.gnuplot",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.gnuplot"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Hh][Ssſ]|[Hh][Aa][Ssſ][KKk][Ee][Ll][Ll])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.haskell",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.haskell"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Hh][Tt][Mm][Ll]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"text.html",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"text.html.basic"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Jj][Aa][Vv][Aa]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.java",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.java"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Jj][Ll]|[Jj][Uu][Ll][Ii][Aa])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.julia",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.julia"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Jj][Ssſ]|[Jj][Aa][Vv][Aa][Ssſ][Cc][Rr][Ii][Pp][Tt])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.js",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.js"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Ll][Uu][Aa]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.lua"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Pp][Yy]|[Pp][Yy][Tt][Hh][Oo][Nn]|[Ssſ][Aa][Gg][Ee])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.python",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.python"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Rr][Bb]|[Rr][Uu][Bb][Yy])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.ruby",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.ruby"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Rr][Uu][Ssſ][Tt]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.rust",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.rust"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Tt][Ssſ]|[Tt][Yy][Pp][Ee][Ssſ][Cc][Rr][Ii][Pp][Tt])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.ts",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.ts"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Xx][Mm][Ll]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"text.xml",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"text.xml"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)[Yy][Aa][Mm][Ll]/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"source.yaml",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"source.yaml"}]}]},{begin:/(\{)(?:__|[a-z\p{space}]*)(?:[Tt][Ii][KKk][Zz]|[Tt][Ii][KKk][Zz][Pp][Ii][Cc][Tt][Uu][Rr][Ee])/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"text.tex.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{include:"text.tex.latex"}]}]},{begin:/(\{)/dgvy,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"}},end:/(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,patterns:[{begin:/(?:)/dgv,end:/(\})\p{space}*(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))(\p{space}*)/dgv,contentName:"meta.function.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\*?|PlaceholderFromCode\*?|SetPlaceholderCode\*?)\})/dgv,name:"meta.embedded.block.generic.latex"}]}]},{begin:/(?:(?<=^|\n(?!$))\p{space}*)?\\begin\{(terminal\*?)\}(?=\[|\{)/dgv,captures:{"0":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/\\end\{\1\}()/dgv,patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)([a-zA-Z]*)(\\})","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.end.latex"}},contentName:"meta.function.embedded.latex",end:/(?<=^|\n(?!$))\p{space}*(?=\\end\{terminal\*?\})/dgv,name:"meta.embedded.block.generic.latex"}]},{begin:/((\\)addplot)\+?(\[[^\[]*\])*\p{space}*(gnuplot)\p{space}*(\[[^\[]*\])*\p{space}*(\{)/dgv,captures:{"1":{name:"support.function.be.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"variable.parameter.function.latex"},"5":{patterns:[{include:"#optional-arg-bracket"}]},"6":{name:"punctuation.definition.arguments.begin.latex"}},end:/\p{space}*(\};)/dgv,patterns:[{begin:/%/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.latex"}},end:/(?=$|\n)\n?/dgv,name:"comment.line.percentage.latex"},{include:"source.gnuplot"}]},{begin:/(\p{space}*\\begin\{((?:fboxv|boxedv|V|v|spv)erbatim\*?)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"markup.raw.verbatim.latex",end:/(\\end\{\2\})()/dgv,name:"meta.function.verbatim.latex"},{begin:/(\p{space}*\\begin\{VerbatimOut\}\{[^\}]*\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"markup.raw.verbatim.latex",end:/(\\end\{VerbatimOut\})/dgv,name:"meta.function.verbatim.latex"},{begin:/(\p{space}*\\begin\{alltt\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"markup.raw.verbatim.latex",end:/(\\end\{alltt\})/dgv,name:"meta.function.alltt.latex",patterns:[{captures:{"1":{name:"punctuation.definition.function.latex"}},match:/(\\)[A-Za-z]+/dgv,name:"support.function.general.latex"}]},{begin:/(\p{space}*\\begin\{([Cc]omment)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"comment.line.percentage.latex",end:/(\\end\{\2\})()/dgv,name:"meta.function.verbatim.latex"},{begin:/\p{space}*((\\)(?:href|hyperref|hyperimage))(?=\[|\{)/dgv,beginCaptures:{"1":{name:"support.function.url.latex"}},comment:"Captures \\command[option]{url}{optional category}{optional name}{text}",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.function.hyperlink.latex",patterns:[{include:"#multiline-optional-arg-no-highlight"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(\\{)([^\\}]*)(\\})(?:\\{[^\\}]*\\}){2}?(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"markup.underline.link.latex"},"3":{name:"punctuation.definition.arguments.end.latex"},"4":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"meta.variable.parameter.function.latex",end:/(?=\})/dgv,patterns:[{include:"$self"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?<=\\]))(?:(\\{)[^\\}]*(\\}))?(\\{)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.latex"},"2":{name:"punctuation.definition.arguments.end.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"meta.variable.parameter.function.latex",end:/(?=\})/dgv,patterns:[{include:"$self"}]}]},{captures:{"1":{name:"support.function.url.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"},"5":{name:"punctuation.definition.arguments.end.latex"},"'":{name:"markup.underline.link.latex"}},match:/\p{space}*((\\)url)(\{)([^\}]*)(\})/dgv,name:"meta.function.link.url.latex"},{captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},comment:"These two patterns match the \\begin{document} and \\end{document} commands, so that the environment matching pattern following them will ignore those commands.",match:/(\p{space}*\\begin\{document\})/dgv,name:"meta.function.begin-document.latex"},{captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},match:/(\p{space}*\\end\{document\})/dgv,name:"meta.function.end-document.latex"},{begin:/\p{space}*((\\)begin)(\{)((?:\+?array|equation|(?:IEEE)?eqnarray|multline|align|aligned|alignat|alignedat|flalign|flaligned|flalignat|split|gather|gathered|\+?cases|(?:display)?math|\+?[a-zA-Z]*matrix|[pbBvV]?NiceMatrix|[pbBvV]?NiceArray|(?:arg)?(?:mini|maxi))(?:\*|!)?)(\})(\p{space}*\n)?/dgv,captures:{"1":{name:"support.function.be.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"},"4":{name:"variable.parameter.function.latex"},"5":{name:"punctuation.definition.arguments.end.latex"}},contentName:"meta.math.block.latex support.class.math.block.environment.latex",end:/\p{space}*((\\)end)(\{)((?!))(\})(?:\p{space}*\n)?/dgv,name:"meta.function.environment.math.latex",patterns:[{match:/(?<!\\)&/dgv,name:"keyword.control.equation.align.latex"},{match:/\\\\/dgv,name:"keyword.control.equation.newline.latex"},{include:"#definition-label"},{include:"text.tex#math"},{include:"$self"}]},{begin:/\p{space}*(\\begin\{empheq\}(?:\[[^\n]*\])?)/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.math.block.latex support.class.math.block.environment.latex",end:/\p{space}*(\\end\{empheq\})/dgv,name:"meta.function.environment.math.latex",patterns:[{match:/(?<!\\)&/dgv,name:"keyword.control.equation.align.latex"},{match:/\\\\/dgv,name:"keyword.control.equation.newline.latex"},{include:"#definition-label"},{include:"text.tex#math"},{include:"$self"}]},{begin:/(\p{space}*\\begin\{(tabular[xy\*]?|xltabular|longtable|(?:long)?tabu|(?:long|tall)?tblr|NiceTabular[X\*]?|booktabs)\}(\p{space}*\n)?)/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.data.environment.tabular.latex",end:/(\p{space}*\\end\{((?!))\}(?:\p{space}*\n)?)/dgv,name:"meta.function.environment.tabular.latex",patterns:[{match:/(?<!\\)&/dgv,name:"keyword.control.table.cell.latex"},{match:/\\\\/dgv,name:"keyword.control.table.newline.latex"},{include:"$self"}]},{begin:/(\p{space}*\\begin\{(itemize|enumerate|description|list)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{\2\}(?:\p{space}*\n)?)()/dgv,name:"meta.function.environment.list.latex",patterns:[{include:"$self"}]},{begin:/(\p{space}*\\begin\{tikzpicture\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{tikzpicture\}(?:\p{space}*\n)?)/dgv,name:"meta.function.environment.latex.tikz",patterns:[{include:"$self"}]},{begin:/(\p{space}*\\begin\{frame\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{frame\})/dgv,name:"meta.function.environment.frame.latex",patterns:[{include:"$self"}]},{begin:/(\p{space}*\\begin\{(mpost\*?)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{\2\}(?:\p{space}*\n)?)()/dgv,name:"meta.function.environment.latex.mpost"},{begin:/(\p{space}*\\begin\{markdown\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},contentName:"meta.embedded.markdown_latex_combined",end:/(\\end\{markdown\})/dgv,patterns:[{include:"text.tex.markdown_latex_combined"}]},{begin:/(\p{space}*\\begin\{([\p{L}\p{M}\p{N}\p{Pc}]+\*?)\})/dgv,captures:{"1":{patterns:[{include:"#begin-env-tokenizer"}]}},end:/(\\end\{\2\}(?:\p{space}*\n)?)()/dgv,name:"meta.function.environment.general.latex",patterns:[{include:"$self"}]},{captures:{"1":{name:"storage.type.function.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.begin.latex"},"4":{name:"support.function.general.latex"},"5":{name:"punctuation.definition.function.latex"},"6":{name:"punctuation.definition.end.latex"}},match:/((\\)(?:newcommand|renewcommand|(?:re)?newrobustcmd|DeclareRobustCommand))\*?(\{)((\\)[^\}]*)(\})/dgv},{begin:/((\\)marginpar)((?:\[[^\[]*?\])*)(\{)/dgv,beginCaptures:{"1":{name:"support.function.marginpar.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.marginpar.begin.latex"}},contentName:"meta.paragraph.margin.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.marginpar.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)footnote)((?:\[[^\[]*?\])*)(\{)/dgv,beginCaptures:{"1":{name:"support.function.footnote.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.footnote.begin.latex"}},contentName:"entity.name.footnote.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.footnote.end.latex"}},patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)emph)(\{)/dgv,beginCaptures:{"1":{name:"support.function.emph.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.emph.begin.latex"}},contentName:"markup.italic.emph.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.emph.end.latex"}},name:"meta.function.emph.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)textit)(\{)/dgv,captures:{"1":{name:"support.function.textit.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.textit.begin.latex"}},comment:"We put the keyword in a capture and name this capture, so that disabling spell checking for “keyword” won't be inherited by the argument to \\textit{...}.\n\nPut specific matches for particular LaTeX keyword.functions before the last two more general functions",contentName:"markup.italic.textit.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.textit.end.latex"}},name:"meta.function.textit.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)textbf)(\{)/dgv,captures:{"1":{name:"support.function.textbf.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.textbf.begin.latex"}},contentName:"markup.bold.textbf.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.textbf.end.latex"}},name:"meta.function.textbf.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{begin:/((\\)texttt)(\{)/dgv,captures:{"1":{name:"support.function.texttt.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.texttt.begin.latex"}},contentName:"markup.raw.texttt.latex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.texttt.end.latex"}},name:"meta.function.texttt.latex",patterns:[{include:"text.tex#braces"},{include:"$self"}]},{captures:{"0":{name:"keyword.other.item.latex"},"1":{name:"punctuation.definition.keyword.latex"}},match:/(\\)item\b/dgv,name:"meta.scope.item.latex"},{begin:/((\\)(?:[aA]uto|foot|full|no|ref|short|[tT]ext|[pP]aren|[sS]mart)?[cC]ite(?:al)?(?:p|s|t|author|year(?:par)?|title)?[ANP]*\*?)((?:(?:\([^\)]*\)){0,2}(?:\[[^\]]*\]){0,2}\{[\p{Alphabetic}\p{Number}_\:\.\-]*\})*)(<[^\]\<\>]*>)?((?:\[[^\]]*\])*)(\{)/dgv,captures:{"1":{name:"keyword.control.cite.latex"},"2":{name:"punctuation.definition.keyword.latex"},"3":{patterns:[{include:"#autocites-arg"}]},"4":{patterns:[{include:"#optional-arg-angle-no-highlight"}]},"5":{patterns:[{include:"#optional-arg-bracket-no-highlight"}]},"6":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.citation.latex",patterns:[{captures:{"1":{name:"comment.line.percentage.tex"},"2":{name:"punctuation.definition.comment.tex"}},match:/((%)[^\n]*)(?=$|\n)/dgv},{match:/[\p{Alphabetic}\p{Number}\:\.\-]+/dgv,name:"constant.other.reference.citation.latex"}]},{begin:/((\\)bibentry)(\{)/dgv,captures:{"1":{name:"keyword.control.cite.latex"},"2":{name:"punctuation.definition.keyword.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.citation.latex",patterns:[{match:/[\p{Alphabetic}\p{Number}\:\.]+/dgv,name:"constant.other.reference.citation.latex"}]},{begin:/((\\)[\p{L}\p{M}\p{N}\p{Pc}]*[rR]ef\*?)(?:\[[^\]]*\])?(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.ref.latex"},"2":{name:"punctuation.definition.keyword.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.reference.label.latex",patterns:[{match:/[\p{Alphabetic}\p{Number}\.\,\:\/\*\!\^_\-]/dgv,name:"constant.other.reference.label.latex"}]},{include:"#definition-label"},{begin:/((\\)(?:verb|Verb|spverb)\*?)\p{space}*((\\)scantokens)(\{)/dgv,beginCaptures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"support.function.verb.latex"},"4":{name:"punctuation.definition.verb.latex"},"5":{name:"punctuation.definition.begin.latex"}},contentName:"markup.raw.verb.latex",end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.latex"}},name:"meta.function.verb.latex",patterns:[{include:"$self"}]},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.verb.latex"},"4":{name:"markup.raw.verb.latex"},"5":{name:"punctuation.definition.verb.latex"}},match:/((\\)(?:verb|Verb|spverb)\*?)\p{space}*((?<=\p{space})\P{space}|[^a-zA-Z])([^\n]*?)(\3|(?=$|\n))/dgv,name:"meta.function.verb.latex"},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.arguments.begin.latex"},"5":{name:"punctuation.definition.arguments.end.latex"},"6":{name:"punctuation.definition.verb.latex"},"7":{name:"markup.raw.verb.latex"},"8":{name:"punctuation.definition.verb.latex"},"9":{name:"punctuation.definition.verb.latex"},"10":{name:"markup.raw.verb.latex"},"11":{name:"punctuation.definition.verb.latex"}},match:/((\\)(?:mint|mintinline))((?:\[[^\[]*?\])?)(\{)[a-zA-Z]*(\})(?:([^a-zA-Z\{])([^\n]*?)(\6)|(\{)([^\n]*?)(\}))/dgv,name:"meta.function.verb.latex"},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.verb.latex"},"5":{name:"markup.raw.verb.latex"},"6":{name:"punctuation.definition.verb.latex"},"7":{name:"punctuation.definition.verb.latex"},"8":{name:"markup.raw.verb.latex"},"9":{name:"punctuation.definition.verb.latex"}},match:/((\\)[a-z]+inline)((?:\[[^\[]*?\])?)(?:([^a-zA-Z\{])([^\n]*?)(\4)|(\{)([^\n]*?)(\}))/dgv,name:"meta.function.verb.latex"},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.verb.latex"},"5":{name:"source.python",patterns:[{include:"source.python"}]},"6":{name:"punctuation.definition.verb.latex"},"7":{name:"punctuation.definition.verb.latex"},"8":{name:"source.python",patterns:[{include:"source.python"}]},"9":{name:"punctuation.definition.verb.latex"}},match:/((\\)(?:(?:py|pycon|pylab|pylabcon|sympy|sympycon)[cv]?|pyq|pycq|pyif))((?:\[[^\[]*?\])?)(?:([^a-zA-Z\{])([^\n]*?)(\4)|(\{)([^\n]*?)(\}))/dgv,name:"meta.function.verb.latex"},{captures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.verb.latex"},"5":{name:"source.julia",patterns:[{include:"source.julia"}]},"6":{name:"punctuation.definition.verb.latex"},"7":{name:"punctuation.definition.verb.latex"},"8":{name:"source.julia",patterns:[{include:"source.julia"}]},"9":{name:"punctuation.definition.verb.latex"}},match:/((\\)(?:jl|julia)[cv]?)((?:\[[^\[]*?\])?)(?:([^a-zA-Z\{])([^\n]*?)(\4)|(\{)([^\n]*?)(\}))/dgv,name:"meta.function.verb.latex"},{begin:/((\\)(?:directlua|luadirect))(\{)/dgv,beginCaptures:{"1":{name:"support.function.verb.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"}},contentName:"source.lua",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},patterns:[{include:"source.lua"}]},{match:/\\(?:newline|pagebreak|clearpage|linebreak|pause)\b/dgv,name:"keyword.control.layout.latex"},{begin:/\\\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.latex"}},end:/\\\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.latex"}},name:"meta.math.block.latex support.class.math.block.environment.latex",patterns:[{include:"text.tex#math"},{include:"$self"}]},{begin:/\$\$/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.latex"}},end:/\$\$/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.latex"}},name:"meta.math.block.latex support.class.math.block.environment.latex",patterns:[{match:/\\\$/dgv,name:"constant.character.escape.latex"},{include:"text.tex#math"},{include:"$self"}]},{begin:/\$/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.tex"}},end:/\$/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.tex"}},name:"meta.math.block.tex support.class.math.block.tex",patterns:[{match:/\\\$/dgv,name:"constant.character.escape.latex"},{include:"text.tex#math"},{include:"$self"}]},{begin:/\\\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.latex"}},end:/\\\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.latex"}},name:"meta.math.block.latex support.class.math.block.environment.latex",patterns:[{include:"text.tex#math"},{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.constant.latex"}},match:/(\\)(text(s(terling|ixoldstyle|urd|e(ction|venoldstyle|rvicemark))|yen|n(ineoldstyle|umero|aira)|c(ircledP|o(py(left|right)|lonmonetary)|urrency|e(nt(oldstyle)?|lsius))|t(hree(superior|oldstyle|quarters(emdash)?)|i(ldelow|mes)|w(o(superior|oldstyle)|elveudash)|rademark)|interrobang(down)?|zerooldstyle|o(hm|ne(superior|half|oldstyle|quarter)|penbullet|rd(feminine|masculine))|d(i(scount|ed|v(orced)?)|o(ng|wnarrow|llar(oldstyle)?)|egree|agger(dbl)?|blhyphen(char)?)|uparrow|p(ilcrow|e(so|r(t(housand|enthousand)|iodcentered))|aragraph|m)|e(stimated|ightoldstyle|uro)|quotes(traight(dblbase|base)|ingle)|f(iveoldstyle|ouroldstyle|lorin|ractionsolidus)|won|l(not|ira|e(ftarrow|af)|quill|angle|brackdbl)|a(s(cii(caron|dieresis|acute|grave|macron|breve)|teriskcentered)|cutedbl)|r(ightarrow|e(cipe|ferencemark|gistered)|quill|angle|brackdbl)|g(uarani|ravedbl)|m(ho|inus|u(sicalnote)?|arried)|b(igcircle|orn|ullet|lank|a(ht|rdbl)|rokenbar)))\b/dgv,name:"constant.character.latex"},{captures:{"1":{name:"punctuation.definition.variable.latex"}},match:/(\\)(?:[cgl]_+[_\p{Alphabetic}\@]+_[a-z]+|[qs]_[_\p{Alphabetic}\@]+[\p{Alphabetic}\@])/dgv,name:"variable.other.latex3.latex"},{captures:{"1":{name:"punctuation.definition.column-specials.begin.latex"},"2":{name:"punctuation.definition.column-specials.end.latex"}},match:/(?:<|>)(\{)\$(\})/dgv,name:"meta.column-specials.latex"},{include:"text.tex"}],repository:{"autocites-arg":{patterns:[{captures:{"1":{patterns:[{include:"#optional-arg-parenthesis-no-highlight"}]},"2":{patterns:[{include:"#optional-arg-bracket-no-highlight"}]},"3":{name:"punctuation.definition.arguments.begin.latex"},"4":{name:"constant.other.reference.citation.latex"},"5":{name:"punctuation.definition.arguments.end.latex"},"6":{patterns:[{include:"#autocites-arg"}]}},match:/((?:\([^\)]*\)){0,2})((?:\[[^\]]*\]){0,2})(\{)([\p{Alphabetic}\p{Number}_\:\.\-]+)(\})([^\n]*)/dgv}]},"begin-env-tokenizer":{captures:{"1":{name:"support.function.be.latex"},"2":{name:"punctuation.definition.function.latex"},"3":{name:"punctuation.definition.arguments.begin.latex"},"4":{name:"variable.parameter.function.latex"},"5":{name:"punctuation.definition.arguments.end.latex"},"6":{name:"punctuation.definition.arguments.optional.begin.latex"},"7":{patterns:[{include:"$self"}]},"8":{name:"punctuation.definition.arguments.optional.end.latex"},"9":{name:"punctuation.definition.arguments.begin.latex"},"10":{name:"variable.parameter.function.latex"},"11":{name:"punctuation.definition.arguments.end.latex"}},match:/\p{space}*((\\)(?:begin|end))(\{)([a-zA-Z]*\*?)(\})(?:(\[)([^\]]*)(\])){0,2}(?:(\{)([^\{\}]*)(\}))?/dgv},"definition-label":{begin:/((\\)z?label)((?:\[[^\[]*?\])*)(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.label.latex"},"2":{name:"punctuation.definition.keyword.latex"},"3":{patterns:[{include:"#optional-arg-bracket"}]},"4":{name:"punctuation.definition.arguments.begin.latex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.latex"}},name:"meta.definition.label.latex",patterns:[{match:/[\p{Alphabetic}\p{Number}\.\,\:\/\*\!\^_\-]/dgv,name:"variable.parameter.definition.label.latex"}]},"multiline-optional-arg":{begin:/\[/dgvy,beginCaptures:{"0":{name:"punctuation.definition.arguments.optional.begin.latex"}},contentName:"variable.parameter.function.latex",end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.optional.end.latex"}},name:"meta.parameter.optional.latex",patterns:[{include:"$self"}]},"multiline-optional-arg-no-highlight":{begin:/\[/dgvy,beginCaptures:{"0":{name:"punctuation.definition.arguments.optional.begin.latex"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.optional.end.latex"}},name:"meta.parameter.optional.latex",patterns:[{include:"$self"}]},"optional-arg-angle-no-highlight":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(<)[^\<]*?(>)/dgv,name:"meta.parameter.optional.latex"}]},"optional-arg-bracket":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(\[)([^\[]*?)(\])/dgv,name:"meta.parameter.optional.latex"}]},"optional-arg-bracket-no-highlight":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(\[)[^\[]*?(\])/dgv,name:"meta.parameter.optional.latex"}]},"optional-arg-parenthesis":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"variable.parameter.function.latex"},"3":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(\()([^\(]*?)(\))/dgv,name:"meta.parameter.optional.latex"}]},"optional-arg-parenthesis-no-highlight":{patterns:[{captures:{"1":{name:"punctuation.definition.arguments.optional.begin.latex"},"2":{name:"punctuation.definition.arguments.optional.end.latex"}},match:/(\()[^\(]*?(\))/dgv,name:"meta.parameter.optional.latex"}]}},scopeName:"text.tex.latex",embeddedLangs:["tex"],aliases:undefined,embeddedLangsLazy:["shellscript","css","gnuplot","haskell","html","java","julia","javascript","lua","python","ruby","rust","typescript","xml","yaml","scala"]})
|
|
4
5
|
|
|
5
6
|
export default [
|
|
6
7
|
...tex,
|
package/dist/logo.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Logo",fileTypes:[],name:"logo",patterns:[{match:/(?<=^|\n(?!$))to [\p{L}\p{M}\p{N}\p{Pc}\.]+/dgv,name:"entity.name.function.logo"},{match:/continue|do\.until|do\.while|end|for(each)?|if(else|falsetrue|)|repeat|stop|until/dgv,name:"keyword.control.logo"},{match:/\b(\.defmacro|\.eq|\.macro|\.maybeoutput|\.setbf|\.setfirst|\.setitem|\.setsegmentsize|allopen|allowgetset|and|apply|arc|arctan|arity|array|arrayp|arraytolist|ascii|ashift|back|background|backslashedp|beforep|bitand|bitnot|bitor|bitxor|buried|buriedp|bury|buryall|buryname|butfirst|butfirsts|butlast|bye|cascade|case|caseignoredp|catch|char|clean|clearscreen|cleartext|close|closeall|combine|cond|contents|copydef|cos|count|crossmap|cursor|define|definedp|dequeue|difference|dribble|edall|edit|editfile|edn|edns|edpl|edpls|edps|emptyp|eofp|epspict|equalp|erall|erase|erasefile|ern|erns|erpl|erpls|erps|erract|error|exp|fence|filep|fill|filter|find|first|firsts|forever|form|forward|fput|fullprintp|fullscreen|fulltext|gc|gensym|global|goto|gprop|greaterp|heading|help|hideturtle|home|ignore|int|invoke|iseq|item|keyp|label|last|left|lessp|list|listp|listtoarray|ln|load|loadnoisily|loadpict|local|localmake|log10|lowercase|lput|lshift|macroexpand|macrop|make|map|map[^\n]se|mdarray|mditem|mdsetitem|member|memberp|minus|modulo|name|namelist|namep|names|nodes|nodribble|norefresh|not|numberp|openappend|openread|openupdate|openwrite|or|output|palette|parse|pause|pen|pencolor|pendown|pendownp|penerase|penmode|penpaint|penreverse|pensize|penup|pick|plist|plistp|plists|pllist|po|poall|pon|pons|pop|popl|popls|pops|pos|pot|pots|power|pprop|prefix|primitivep|print|printdepthlimit|printwidthlimit|procedurep|procedures|product|push|queue|quoted|quotient|radarctan|radcos|radsin|random|rawascii|readchar|readchars|reader|readlist|readpos|readrawline|readword|redefp|reduce|refresh|remainder|remdup|remove|remprop|repcount|rerandom|reverse|right|round|rseq|run|runparse|runresult|save|savel|savepict|screenmode|scrunch|sentence|setbackground|setcursor|seteditor|setheading|sethelploc|setitem|setlibloc|setmargins|setpalette|setpen|setpencolor|setpensize|setpos|setprefix|setread|setreadpos|setscrunch|settemploc|settextcolor|setwrite|setwritepos|setx|setxy|sety|shell|show|shownp|showturtle|sin|splitscreen|sqrt|standout|startup|step|stepped|steppedp|substringp|sum|tag|test|text|textscreen|thing|throw|towards|trace|traced|tracedp|transfer|turtlemode|type|unbury|unburyall|unburyname|unburyonedit|unstep|untrace|uppercase|usealternatenam|wait|while|window|word|wordp|wrap|writepos|writer|xcor|ycor)\b/dgv,name:"keyword.other.logo"},{captures:{"1":{name:"punctuation.definition.variable.logo"}},match:/(:)(?:\|[^\|]*\||[\-\p{L}\p{M}\p{N}\p{Pc}\.]*)+/dgv,name:"variable.parameter.logo"},{match:/"(?:\|[^\|]*\||[\-\p{L}\p{M}\p{N}\p{Pc}\.]*)+/dgv,name:"string.other.word.logo"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=;)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.logo"}},end
|
|
3
|
+
const lang = Object.freeze({displayName:"Logo",fileTypes:[],name:"logo",patterns:[{match:/(?<=^|\n(?!$))to [\p{L}\p{M}\p{N}\p{Pc}\.]+/dgv,name:"entity.name.function.logo"},{match:/continue|do\.until|do\.while|end|for(each)?|if(else|falsetrue|)|repeat|stop|until/dgv,name:"keyword.control.logo"},{match:/\b(\.defmacro|\.eq|\.macro|\.maybeoutput|\.setbf|\.setfirst|\.setitem|\.setsegmentsize|allopen|allowgetset|and|apply|arc|arctan|arity|array|arrayp|arraytolist|ascii|ashift|back|background|backslashedp|beforep|bitand|bitnot|bitor|bitxor|buried|buriedp|bury|buryall|buryname|butfirst|butfirsts|butlast|bye|cascade|case|caseignoredp|catch|char|clean|clearscreen|cleartext|close|closeall|combine|cond|contents|copydef|cos|count|crossmap|cursor|define|definedp|dequeue|difference|dribble|edall|edit|editfile|edn|edns|edpl|edpls|edps|emptyp|eofp|epspict|equalp|erall|erase|erasefile|ern|erns|erpl|erpls|erps|erract|error|exp|fence|filep|fill|filter|find|first|firsts|forever|form|forward|fput|fullprintp|fullscreen|fulltext|gc|gensym|global|goto|gprop|greaterp|heading|help|hideturtle|home|ignore|int|invoke|iseq|item|keyp|label|last|left|lessp|list|listp|listtoarray|ln|load|loadnoisily|loadpict|local|localmake|log10|lowercase|lput|lshift|macroexpand|macrop|make|map|map[^\n]se|mdarray|mditem|mdsetitem|member|memberp|minus|modulo|name|namelist|namep|names|nodes|nodribble|norefresh|not|numberp|openappend|openread|openupdate|openwrite|or|output|palette|parse|pause|pen|pencolor|pendown|pendownp|penerase|penmode|penpaint|penreverse|pensize|penup|pick|plist|plistp|plists|pllist|po|poall|pon|pons|pop|popl|popls|pops|pos|pot|pots|power|pprop|prefix|primitivep|print|printdepthlimit|printwidthlimit|procedurep|procedures|product|push|queue|quoted|quotient|radarctan|radcos|radsin|random|rawascii|readchar|readchars|reader|readlist|readpos|readrawline|readword|redefp|reduce|refresh|remainder|remdup|remove|remprop|repcount|rerandom|reverse|right|round|rseq|run|runparse|runresult|save|savel|savepict|screenmode|scrunch|sentence|setbackground|setcursor|seteditor|setheading|sethelploc|setitem|setlibloc|setmargins|setpalette|setpen|setpencolor|setpensize|setpos|setprefix|setread|setreadpos|setscrunch|settemploc|settextcolor|setwrite|setwritepos|setx|setxy|sety|shell|show|shownp|showturtle|sin|splitscreen|sqrt|standout|startup|step|stepped|steppedp|substringp|sum|tag|test|text|textscreen|thing|throw|towards|trace|traced|tracedp|transfer|turtlemode|type|unbury|unburyall|unburyname|unburyonedit|unstep|untrace|uppercase|usealternatenam|wait|while|window|word|wordp|wrap|writepos|writer|xcor|ycor)\b/dgv,name:"keyword.other.logo"},{captures:{"1":{name:"punctuation.definition.variable.logo"}},match:/(:)(?:\|[^\|]*\||[\-\p{L}\p{M}\p{N}\p{Pc}\.]*)+/dgv,name:"variable.parameter.logo"},{match:/"(?:\|[^\|]*\||[\-\p{L}\p{M}\p{N}\p{Pc}\.]*)+/dgv,name:"string.other.word.logo"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=;)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.logo"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/;/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.logo"}},end:/\n/dgv,name:"comment.line.semicolon.logo"}]}],scopeName:"source.logo",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/lua.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
import c from './c.mjs'
|
|
3
3
|
|
|
4
|
-
const lang = Object.freeze({displayName:"Lua",name:"lua",patterns:[{begin:/\b(?:(local)\p{space}+)?(function)\b(?![\,\:])/dgv,beginCaptures:{"1":{name:"keyword.local.lua"},"2":{name:"keyword.control.lua"}},end:/(?<=[\)\-\{\}\[\]"'])/dgv,name:"meta.function.lua",patterns:[{include:"#comment"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.lua"}},end:/(\))|(?=[\-\.\{\}\[\]"'])/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.finish.lua"}},name:"meta.parameter.lua",patterns:[{include:"#comment"},{match:/[a-zA-Z_][a-zA-Z0-9_]*/dgv,name:"variable.parameter.function.lua"},{match:/,/dgv,name:"punctuation.separator.arguments.lua"},{begin:/:/dgv,beginCaptures:{"0":{name:"punctuation.separator.arguments.lua"}},end:/(?=[\)\,])/dgv,patterns:[{include:"#emmydoc.type"}]}]},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b\p{space}*(?=:)/dgv,name:"entity.name.class.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/dgv,name:"entity.name.function.lua"}]},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])0[xX][0-9A-Fa-f]+(\.[0-9A-Fa-f]*)?([eE]-?\p{Nd}*)?([pP][\-\+]\p{Nd}+)?/dgv,name:"constant.numeric.float.hexadecimal.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])0[xX]\.[0-9A-Fa-f]+([eE]-?\p{Nd}*)?([pP][\-\+]\p{Nd}+)?/dgv,name:"constant.numeric.float.hexadecimal.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])0[xX][0-9A-Fa-f]+(?![pPeE\.0-9])/dgv,name:"constant.numeric.integer.hexadecimal.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])\p{Nd}+(\.\p{Nd}*)?([eE]-?\p{Nd}*)?/dgv,name:"constant.numeric.float.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])\.\p{Nd}+([eE]-?\p{Nd}*)?/dgv,name:"constant.numeric.float.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])\p{Nd}+(?![pPeE\.0-9])/dgv,name:"constant.numeric.integer.lua"},{include:"#string"},{captures:{"1":{name:"punctuation.definition.comment.lua"}},match:/^(#!)[^\n]*(?=$|\n)\n?/dgv,name:"comment.line.shebang.lua"},{include:"#comment"},{captures:{"1":{name:"keyword.control.goto.lua"},"2":{name:"string.tag.lua"}},match:/\b(goto)\p{space}+([a-zA-Z_][a-zA-Z0-9_]*)/dgv},{captures:{"1":{name:"punctuation.section.embedded.begin.lua"},"2":{name:"punctuation.section.embedded.end.lua"}},match:/(::)\p{space}*[a-zA-Z_][a-zA-Z0-9_]*\p{space}*(::)/dgv,name:"string.tag.lua"},{captures:{"0":{name:"storage.type.attribute.lua"}},match:/<\p{space}*(const|close)\p{space}*>/dgv},{match:/<[a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*>/dgv,name:"storage.type.generic.lua"},{match:/\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\b/dgv,name:"keyword.control.lua"},{match:/\b(local)\b/dgv,name:"keyword.local.lua"},{match:/\b(function)\b(?![\,\:])/dgv,name:"keyword.control.lua"},{match:/(?<![^\.]\.|:)\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\.(pi|huge|maxinteger|mininteger)|utf8\.charpattern|io\.(stdin|stdout|stderr)|package\.(config|cpath|loaded|loaders|path|preload|searchers))\b|(?<![\.])\.{3}(?!\.)/dgv,name:"constant.language.lua"},{match:/(?<![^\.]\.|:)\b(self)\b/dgv,name:"variable.language.self.lua"},{match:/(?<![^\.]\.|:)\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\b(?!\p{space}*=(?!=))/dgv,name:"support.function.lua"},{match:/(?<![^\.]\.|:)\b(async)\b(?!\p{space}*=(?!=))/dgv,name:"entity.name.tag.lua"},{match:/(?<![^\.]\.|:)\b(coroutine\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(loadlib|seeall|searchpath)|debug\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\.(char|codes|codepoint|len|offset))\b(?!\p{space}*=(?!=))/dgv,name:"support.function.library.lua"},{match:/\b(and|or|not|\|\||&&|!)\b/dgv,name:"keyword.operator.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?=\p{space}*(?:[\(\{"']|\[\[))/dgv,name:"support.function.any-method.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?=\p{space}*\??:)/dgv,name:"entity.name.class.lua"},{match:/(?<=[^\.]\.|:)\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?!\p{space}*=\p{space}*\b(function)\b)/dgv,name:"entity.other.attribute.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?!\p{space}*=\p{space}*\b(function)\b)/dgv,name:"variable.other.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?=\p{space}*=\p{space}*\b(function)\b)/dgv,name:"entity.name.function.lua"},{match:/\+|-|%|#|\*|\/|\^|==?|~=|!=|<=?|>=?|(?<!\.)\.{2}(?!\.)/dgv,name:"keyword.operator.lua"}],repository:{comment:{patterns:[{begin:/((?<=^|\n(?!$))[ \t]+)?(?=--)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.lua"}},end:new EmulatedRegExp("((?!(?<=^|\\n(?!$)))[ \\t]+\\n)?","dgv",{"strategy":"not_search_start"}),endCaptures:{"1":{name:"punctuation.whitespace.comment.trailing.lua"}},patterns:[{begin:/--\[(=*)\[@@@/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.lua"}},end:/(--)?\]\1\]/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.lua"}},name:"",patterns:[{include:"source.lua"}]},{begin:/--\[(=*)\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.lua"}},end:/(--)?\]\1\]/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.lua"}},name:"comment.block.lua",patterns:[{include:"#emmydoc"},{include:"#ldoc_tag"}]},{begin:/----/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.lua"}},end:/\n/dgv,name:"comment.line.double-dash.lua"},{begin:/---/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.lua"}},end:/\n/dgv,name:"comment.line.double-dash.documentation.lua",patterns:[{include:"#emmydoc"},{include:"#ldoc_tag"}]},{begin:/--/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.lua"}},end:/\n/dgv,name:"comment.line.double-dash.lua",patterns:[{include:"#ldoc_tag"}]}]},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.lua"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.lua"}},name:"comment.block.lua",patterns:[{include:"#emmydoc"},{include:"#ldoc_tag"}]}]},emmydoc:{patterns:[{begin:/(?<=---)[ \t]*@class/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{match:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,name:"support.class.lua"},{match:/:|,/dgv,name:"keyword.operator.lua"}]},{begin:/(?<=---)[ \t]*@enum/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,beginCaptures:{"0":{name:"variable.lua"}},end:/(?=\n)/dgv}]},{begin:/(?<=---)[ \t]*@type/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@alias/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,beginCaptures:{"0":{name:"variable.lua"}},end:/(?=[\n\#])/dgv,patterns:[{include:"#emmydoc.type"}]}]},{begin:/(?<=---)[ \t]*(@operator)\p{space}*(\b[a-z]+)?/dgv,beginCaptures:{"1":{name:"storage.type.annotation.lua"},"2":{name:"support.function.library.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@cast/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,beginCaptures:{"0":{name:"variable.other.lua"}},end:/(?=\n)/dgv,patterns:[{include:"#emmydoc.type"},{match:/([\+-\|])/dgv,name:"keyword.operator.lua"}]}]},{begin:/(?<=---)[ \t]*@param/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(\??)/dgv,beginCaptures:{"1":{name:"entity.name.variable.lua"},"2":{name:"keyword.operator.lua"}},end:/(?=[\n\#])/dgv,patterns:[{include:"#emmydoc.type"}]}]},{begin:/(?<=---)[ \t]*@return/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{match:/\?/dgv,name:"keyword.operator.lua"},{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@field/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/(\b([a-zA-Z_][a-zA-Z0-9_]*)\b|(\[))(\??)/dgv,beginCaptures:{"2":{name:"entity.name.variable.lua"},"3":{name:"keyword.operator.lua"}},end:/(?=[\n\#])/dgv,patterns:[{include:"#string"},{include:"#emmydoc.type"},{match:/\]/dgv,name:"keyword.operator.lua"}]}]},{begin:/(?<=---)[ \t]*@generic/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/dgv,beginCaptures:{"0":{name:"storage.type.generic.lua"}},end:/(?=\n)|(,)/dgv,endCaptures:{"0":{name:"keyword.operator.lua"}},patterns:[{match:/:/dgv,name:"keyword.operator.lua"},{include:"#emmydoc.type"}]}]},{begin:/(?<=---)[ \t]*@vararg/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@overload/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@deprecated/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@meta/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@private/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@protected/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@package/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@version/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{match:/\b(5\.1|5\.2|5\.3|5\.4|JIT)\b/dgv,name:"support.class.lua"},{match:/,|>|</dgv,name:"keyword.operator.lua"}]},{begin:/(?<=---)[ \t]*@see/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{match:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,name:"support.class.lua"},{match:/#/dgv,name:"keyword.operator.lua"}]},{begin:/(?<=---)[ \t]*@diagnostic/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/([a-zA-Z_\-0-9]+)[ \t]*(:)?/dgv,beginCaptures:{"1":{name:"keyword.other.unit"},"2":{name:"keyword.operator.unit"}},end:/(?=\n)/dgv,patterns:[{match:/\b([a-zA-Z_\*][a-zA-Z0-9_\-]*)/dgv,name:"support.class.lua"},{match:/,/dgv,name:"keyword.operator.lua"}]}]},{begin:/(?<=---)[ \t]*@module/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#string"}]},{match:/(?<=---)[ \t]*@(async|nodiscard)/dgv,name:"storage.type.annotation.lua"},{begin:/(?<=---)\|\p{space}*[\>\+]?/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#string"}]}]},"emmydoc.type":{patterns:[{begin:/\bfun\b/dgv,beginCaptures:{"0":{name:"keyword.control.lua"}},end:/(?=[\p{space}\#])/dgv,patterns:[{match:/[\(\)\,\:\?][ \t]*/dgv,name:"keyword.operator.lua"},{match:/([a-zA-Z_][a-zA-Z0-9_\.\*\[\]\<\>\,\-]*)(?<!,)[ \t]*(?=\??:)/dgv,name:"entity.name.variable.lua"},{include:"#emmydoc.type"},{include:"#string"}]},{match:/<[a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*>/dgv,name:"storage.type.generic.lua"},{match:/\basync\b/dgv,name:"entity.name.tag.lua"},{match:/[\{\}\:\,\?\|\`][ \t]*/dgv,name:"keyword.operator.lua"},{begin:/(?=[a-zA-Z_\.\*"'\[])/dgv,end:/(?=[\p{space}\)\,\?\:\}\|\#])/dgv,patterns:[{match:/([a-zA-Z0-9_\.\*\[\]\<\>\,\-]+)(?<!,)[ \t]*/dgv,name:"support.type.lua"},{match:/(\.\.\.)[ \t]*/dgv,name:"constant.language.lua"},{include:"#string"}]}]},escaped_char:{patterns:[{match:/\\[abfnrtv\\"'\n]/dgv,name:"constant.character.escape.lua"},{match:/\\z[\n\t ]*/dgv,name:"constant.character.escape.lua"},{match:/\\\p{Nd}{1,3}/dgv,name:"constant.character.escape.byte.lua"},{match:/\\x[0-9A-Fa-f][0-9A-Fa-f]/dgv,name:"constant.character.escape.byte.lua"},{match:/\\u\{[0-9A-Fa-f]+\}/dgv,name:"constant.character.escape.unicode.lua"},{match:/\\[^\n]/dgv,name:"invalid.illegal.character.escape.lua"}]},ldoc_tag:{captures:{"1":{name:"punctuation.definition.block.tag.ldoc"},"2":{name:"storage.type.class.ldoc"}},match:/[ \t]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\b/dgvy},string:{patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.lua"}},end:/'[ \t]*|(?=\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.lua"}},name:"string.quoted.single.lua",patterns:[{include:"#escaped_char"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.lua"}},end:/"[ \t]*|(?=\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.lua"}},name:"string.quoted.double.lua",patterns:[{include:"#escaped_char"}]},{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.lua"}},end:/`[ \t]*|(?=\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.lua"}},name:"string.quoted.double.lua"},{begin:/(?<=\.cdef)\p{space}*(\[(=*)\[)/dgv,beginCaptures:{"0":{name:"string.quoted.other.multiline.lua"},"1":{name:"punctuation.definition.string.begin.lua"}},contentName:"meta.embedded.lua",end:/(\]\2\])[ \t]*()/dgv,endCaptures:{"0":{name:"string.quoted.other.multiline.lua"},"1":{name:"punctuation.definition.string.end.lua"}},patterns:[{include:"source.c"}]},{begin:/(?<!--)\[(=*)\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.lua"}},end:/\]\1\][ \t]*()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.lua"}},name:"string.quoted.other.multiline.lua"}]}},scopeName:"source.lua",embeddedLangs:["c"],aliases:undefined})
|
|
4
|
+
const lang = Object.freeze({displayName:"Lua",name:"lua",patterns:[{begin:/\b(?:(local)\p{space}+)?(function)\b(?![\,\:])/dgv,beginCaptures:{"1":{name:"keyword.local.lua"},"2":{name:"keyword.control.lua"}},end:/(?<=[\)\-\{\}\[\]"'])/dgv,name:"meta.function.lua",patterns:[{include:"#comment"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.lua"}},end:/(\))|(?=[\-\.\{\}\[\]"'])/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.finish.lua"}},name:"meta.parameter.lua",patterns:[{include:"#comment"},{match:/[a-zA-Z_][a-zA-Z0-9_]*/dgv,name:"variable.parameter.function.lua"},{match:/,/dgv,name:"punctuation.separator.arguments.lua"},{begin:/:/dgv,beginCaptures:{"0":{name:"punctuation.separator.arguments.lua"}},end:/(?=[\)\,])/dgv,patterns:[{include:"#emmydoc.type"}]}]},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b\p{space}*(?=:)/dgv,name:"entity.name.class.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/dgv,name:"entity.name.function.lua"}]},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])0[xX][0-9A-Fa-f]+(\.[0-9A-Fa-f]*)?([eE]-?\p{Nd}*)?([pP][\-\+]\p{Nd}+)?/dgv,name:"constant.numeric.float.hexadecimal.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])0[xX]\.[0-9A-Fa-f]+([eE]-?\p{Nd}*)?([pP][\-\+]\p{Nd}+)?/dgv,name:"constant.numeric.float.hexadecimal.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])0[xX][0-9A-Fa-f]+(?![pPeE\.0-9])/dgv,name:"constant.numeric.integer.hexadecimal.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])\p{Nd}+(\.\p{Nd}*)?([eE]-?\p{Nd}*)?/dgv,name:"constant.numeric.float.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])\.\p{Nd}+([eE]-?\p{Nd}*)?/dgv,name:"constant.numeric.float.lua"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\.])\p{Nd}+(?![pPeE\.0-9])/dgv,name:"constant.numeric.integer.lua"},{include:"#string"},{captures:{"1":{name:"punctuation.definition.comment.lua"}},match:/^(#!)[^\n]*(?=$|\n)\n?/dgv,name:"comment.line.shebang.lua"},{include:"#comment"},{captures:{"1":{name:"keyword.control.goto.lua"},"2":{name:"string.tag.lua"}},match:/\b(goto)\p{space}+([a-zA-Z_][a-zA-Z0-9_]*)/dgv},{captures:{"1":{name:"punctuation.section.embedded.begin.lua"},"2":{name:"punctuation.section.embedded.end.lua"}},match:/(::)\p{space}*[a-zA-Z_][a-zA-Z0-9_]*\p{space}*(::)/dgv,name:"string.tag.lua"},{captures:{"0":{name:"storage.type.attribute.lua"}},match:/<\p{space}*(const|close)\p{space}*>/dgv},{match:/<[a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*>/dgv,name:"storage.type.generic.lua"},{match:/\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\b/dgv,name:"keyword.control.lua"},{match:/\b(local)\b/dgv,name:"keyword.local.lua"},{match:/\b(function)\b(?![\,\:])/dgv,name:"keyword.control.lua"},{match:/(?<![^\.]\.|:)\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\.(pi|huge|maxinteger|mininteger)|utf8\.charpattern|io\.(stdin|stdout|stderr)|package\.(config|cpath|loaded|loaders|path|preload|searchers))\b|(?<![\.])\.{3}(?!\.)/dgv,name:"constant.language.lua"},{match:/(?<![^\.]\.|:)\b(self)\b/dgv,name:"variable.language.self.lua"},{match:/(?<![^\.]\.|:)\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\b(?!\p{space}*=(?!=))/dgv,name:"support.function.lua"},{match:/(?<![^\.]\.|:)\b(async)\b(?!\p{space}*=(?!=))/dgv,name:"entity.name.tag.lua"},{match:/(?<![^\.]\.|:)\b(coroutine\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(loadlib|seeall|searchpath)|debug\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\.(char|codes|codepoint|len|offset))\b(?!\p{space}*=(?!=))/dgv,name:"support.function.library.lua"},{match:/\b(and|or|not|\|\||&&|!)\b/dgv,name:"keyword.operator.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?=\p{space}*(?:[\(\{"']|\[\[))/dgv,name:"support.function.any-method.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?=\p{space}*\??:)/dgv,name:"entity.name.class.lua"},{match:/(?<=[^\.]\.|:)\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?!\p{space}*=\p{space}*\b(function)\b)/dgv,name:"entity.other.attribute.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?!\p{space}*=\p{space}*\b(function)\b)/dgv,name:"variable.other.lua"},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?=\p{space}*=\p{space}*\b(function)\b)/dgv,name:"entity.name.function.lua"},{match:/\+|-|%|#|\*|\/|\^|==?|~=|!=|<=?|>=?|(?<!\.)\.{2}(?!\.)/dgv,name:"keyword.operator.lua"}],repository:{comment:{patterns:[{begin:/((?<=^|\n(?!$))[ \t]+)?(?=--)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.lua"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)((?!(?<=^|\\n(?!$)))[ \\t]+\\n)?","dgv",{"strategy":"search_start_clip"}),endCaptures:{"1":{name:"punctuation.whitespace.comment.trailing.lua"}},patterns:[{begin:/--\[(=*)\[@@@/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.lua"}},end:/(--)?\]\1\]/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.lua"}},name:"",patterns:[{include:"source.lua"}]},{begin:/--\[(=*)\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.lua"}},end:/(--)?\]\1\]/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.lua"}},name:"comment.block.lua",patterns:[{include:"#emmydoc"},{include:"#ldoc_tag"}]},{begin:/----/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.lua"}},end:/\n/dgv,name:"comment.line.double-dash.lua"},{begin:/---/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.lua"}},end:/\n/dgv,name:"comment.line.double-dash.documentation.lua",patterns:[{include:"#emmydoc"},{include:"#ldoc_tag"}]},{begin:/--/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.lua"}},end:/\n/dgv,name:"comment.line.double-dash.lua",patterns:[{include:"#ldoc_tag"}]}]},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.lua"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.lua"}},name:"comment.block.lua",patterns:[{include:"#emmydoc"},{include:"#ldoc_tag"}]}]},emmydoc:{patterns:[{begin:/(?<=---)[ \t]*@class/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{match:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,name:"support.class.lua"},{match:/:|,/dgv,name:"keyword.operator.lua"}]},{begin:/(?<=---)[ \t]*@enum/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,beginCaptures:{"0":{name:"variable.lua"}},end:/(?=\n)/dgv}]},{begin:/(?<=---)[ \t]*@type/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@alias/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,beginCaptures:{"0":{name:"variable.lua"}},end:/(?=[\n\#])/dgv,patterns:[{include:"#emmydoc.type"}]}]},{begin:/(?<=---)[ \t]*(@operator)\p{space}*(\b[a-z]+)?/dgv,beginCaptures:{"1":{name:"storage.type.annotation.lua"},"2":{name:"support.function.library.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@cast/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,beginCaptures:{"0":{name:"variable.other.lua"}},end:/(?=\n)/dgv,patterns:[{include:"#emmydoc.type"},{match:/([\+-\|])/dgv,name:"keyword.operator.lua"}]}]},{begin:/(?<=---)[ \t]*@param/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b(\??)/dgv,beginCaptures:{"1":{name:"entity.name.variable.lua"},"2":{name:"keyword.operator.lua"}},end:/(?=[\n\#])/dgv,patterns:[{include:"#emmydoc.type"}]}]},{begin:/(?<=---)[ \t]*@return/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{match:/\?/dgv,name:"keyword.operator.lua"},{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@field/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/(\b([a-zA-Z_][a-zA-Z0-9_]*)\b|(\[))(\??)/dgv,beginCaptures:{"2":{name:"entity.name.variable.lua"},"3":{name:"keyword.operator.lua"}},end:/(?=[\n\#])/dgv,patterns:[{include:"#string"},{include:"#emmydoc.type"},{match:/\]/dgv,name:"keyword.operator.lua"}]}]},{begin:/(?<=---)[ \t]*@generic/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/dgv,beginCaptures:{"0":{name:"storage.type.generic.lua"}},end:/(?=\n)|(,)/dgv,endCaptures:{"0":{name:"keyword.operator.lua"}},patterns:[{match:/:/dgv,name:"keyword.operator.lua"},{include:"#emmydoc.type"}]}]},{begin:/(?<=---)[ \t]*@vararg/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@overload/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#emmydoc.type"}]},{begin:/(?<=---)[ \t]*@deprecated/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@meta/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@private/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@protected/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@package/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv},{begin:/(?<=---)[ \t]*@version/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{match:/\b(5\.1|5\.2|5\.3|5\.4|JIT)\b/dgv,name:"support.class.lua"},{match:/,|>|</dgv,name:"keyword.operator.lua"}]},{begin:/(?<=---)[ \t]*@see/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{match:/\b([a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*)/dgv,name:"support.class.lua"},{match:/#/dgv,name:"keyword.operator.lua"}]},{begin:/(?<=---)[ \t]*@diagnostic/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{begin:/([a-zA-Z_\-0-9]+)[ \t]*(:)?/dgv,beginCaptures:{"1":{name:"keyword.other.unit"},"2":{name:"keyword.operator.unit"}},end:/(?=\n)/dgv,patterns:[{match:/\b([a-zA-Z_\*][a-zA-Z0-9_\-]*)/dgv,name:"support.class.lua"},{match:/,/dgv,name:"keyword.operator.lua"}]}]},{begin:/(?<=---)[ \t]*@module/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#string"}]},{match:/(?<=---)[ \t]*@(async|nodiscard)/dgv,name:"storage.type.annotation.lua"},{begin:/(?<=---)\|\p{space}*[\>\+]?/dgv,beginCaptures:{"0":{name:"storage.type.annotation.lua"}},end:/(?=[\n\@\#])/dgv,patterns:[{include:"#string"}]}]},"emmydoc.type":{patterns:[{begin:/\bfun\b/dgv,beginCaptures:{"0":{name:"keyword.control.lua"}},end:/(?=[\p{space}\#])/dgv,patterns:[{match:/[\(\)\,\:\?][ \t]*/dgv,name:"keyword.operator.lua"},{match:/([a-zA-Z_][a-zA-Z0-9_\.\*\[\]\<\>\,\-]*)(?<!,)[ \t]*(?=\??:)/dgv,name:"entity.name.variable.lua"},{include:"#emmydoc.type"},{include:"#string"}]},{match:/<[a-zA-Z_\*][a-zA-Z0-9_\.\*\-]*>/dgv,name:"storage.type.generic.lua"},{match:/\basync\b/dgv,name:"entity.name.tag.lua"},{match:/[\{\}\:\,\?\|\`][ \t]*/dgv,name:"keyword.operator.lua"},{begin:/(?=[a-zA-Z_\.\*"'\[])/dgv,end:/(?=[\p{space}\)\,\?\:\}\|\#])/dgv,patterns:[{match:/([a-zA-Z0-9_\.\*\[\]\<\>\,\-]+)(?<!,)[ \t]*/dgv,name:"support.type.lua"},{match:/(\.\.\.)[ \t]*/dgv,name:"constant.language.lua"},{include:"#string"}]}]},escaped_char:{patterns:[{match:/\\[abfnrtv\\"'\n]/dgv,name:"constant.character.escape.lua"},{match:/\\z[\n\t ]*/dgv,name:"constant.character.escape.lua"},{match:/\\\p{Nd}{1,3}/dgv,name:"constant.character.escape.byte.lua"},{match:/\\x[0-9A-Fa-f][0-9A-Fa-f]/dgv,name:"constant.character.escape.byte.lua"},{match:/\\u\{[0-9A-Fa-f]+\}/dgv,name:"constant.character.escape.unicode.lua"},{match:/\\[^\n]/dgv,name:"invalid.illegal.character.escape.lua"}]},ldoc_tag:{captures:{"1":{name:"punctuation.definition.block.tag.ldoc"},"2":{name:"storage.type.class.ldoc"}},match:/[ \t]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\b/dgvy},string:{patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.lua"}},end:/'[ \t]*|(?=\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.lua"}},name:"string.quoted.single.lua",patterns:[{include:"#escaped_char"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.lua"}},end:/"[ \t]*|(?=\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.lua"}},name:"string.quoted.double.lua",patterns:[{include:"#escaped_char"}]},{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.lua"}},end:/`[ \t]*|(?=\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.lua"}},name:"string.quoted.double.lua"},{begin:/(?<=\.cdef)\p{space}*(\[(=*)\[)/dgv,beginCaptures:{"0":{name:"string.quoted.other.multiline.lua"},"1":{name:"punctuation.definition.string.begin.lua"}},contentName:"meta.embedded.lua",end:/(\]\2\])[ \t]*()/dgv,endCaptures:{"0":{name:"string.quoted.other.multiline.lua"},"1":{name:"punctuation.definition.string.end.lua"}},patterns:[{include:"source.c"}]},{begin:/(?<!--)\[(=*)\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.lua"}},end:/\]\1\][ \t]*()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.lua"}},name:"string.quoted.other.multiline.lua"}]}},scopeName:"source.lua",embeddedLangs:["c"],aliases:undefined})
|
|
5
5
|
|
|
6
6
|
export default [
|
|
7
7
|
...c,
|
package/dist/make.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Makefile",name:"make",patterns:[{include:"#comment"},{include:"#variables"},{include:"#variable-assignment"},{include:"#directives"},{include:"#recipe"},{include:"#target"}],repository:{"another-variable-braces":{patterns:[{begin:/(?<=\{)(?!\})/dgv,end:/(?=\}|((?<!\\)\n))/dgv,name:"variable.other.makefile",patterns:[{include:"#variables"},{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"}]}]},"another-variable-parentheses":{patterns:[{begin:/(?<=\()(?!\))/dgv,end:/(?=\)|((?<!\\)\n))/dgv,name:"variable.other.makefile",patterns:[{include:"#variables"},{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"}]}]},"braces-interpolation":{begin:/\{/dgv,end:/\}/dgv,patterns:[{include:"#variables"},{include:"#interpolation"}]},"builtin-variable-braces":{patterns:[{match:/(?<=\{)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\.LIBPATTERNS)(?=\p{space}*\})/dgv,name:"variable.language.makefile"}]},"builtin-variable-parentheses":{patterns:[{match:/(?<=\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\.LIBPATTERNS)(?=\p{space}*\))/dgv,name:"variable.language.makefile"}]},comma:{match:/,/dgv,name:"punctuation.separator.delimeter.comma.makefile"},comment:{begin:/((?<=^|\n(?!$))[ ]+)?((?<!\\)(\\\\)*)(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.makefile"}},end
|
|
3
|
+
const lang = Object.freeze({displayName:"Makefile",name:"make",patterns:[{include:"#comment"},{include:"#variables"},{include:"#variable-assignment"},{include:"#directives"},{include:"#recipe"},{include:"#target"}],repository:{"another-variable-braces":{patterns:[{begin:/(?<=\{)(?!\})/dgv,end:/(?=\}|((?<!\\)\n))/dgv,name:"variable.other.makefile",patterns:[{include:"#variables"},{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"}]}]},"another-variable-parentheses":{patterns:[{begin:/(?<=\()(?!\))/dgv,end:/(?=\)|((?<!\\)\n))/dgv,name:"variable.other.makefile",patterns:[{include:"#variables"},{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"}]}]},"braces-interpolation":{begin:/\{/dgv,end:/\}/dgv,patterns:[{include:"#variables"},{include:"#interpolation"}]},"builtin-variable-braces":{patterns:[{match:/(?<=\{)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\.LIBPATTERNS)(?=\p{space}*\})/dgv,name:"variable.language.makefile"}]},"builtin-variable-parentheses":{patterns:[{match:/(?<=\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\.LIBPATTERNS)(?=\p{space}*\))/dgv,name:"variable.language.makefile"}]},comma:{match:/,/dgv,name:"punctuation.separator.delimeter.comma.makefile"},comment:{begin:/((?<=^|\n(?!$))[ ]+)?((?<!\\)(\\\\)*)(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.makefile"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.makefile"}},end:/(?=[^\\])(?=$|\n)/dgv,name:"comment.line.number-sign.makefile",patterns:[{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"}]}]},directives:{patterns:[{begin:/(?<=^|\n(?!$))[ ]*([s\-]?include)\b/dgv,beginCaptures:{"1":{name:"keyword.control.include.makefile"}},end:/(?<=^|\n(?!$))/dgv,patterns:[{include:"#comment"},{include:"#variables"},{match:/%/dgv,name:"constant.other.placeholder.makefile"}]},{begin:/(?<=^|\n(?!$))[ ]*(vpath)\b/dgv,beginCaptures:{"1":{name:"keyword.control.vpath.makefile"}},end:/(?<=^|\n(?!$))/dgv,patterns:[{include:"#comment"},{include:"#variables"},{match:/%/dgv,name:"constant.other.placeholder.makefile"}]},{begin:/(?<=^|\n(?!$))\p{space}*(?:(override)\p{space}*)?(define)\p{space}*([^\p{space}]+)\p{space}*(=|\?=|:=|\+=)?(?=\p{space})/dgv,captures:{"1":{name:"keyword.control.override.makefile"},"2":{name:"keyword.control.define.makefile"},"3":{name:"variable.other.makefile"},"4":{name:"punctuation.separator.key-value.makefile"}},end:/(?<=^|\n(?!$))\p{space}*(endef)\b/dgv,name:"meta.scope.conditional.makefile",patterns:[{begin:/(?!\n)/dgvy,end:/(?<=^|\n(?!$))/dgv,patterns:[{include:"#comment"}]},{include:"#variables"},{include:"#directives"}]},{begin:/(?<=^|\n(?!$))[ ]*(export)\b/dgv,beginCaptures:{"1":{name:"keyword.control.$1.makefile"}},end:/(?<=^|\n(?!$))/dgv,patterns:[{include:"#comment"},{include:"#variable-assignment"},{match:/[^\p{space}]+/dgv,name:"variable.other.makefile"}]},{begin:/(?<=^|\n(?!$))[ ]*(override|private)\b/dgv,beginCaptures:{"1":{name:"keyword.control.$1.makefile"}},end:/(?<=^|\n(?!$))/dgv,patterns:[{include:"#comment"},{include:"#variable-assignment"}]},{begin:/(?<=^|\n(?!$))[ ]*(unexport|undefine)\b/dgv,beginCaptures:{"1":{name:"keyword.control.$1.makefile"}},end:/(?<=^|\n(?!$))/dgv,patterns:[{include:"#comment"},{match:/[^\p{space}]+/dgv,name:"variable.other.makefile"}]},{begin:/(?<=^|\n(?!$))\p{space}*(ifeq|ifneq|ifdef|ifndef)(?=\p{space})/dgv,captures:{"1":{name:"keyword.control.$1.makefile"}},end:/(?<=^|\n(?!$))\p{space}*(endif)\b/dgv,name:"meta.scope.conditional.makefile",patterns:[{begin:/(?:)/dgv,end:/(?<=^|\n(?!$))/dgv,name:"meta.scope.condition.makefile",patterns:[{include:"#comma"},{include:"#variables"},{include:"#comment"}]},{begin:/(?<=^|\n(?!$))\p{space}*else(?=\p{space})\p{space}*(ifeq|ifneq|ifdef|ifndef)*(?=\p{space})/dgv,beginCaptures:{"0":{name:"keyword.control.else.makefile"}},end:/(?<=^|\n(?!$))/dgv,patterns:[{include:"#comma"},{include:"#variables"},{include:"#comment"}]},{include:"$self"}]}]},"flavor-variable-braces":{patterns:[{begin:/(?<=\{)(origin|flavor)\p{space}(?=[^\p{space}\}]+\p{space}*\})/dgv,beginCaptures:{"1":{name:"support.function.$1.makefile"}},contentName:"variable.other.makefile",end:/(?=\})/dgv,name:"meta.scope.function-call.makefile",patterns:[{include:"#variables"}]}]},"flavor-variable-parentheses":{patterns:[{begin:/(?<=\()(origin|flavor)\p{space}(?=[^\p{space}\)]+\p{space}*\))/dgv,beginCaptures:{"1":{name:"support.function.$1.makefile"}},contentName:"variable.other.makefile",end:/(?=\))/dgv,name:"meta.scope.function-call.makefile",patterns:[{include:"#variables"}]}]},"function-variable-braces":{patterns:[{begin:/(?<=\{)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\p{space}/dgv,beginCaptures:{"1":{name:"support.function.$1.makefile"}},end:/(?=\}|((?<!\\)\n))/dgv,name:"meta.scope.function-call.makefile",patterns:[{include:"#comma"},{include:"#variables"},{include:"#interpolation"},{match:/%|\*/dgv,name:"constant.other.placeholder.makefile"},{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"}]}]},"function-variable-parentheses":{patterns:[{begin:/(?<=\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\p{space}/dgv,beginCaptures:{"1":{name:"support.function.$1.makefile"}},end:/(?=\)|((?<!\\)\n))/dgv,name:"meta.scope.function-call.makefile",patterns:[{include:"#comma"},{include:"#variables"},{include:"#interpolation"},{match:/%|\*/dgv,name:"constant.other.placeholder.makefile"},{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"}]}]},interpolation:{patterns:[{include:"#parentheses-interpolation"},{include:"#braces-interpolation"}]},"parentheses-interpolation":{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"#variables"},{include:"#interpolation"}]},recipe:{begin:/(?<=^|\n(?!$))\t([\+\-\@]*)/dgv,beginCaptures:{"1":{name:"keyword.control.$1.makefile"}},end:/[^\\](?=$|\n)/dgv,name:"meta.scope.recipe.makefile",patterns:[{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"},{include:"#variables"}]},"simple-variable":{patterns:[{match:/\$[^\(\)\{\}]/dgv,name:"variable.language.makefile"}]},target:{begin:/(?<=^|\n(?!$))(?!\t)([^\:]*)(:)(?!=)/dgv,beginCaptures:{"1":{patterns:[{captures:{"1":{name:"support.function.target.$1.makefile"}},match:/(?<=^|\n(?!$))\p{space}*(\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\p{space}*(?=$|\n)/dgv},{begin:/(?=\P{space})/dgv,end:/(?=\p{space}|(?=$|\n))/dgv,name:"entity.name.function.target.makefile",patterns:[{include:"#variables"},{match:/%/dgv,name:"constant.other.placeholder.makefile"}]}]},"2":{name:"punctuation.separator.key-value.makefile"}},end:/[^\\](?=$|\n)/dgv,name:"meta.scope.target.makefile",patterns:[{begin:/(?:)/dgv,end:/(?=[^\\])(?=$|\n)/dgv,name:"meta.scope.prerequisites.makefile",patterns:[{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"},{match:/%|\*/dgv,name:"constant.other.placeholder.makefile"},{include:"#comment"},{include:"#variables"}]}]},"variable-assignment":{begin:/*@__PURE__*/ new EmulatedRegExp("((?<=^|\\n(?!$))[ ]*|^\\p{space}*)([^\\p{space}\\:\\#\\=]+)\\p{space}*((?<![\\?\\:\\+\\!])=|\\?=|:=|\\+=|!=)","dgv",{"strategy":"search_start_clip"}),beginCaptures:{"2":{name:"variable.other.makefile",patterns:[{include:"#variables"}]},"3":{name:"punctuation.separator.key-value.makefile"}},end:/\n/dgv,patterns:[{match:/\\\n/dgv,name:"constant.character.escape.continuation.makefile"},{include:"#comment"},{include:"#variables"}]},"variable-braces":{patterns:[{begin:/\$\{/dgv,captures:{"0":{name:"punctuation.definition.variable.makefile"}},end:/\}|((?<!\\)\n)/dgv,name:"string.interpolated.makefile",patterns:[{include:"#variables"},{include:"#builtin-variable-braces"},{include:"#function-variable-braces"},{include:"#flavor-variable-braces"},{include:"#another-variable-braces"}]}]},"variable-parentheses":{patterns:[{begin:/\$\(/dgv,captures:{"0":{name:"punctuation.definition.variable.makefile"}},end:/\)|((?<!\\)\n)/dgv,name:"string.interpolated.makefile",patterns:[{include:"#variables"},{include:"#builtin-variable-parentheses"},{include:"#function-variable-parentheses"},{include:"#flavor-variable-parentheses"},{include:"#another-variable-parentheses"}]}]},variables:{patterns:[{include:"#simple-variable"},{include:"#variable-parentheses"},{include:"#variable-braces"}]}},scopeName:"source.makefile",embeddedLangs:undefined,aliases:["makefile"]})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/markdown-vue.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({fileTypes:[],injectTo:["text.html.markdown"],injectionSelector:"L:text.html.markdown",name:"markdown-vue",patterns:[{include:"#vue-code-block"}],repository:{"vue-code-block":{begin
|
|
3
|
+
const lang = Object.freeze({fileTypes:[],injectTo:["text.html.markdown"],injectionSelector:"L:text.html.markdown",name:"markdown-vue",patterns:[{include:"#vue-code-block"}],repository:{"vue-code-block":{begin:/*@__PURE__*/ new EmulatedRegExp("((?<=^|\\n(?!$))|^)(\\p{space}*)(`{3,}|~{3,})\\p{space}*(vue)((\\p{space}+|:|,|\\{|\\?)[^\\`\\~]*)?(?=$|\\n)","dgiv",{"strategy":"search_start_clip"}),beginCaptures:{"3":{name:"punctuation.definition.markdown"},"4":{name:"fenced_code.block.language.markdown"},"5":{name:"fenced_code.block.language.attributes.markdown",patterns:[]}},end:/*@__PURE__*/ new EmulatedRegExp("((?<=^|\\n(?!$))|^)((?!)|\\p{space}{0,3})((?!))\\p{space}*(?=$|\\n)","dgv",{"strategy":"search_start_clip"}),endCaptures:{"3":{name:"punctuation.definition.markdown"}},name:"markup.fenced_code.block.markdown",patterns:[{include:"source.vue"}]}},scopeName:"markdown.vue.codeblock",displayName:undefined,embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|