1. Georg Brandl
  2. pygments-main
  3. Pull requests

Pull requests

#28 Merged
Repository
pygments
Branch
default
Repository
pygments-main
Branch
default

Escape clojure regex string

Author
  1. Joshua Peek
Reviewers
Description

Fixes invalid regexp introduced in a93f4e434a96.

I see 5 test failures without this patch:

{{{ ValueError: uncompilable regex 'fn(?![\w-!$%+,<=>?/.-])|def(?![\w-!$%+,<=>?/.-])|defn(?![\w-!$%+,<=>?/.-])|defmacro(?![\w-!$%+,<=>?/.-])|defmethod(?![\w-!$%+,<=>?/.-])|defmulti(?![\w-!$%+,<=>?/.-])|defn\-(?![\w-!$%+,<=>?/.-])|defstruct(?![\w-!$%+,<=>?/.-])|if(?![\w-!$%+,<=>?/.-])|cond(?![\w-!$%+,<=>?/.-])|let(?![\w-!$%+,<=>?/.-])|for(?![\w-!$%+,<=>?/.-])' in state 'root' of <class 'pygments.lexers.agile.ClojureLexer'>: bad character range }}}

Comments (0)