This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/html/multiline-comment-catastrophic-backtracking.txt
Jean Abou-Samra 122ad379c2
Fix catastrophic backtracking in HTML and XML (#2069)
These lexers have re.DOTALL in their flags, so r"(.|\n)" is equivalent
to r".", except with catastrophic backtracking properties.

Closes #2068
2022-02-24 13:52:25 +01:00

34 lines
216 B
Text

---input---
<!--
this
comment
is
never
terminated
...
...
---tokens---
'<' Error
'!--\nthis\ncomment\nis\nnever\nterminated\n...\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n...\n' Text