Commits

Georg Brandl  committed 363aafd

Fix multi_escape for Clojure.

  • Participants
  • Parent commits abe6a7b

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

     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' : [