mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Update grammars (#248013)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/a39a1f5ec1dee1c7e6e564ea86ab2c8d8779aa07",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/eb0d146b16839076a61c3fdec85d6f80d9a94c8c",
|
||||
"name": "LaTeX",
|
||||
"scopeName": "text.tex.latex",
|
||||
"patterns": [
|
||||
@@ -1955,6 +1955,709 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:asy|asymptote)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.asy",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.asy"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:bash)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.shell",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.shell"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:c|cpp)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.cpp.embedded.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.cpp.embedded.latex"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:css)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.css",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:gnuplot)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.gnuplot",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.gnuplot"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:hs|haskell)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.haskell",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.haskell"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:html)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "text.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:java)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.java",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.java"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:jl|julia)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.julia"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:js|javascript)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.js",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:lua)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.lua",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.lua"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:py|python|sage)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.python",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.python"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:rb|ruby)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.ruby",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:rust)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.rust",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.rust"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:ts|typescript)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.ts",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:xml)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "text.xml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.xml"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:yaml)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "source.yaml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.yaml"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[(?i:tikz|tikzpicture)\\b|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "text.tex.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)cacheMeCode)(?=\\[|\\{)",
|
||||
"end": "(?<=\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\])(\\{)",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"contentName": "meta.embedded.block.generic.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex#braces"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)addplot)(?:\\+?)((?:\\[[^\\[]*\\]))*\\s*(gnuplot)\\s*((?:\\[[^\\[]*\\]))*\\s*(\\{)",
|
||||
"captures": {
|
||||
@@ -2150,14 +2853,14 @@
|
||||
"3": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
},
|
||||
"4": {
|
||||
"name": "markup.underline.link.latex"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
},
|
||||
"'": {
|
||||
"name": "markup.underline.link.latex"
|
||||
}
|
||||
},
|
||||
"match": "(?:\\s*)((\\\\)url)(\\{)([^}]*)(\\})",
|
||||
"match": "(?:\\s*)((\\\\)(?:url|path))(\\{)([^}]*)(\\})",
|
||||
"name": "meta.function.link.url.latex"
|
||||
},
|
||||
{
|
||||
@@ -2736,11 +3439,40 @@
|
||||
"name": "meta.reference.label.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "[\\p{Alphabetic}\\p{Number}\\.,:/*!^_-]",
|
||||
"match": "[\\p{Alphabetic}\\p{Number}\\.,:/*!^_-]+",
|
||||
"name": "constant.other.reference.label.latex"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "((\\\\)(?:\\w*[rR]efrange\\*?))(?:\\[[^\\]]*\\])?(\\{)([\\p{Alphabetic}\\p{Number}\\.,:/*!^_-]+)(\\})(\\{)([\\p{Alphabetic}\\p{Number}\\.,:/*!^_-]+)(\\})",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.ref.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.latex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
},
|
||||
"4": {
|
||||
"name": "constant.other.reference.label.latex"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
},
|
||||
"6": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
},
|
||||
"7": {
|
||||
"name": "constant.other.reference.label.latex"
|
||||
},
|
||||
"8": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "#definition-label"
|
||||
},
|
||||
@@ -3247,7 +3979,7 @@
|
||||
"name": "meta.definition.label.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "[\\p{Alphabetic}\\p{Number}\\.,:/*!^_-]",
|
||||
"match": "[\\p{Alphabetic}\\p{Number}\\.,:/*!^_-]+",
|
||||
"name": "variable.parameter.definition.label.latex"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user