# HG changeset patch # User Tuomo Valkonen # Date 1593115875 18000 # Node ID c8a6390ebc588ff30d3b2cff782258759c7510e1 # Parent 08aa7e744f795c1199bd8eec762911338427f547 Basic changes-package support. (\replaced does not do second argument yet. Not sure if it is even feasible.) diff -r 08aa7e744f79 -r c8a6390ebc58 syntaxes/LaTeX.tmLanguage.json --- a/syntaxes/LaTeX.tmLanguage.json Fri May 29 16:24:55 2020 -0500 +++ b/syntaxes/LaTeX.tmLanguage.json Thu Jun 25 15:11:15 2020 -0500 @@ -1031,6 +1031,78 @@ ] }, { + "begin": "((\\\\)(?:added|replaced))((?:\\[[^\\[]*?\\])*)(\\{)", + "beginCaptures": { + "1": { + "name": "support.function.changes.added.latex" + }, + "2": { + "name": "punctuation.definition.function.latex" + }, + "3": { + "patterns": [ + { + "include": "#optional-arg" + } + ] + }, + "4": { + "name": "punctuation.definition.changes.added.begin.latex" + } + }, + "contentName": "entity.name.changes.added.latex", + "end": "\\}", + "endCaptures": { + "0": { + "name": "punctuation.definition.changes.added.end.latex" + } + }, + "patterns": [ + { + "include": "text.tex#braces" + }, + { + "include": "$base" + } + ] + }, + { + "begin": "((\\\\)deleted)((?:\\[[^\\[]*?\\])*)(\\{)", + "beginCaptures": { + "1": { + "name": "support.function.changes.deleted.latex" + }, + "2": { + "name": "punctuation.definition.function.latex" + }, + "3": { + "patterns": [ + { + "include": "#optional-arg" + } + ] + }, + "4": { + "name": "punctuation.definition.changes.deleted.begin.latex" + } + }, + "contentName": "entity.name.changes.deleted.latex", + "end": "\\}", + "endCaptures": { + "0": { + "name": "punctuation.definition.changes.deleted.end.latex" + } + }, + "patterns": [ + { + "include": "text.tex#braces" + }, + { + "include": "$base" + } + ] + }, + { "begin": "((\\\\)emph)(\\{)", "beginCaptures": { "1": {