summaryrefslogtreecommitdiff
path: root/pygments/lexers/markup.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-07 22:22:06 +0200
committerGeorg Brandl <georg@python.org>2014-10-07 22:22:06 +0200
commitcc655d6b740134b42cebe8e1dc784236fddb784a (patch)
treefd928577b2474c80b6deed82b086023c65b082b4 /pygments/lexers/markup.py
parentc7a2a483bf1c004de4a4ae171949483a90c19310 (diff)
downloadpygments-cc655d6b740134b42cebe8e1dc784236fddb784a.tar.gz
TeX: accept backslash before newline
Diffstat (limited to 'pygments/lexers/markup.py')
-rw-r--r--pygments/lexers/markup.py1
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),
],