summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2011-09-25 22:07:53 -0500
committerJoshua Peek <josh@joshpeek.com>2011-09-25 22:07:53 -0500
commit567348b749720259eff1321aa77fb41f7a9bd616 (patch)
treef558aa8ec661adee9c3445e1163a0b893ad33aac
parentcea3a6803108bb6a0754fb11c76223a8cd0c4fdd (diff)
downloadpygments-567348b749720259eff1321aa77fb41f7a9bd616.tar.gz
Escape clojure regex string
-rw-r--r--pygments/lexers/agile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 0c0de54e..d68288d8 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -1430,7 +1430,7 @@ class ClojureLexer(RegexLexer):
valid_name = r'[\w!$%*+,<=>?/.-]+'
def _multi_escape(entries):
- return '|'.join([re.escape(entry) + '(?![\\w-!$%*+,<=>?/.-])'
+ return '|'.join([re.escape(entry) + re.escape('(?![\\w-!$%*+,<=>?/.-])')
for entry in entries])
tokens = {