diff options
author | Georg Brandl <georg@python.org> | 2014-10-07 22:22:06 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-07 22:22:06 +0200 |
commit | cc655d6b740134b42cebe8e1dc784236fddb784a (patch) | |
tree | fd928577b2474c80b6deed82b086023c65b082b4 /pygments/lexers/markup.py | |
parent | c7a2a483bf1c004de4a4ae171949483a90c19310 (diff) | |
download | pygments-cc655d6b740134b42cebe8e1dc784236fddb784a.tar.gz |
TeX: accept backslash before newline
Diffstat (limited to 'pygments/lexers/markup.py')
-rw-r--r-- | pygments/lexers/markup.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/markup.py b/pygments/lexers/markup.py index 97d20bae..71a9aa82 100644 --- a/pygments/lexers/markup.py +++ b/pygments/lexers/markup.py @@ -289,6 +289,7 @@ class TexLexer(RegexLexer): (r'\$\$', String.Backtick, 'displaymath'), (r'\$', String, 'inlinemath'), (r'\\([a-zA-Z]+|.)', Keyword, 'command'), + (r'\\$', Keyword), include('general'), (r'[^\\$%&_^{}]+', Text), ], |