# HG changeset patch # User Tuomo Valkonen # Date 1589326741 18000 # Node ID 0ac9389339bf9f269203f5b7195c888aff75aba9 # Parent 993903fd443453810ba4a5afeb52c76dab83aead Support `\footnotemark` and `\footnotetext`. diff -r 993903fd4434 -r 0ac9389339bf README.md --- a/README.md Tue May 12 18:38:00 2020 -0500 +++ b/README.md Tue May 12 18:39:01 2020 -0500 @@ -10,7 +10,7 @@ a) Highlighting for the `todonotes` package: `\todo` as well as custom-defined `\XYtodo` for author initials `X` and `Y`. - b) Footnote highlighting. + b) Footnote highlighting (`\foonote`, `\footnotemark`, and `\footnotemark`). c) Highlighting of `comment` environments as comment blocks. diff -r 993903fd4434 -r 0ac9389339bf syntaxes/LaTeX.tmLanguage.json --- a/syntaxes/LaTeX.tmLanguage.json Tue May 12 18:38:00 2020 -0500 +++ b/syntaxes/LaTeX.tmLanguage.json Tue May 12 18:39:01 2020 -0500 @@ -923,7 +923,7 @@ ] }, { - "begin": "((\\\\)footnote)((?:\\[[^\\[]*?\\])*)(\\{)", + "begin": "((\\\\)footnote(?:mark|text|))((?:\\[[^\\[]*?\\])*)(\\{)", "beginCaptures": { "1": { "name": "support.function.footnote.latex"