Update grammars (#181143)

This commit is contained in:
Alex Ross
2023-04-28 17:43:01 +02:00
committed by GitHub
parent 1c59c16f20
commit a68448fcb4
13 changed files with 635 additions and 528 deletions

View File

@@ -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/eed5b817b757aab3695af437409fcbfdd37bbc59",
"version": "https://github.com/jlelong/vscode-latex-basics/commit/580c019674f82ef887a6dcce7bfc75ab0b58486d",
"name": "LaTeX",
"scopeName": "text.tex.latex",
"patterns": [
@@ -1205,16 +1205,32 @@
"name": "punctuation.definition.function.latex"
},
"3": {
"name": "punctuation.definition.arguments.begin.latex"
"patterns": [
{
"include": "#optional-arg"
}
]
},
"4": {
"name": "markup.underline.link.latex"
"name": "punctuation.definition.arguments.begin.latex"
},
"5": {
"name": "markup.underline.link.latex"
},
"6": {
"name": "punctuation.definition.arguments.end.latex"
},
"7": {
"name": "punctuation.definition.arguments.begin.latex"
},
"8": {
"name": "entity.name.hyperlink.latex"
},
"9": {
"name": "punctuation.definition.arguments.end.latex"
}
},
"match": "(?:\\s*)((\\\\)(?:url|href))(\\{)([^}]*)(\\})",
"match": "(?:\\s*)((\\\\)(?:url|href|hyperref|hyperimage))(\\[[^\\[]*?\\])?(\\{)([^}]*)(\\})(?:\\{[^}]*\\}){2}?(?:(\\{)([^}]*)(\\}))?",
"name": "meta.function.link.url.latex"
},
{
@@ -1737,7 +1753,7 @@
"match": "((%).*)$"
},
{
"match": "[\\p{Alphabetic}:.-]+",
"match": "[\\p{Alphabetic}\\p{Number}:.-]+",
"name": "constant.other.reference.citation.latex"
}
]
@@ -1764,7 +1780,7 @@
"name": "meta.citation.latex",
"patterns": [
{
"match": "[\\p{Alphabetic}:.]+",
"match": "[\\p{Alphabetic}\\p{Number}:.]+",
"name": "constant.other.reference.citation.latex"
}
]
@@ -2054,6 +2070,30 @@
}
]
},
{
"name": "string.quoted.double.latex",
"match": "(?<!\\\\)(\\`\\`)(?:.*?(?<!\\\\))(\\'\\'|\\\")",
"captures": {
"1": {
"name": "punctuation.definition.string.begin.latex"
},
"2": {
"name": "punctuation.definition.string.end.latex"
}
}
},
{
"name": "string.quoted.single.latex",
"match": "(?<!\\\\)(\\`)(?:.*?(?<!\\\\))(\\')",
"captures": {
"1": {
"name": "punctuation.definition.string.begin.latex"
},
"2": {
"name": "punctuation.definition.string.end.latex"
}
}
},
{
"begin": "\\$\\$",
"beginCaptures": {
@@ -2250,7 +2290,7 @@
]
}
},
"match": "(?:(\\()[^\\)]*(\\))){0,2}(?:(\\[)[^\\]]*(\\])){0,2}(\\{)([\\p{Alphabetic}:.]+)(\\})(.*)"
"match": "(?:(\\()[^\\)]*(\\))){0,2}(?:(\\[)[^\\]]*(\\])){0,2}(\\{)([\\p{Alphabetic}\\p{Number}:.]+)(\\})(.*)"
}
]
},