summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-27 08:04:05 +0200
committerGeorg Brandl <georg@python.org>2011-09-27 08:04:05 +0200
commit2a7deac5ab1e25650a5eb71b134e25bfb8f8be1d (patch)
treefb62d2619c4ba8d9eab45420f25e4fd0327d8a57 /pygments
parent567348b749720259eff1321aa77fb41f7a9bd616 (diff)
downloadpygments-2a7deac5ab1e25650a5eb71b134e25bfb8f8be1d.tar.gz
Fix multi_escape for Clojure.
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/agile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index d68288d8..4fab9a9a 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -1430,8 +1430,8 @@ class ClojureLexer(RegexLexer):
valid_name = r'[\w!$%*+,<=>?/.-]+'
def _multi_escape(entries):
- return '|'.join([re.escape(entry) + re.escape('(?![\\w-!$%*+,<=>?/.-])')
- for entry in entries])
+ return '(?:' + '|'.join(map(re.escape, entries)) + \
+ ')?![\\w!$%*+,<=>?/.-]'
tokens = {
'root' : [