Skip to content

Commit 4f06bcf

Browse files
committed
fix bad behaving backtracking regex in CommonLispLexer
credits to @kq5y for the report
1 parent 24b8aa7 commit 4f06bcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygments/lexers/lisp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def get_tokens_unprocessed(self, text):
441441
(r'(#s)(\()', bygroups(Literal.Other, Punctuation), 'body'),
442442

443443
# path
444-
(r'#p?"(\\.|[^"])*"', Literal.Other),
444+
(r'#p?"(\\.|[^"\\])*"', Literal.Other),
445445

446446
# reference
447447
(r'#\d+=', Operator),

0 commit comments

Comments
 (0)