diff options
author | Georg Brandl <georg@python.org> | 2011-09-27 08:04:05 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-09-27 08:04:05 +0200 |
commit | 2a7deac5ab1e25650a5eb71b134e25bfb8f8be1d (patch) | |
tree | fb62d2619c4ba8d9eab45420f25e4fd0327d8a57 | |
parent | 567348b749720259eff1321aa77fb41f7a9bd616 (diff) | |
download | pygments-2a7deac5ab1e25650a5eb71b134e25bfb8f8be1d.tar.gz |
Fix multi_escape for Clojure.
-rw-r--r-- | pygments/lexers/agile.py | 4 |
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' : [ |