diff options
author | Georg Brandl <georg@python.org> | 2020-12-25 13:16:56 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2020-12-25 13:21:48 +0100 |
commit | 681487f82f55fba66f01f9913e4ff103e5b2ef4c (patch) | |
tree | 0e3f82343796411c1e9c71f5fa7c31e392d06bf5 /tests/test_html_lexer.py | |
parent | 6c820019a73a606940d7477619a5a9e6ad38761d (diff) | |
download | pygments-git-681487f82f55fba66f01f9913e4ff103e5b2ef4c.tar.gz |
all: weed out more backtracking string regexes
Diffstat (limited to 'tests/test_html_lexer.py')
-rw-r--r-- | tests/test_html_lexer.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_html_lexer.py b/tests/test_html_lexer.py index 9ac72e33..62f1c8d4 100644 --- a/tests/test_html_lexer.py +++ b/tests/test_html_lexer.py @@ -65,9 +65,7 @@ def test_long_unclosed_javascript_fragment(lexer_html): tokens_body = [ (Token.Name.Other, 'alert'), (Token.Punctuation, '('), - (Token.Literal.String.Double, '"'), - (Token.Literal.String.Double, 'hi'), - (Token.Literal.String.Double, '"'), + (Token.Literal.String.Double, '"hi"'), (Token.Punctuation, ')'), (Token.Punctuation, ';'), ] |