Commits

Joshua Peek committed abe6a7b

Escape clojure regex string

  • Participants
  • Parent commits db34fea

Comments (0)

Files changed (1)

pygments/lexers/agile.py

     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 = {