This commit is contained in:
Jerome Lelong 2024-09-20 11:06:40 +02:00
parent 297430455b
commit e963077072
3 changed files with 7 additions and 4 deletions

View File

@ -2056,7 +2056,7 @@
]
}
},
"contentName": "punctuation.definition.comment.latex",
"contentName": "comment.line.percentage.latex",
"end": "(\\\\end\\{\\2\\})",
"name": "meta.function.verbatim.latex"
},

View File

@ -1995,7 +1995,7 @@
]
}
},
"contentName": "punctuation.definition.comment.latex",
"contentName": "comment.line.percentage.latex",
"end": "(\\\\end\\{\\2\\})",
"name": "meta.function.verbatim.latex"
},

View File

@ -2,7 +2,7 @@
"name": "TeX",
"patterns": [
{
"begin": "(?<=^\\s*)((\\\\)iffalse)",
"begin": "(?<=^\\s*)((\\\\)iffalse)(?!\\s*[{}]\\s*\\\\fi)",
"beginCaptures": {
"1": {
"name": "keyword.control.tex"
@ -12,7 +12,7 @@
}
},
"contentName": "comment.line.percentage.tex",
"end": "(?<=^\\s*)((\\\\)(?:else|fi))",
"end": "((\\\\)(?:else|fi))",
"endCaptures": {
"1": {
"name": "keyword.control.tex"
@ -25,6 +25,9 @@
{
"include": "#comment"
},
{
"include": "#braces"
},
{
"include": "#conditionals"
}