Skip to content

Commit

Permalink
Update grammar files to jlelong/vscode-latex-basics@3ee9a1f
Browse files Browse the repository at this point in the history
  • Loading branch information
jlelong committed Sep 20, 2024
1 parent 2974304 commit e963077
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion syntax/DocTeX.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@
]
}
},
"contentName": "punctuation.definition.comment.latex",
"contentName": "comment.line.percentage.latex",
"end": "(\\\\end\\{\\2\\})",
"name": "meta.function.verbatim.latex"
},
Expand Down
2 changes: 1 addition & 1 deletion syntax/LaTeX.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@
]
}
},
"contentName": "punctuation.definition.comment.latex",
"contentName": "comment.line.percentage.latex",
"end": "(\\\\end\\{\\2\\})",
"name": "meta.function.verbatim.latex"
},
Expand Down
7 changes: 5 additions & 2 deletions syntax/TeX.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "TeX",
"patterns": [
{
"begin": "(?<=^\\s*)((\\\\)iffalse)",
"begin": "(?<=^\\s*)((\\\\)iffalse)(?!\\s*[{}]\\s*\\\\fi)",
"beginCaptures": {
"1": {
"name": "keyword.control.tex"
Expand All @@ -12,7 +12,7 @@
}
},
"contentName": "comment.line.percentage.tex",
"end": "(?<=^\\s*)((\\\\)(?:else|fi))",
"end": "((\\\\)(?:else|fi))",
"endCaptures": {
"1": {
"name": "keyword.control.tex"
Expand All @@ -25,6 +25,9 @@
{
"include": "#comment"
},
{
"include": "#braces"
},
{
"include": "#conditionals"
}
Expand Down

0 comments on commit e963077

Please sign in to comment.