diff --git a/syntax/TeX.tmLanguage.json b/syntax/TeX.tmLanguage.json index 7cb66e821..f96b014c2 100644 --- a/syntax/TeX.tmLanguage.json +++ b/syntax/TeX.tmLanguage.json @@ -101,7 +101,16 @@ "name": "punctuation.definition.function.tex" } }, - "match": "(\\\\)(?:[,;]|(?:[\\p{Alphabetic}@]+(?:(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*)?))", + "match": "(\\\\)(?:[,;]|(?:[\\p{Alphabetic}@]+(?:(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*)?)|(?:_+[\\p{Alphabetic}@]+(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*))", + "name": "support.function.general.tex" + }, + { + "captures": { + "1": { + "name": "punctuation.definition.function.tex" + } + }, + "match": "(\\.)[\\p{Alphabetic}@]+(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*", "name": "support.function.general.tex" }, {