Update grammars (#209932)

This commit is contained in:
Alex Ross
2024-04-09 12:20:39 +02:00
committed by GitHub
parent 3b6c00f5ea
commit b557947e50
19 changed files with 2779 additions and 1787 deletions

View File

@@ -4,10 +4,39 @@
"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/69915f318570484ef40ed8798c73c63c58704183",
"version": "https://github.com/jlelong/vscode-latex-basics/commit/4f8b49bca02b0bfde6e46252c209396ba6c567f9",
"name": "TeX",
"scopeName": "text.tex",
"patterns": [
{
"begin": "(\\\\)iffalse",
"beginCaptures": {
"0": {
"name": "keyword.control.tex"
},
"1": {
"name": "punctuation.definition.keyword.tex"
}
},
"contentName": "comment.line.percentage.tex",
"end": "(\\\\)(else|fi)",
"endCaptures": {
"0": {
"name": "keyword.control.tex"
},
"1": {
"name": "punctuation.definition.keyword.tex"
}
},
"patterns": [
{
"include": "#comment"
},
{
"include": "#conditionals"
}
]
},
{
"captures": {
"1": {
@@ -36,35 +65,7 @@
"name": "meta.catcode.tex"
},
{
"begin": "(^[ \\t]+)?(?=%)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.tex"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": "%:?",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.tex"
}
},
"end": "$\\n?",
"name": "comment.line.percentage.tex"
},
{
"begin": "^(%!TEX) (\\S*) =",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.tex"
}
},
"end": "$\\n?",
"name": "comment.line.percentage.directive.tex"
}
]
"include": "#comment"
},
{
"match": "[\\[\\]]",
@@ -121,6 +122,69 @@
}
],
"repository": {
"braces": {
"begin": "(?<!\\\\)\\{",
"beginCaptures": {
"0": {
"name": "punctuation.group.begin.tex"
}
},
"end": "(?<!\\\\)\\}",
"endCaptures": {
"0": {
"name": "punctuation.group.end.tex"
}
},
"name": "meta.group.braces.tex",
"patterns": [
{
"include": "#braces"
}
]
},
"comment": {
"begin": "(^[ \\t]+)?(?=%)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.tex"
}
},
"end": "(?!\\G)",
"patterns": [
{
"begin": "%:?",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.tex"
}
},
"end": "$\\n?",
"name": "comment.line.percentage.tex"
},
{
"begin": "^(%!TEX) (\\S*) =",
"beginCaptures": {
"1": {
"name": "punctuation.definition.comment.tex"
}
},
"end": "$\\n?",
"name": "comment.line.percentage.directive.tex"
}
]
},
"conditionals": {
"begin": "\\\\(if[a-z]*)",
"end": "\\\\fi",
"patterns": [
{
"include": "#comment"
},
{
"include": "#conditionals"
}
]
},
"math": {
"patterns": [
{
@@ -148,7 +212,7 @@
"include": "#math"
},
{
"include": "$base"
"include": "$self"
}
]
},
@@ -261,26 +325,6 @@
"name": "punctuation.math.operator.tex"
}
]
},
"braces": {
"begin": "(?<!\\\\)\\{",
"beginCaptures": {
"0": {
"name": "punctuation.group.begin.tex"
}
},
"end": "(?<!\\\\)\\}",
"endCaptures": {
"0": {
"name": "punctuation.group.end.tex"
}
},
"name": "meta.group.braces.tex",
"patterns": [
{
"include": "#braces"
}
]
}
}
}