Support `\footnotemark` and `\footnotetext`.

Tue, 12 May 2020 18:39:01 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Tue, 12 May 2020 18:39:01 -0500
changeset 6
0ac9389339bf
parent 5
993903fd4434
child 7
fedc1fbea767

Support `\footnotemark` and `\footnotetext`.

README.md file | annotate | diff | comparison | revisions
syntaxes/LaTeX.tmLanguage.json file | annotate | diff | comparison | revisions
--- 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.
 
--- 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"

mercurial