diff options
author | Phil Hagelberg <phil@hagelb.org> | 2020-09-06 12:46:21 -0700 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2020-09-07 07:57:03 +0200 |
commit | 17e7b1368afb0e153b4b45e1ac4922344b25ab14 (patch) | |
tree | 90f2cc57548bf99da38f236c0bde19931dcc2615 /pygments/lexers/lisp.py | |
parent | 7f12ac42db078d950b04eaba006252d64626ce4e (diff) | |
download | pygments-git-17e7b1368afb0e153b4b45e1ac4922344b25ab14.tar.gz |
Avoid catastrophic backtracking.
as advised in https://github.com/pygments/pygments/pull/1535/files/f581f2892154e8e4ed673ab940abf8af43ebe66b#r484028618
Diffstat (limited to 'pygments/lexers/lisp.py')
-rw-r--r-- | pygments/lexers/lisp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/lisp.py b/pygments/lexers/lisp.py index 6f386af6..7d5208e3 100644 --- a/pygments/lexers/lisp.py +++ b/pygments/lexers/lisp.py @@ -2672,7 +2672,7 @@ class FennelLexer(RegexLexer): (r'-?\d+\.\d+', Number.Float), (r'-?\d+', Number.Integer), - (r'"(\\\\|\\"|[^"])*"', String), + (r'"(\\\\|\\"|[^"\\])*"', String), # these are technically strings, but it's worth visually # distinguishing them because their intent is different |