summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-03-01 18:00:38 +0100
committerGeorg Brandl <georg@python.org>2010-03-01 18:00:38 +0100
commit29fda48e8bba1bb917b268374482d69e632d76d7 (patch)
tree6dc7f4e6d6fab15abae18cb038a3ea69b9573870
parent7cdda32b49786d57e24515b423f87cacd097c58b (diff)
downloadpygments-29fda48e8bba1bb917b268374482d69e632d76d7.tar.gz
Allow lone $ and ; (can occur in regexes).
-rw-r--r--pygments/lexers/text.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py
index 34a8f424..280d4472 100644
--- a/pygments/lexers/text.py
+++ b/pygments/lexers/text.py
@@ -1510,6 +1510,7 @@ class NginxConfLexer(RegexLexer):
(r'[^\s;#{}$]+', String), # catch all
(r'/[^\s;#]*', Name), # pathname
(r'\s+', Text),
+ (r'[$;]', Text), # leftover characters
],
}