diff options
author | Joshua Peek <josh@joshpeek.com> | 2011-09-25 22:07:53 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2011-09-25 22:07:53 -0500 |
commit | 567348b749720259eff1321aa77fb41f7a9bd616 (patch) | |
tree | f558aa8ec661adee9c3445e1163a0b893ad33aac | |
parent | cea3a6803108bb6a0754fb11c76223a8cd0c4fdd (diff) | |
download | pygments-567348b749720259eff1321aa77fb41f7a9bd616.tar.gz |
Escape clojure regex string
-rw-r--r-- | pygments/lexers/agile.py | 2 |
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 = { |