diff tests/test_pseudo.py @ 43:bbef0ac6cfcf

FIX: Proper string parsing: explicitely error out when single-line strings contain a linefeed
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 24 Apr 2026 19:01:10 +0200
parents 4ccf9a8d0bf2
children
line wrap: on
line diff
--- a/tests/test_pseudo.py	Fri Apr 24 18:22:23 2026 +0200
+++ b/tests/test_pseudo.py	Fri Apr 24 19:01:10 2026 +0200
@@ -68,8 +68,7 @@
         self.assertTokenStreamEqual(
             [("String.Single", "'"),
              ("String.Single", "HUHU"),
-             ("Text.Whitespace", "\n"),
-             ("Error", "H"),
+             ("Error", "\n"),
              ],
             pygments.lex("'HUHU\nHEHE'", self.lexer))
 
@@ -114,8 +113,7 @@
         self.assertTokenStreamEqual(
             [("String.Double", '"'),
              ("String.Double", "HUHU"),
-             ("Text.Whitespace", "\n"),
-             ("Error", "H"),
+             ("Error", "\n"),
              ],
             pygments.lex('"HUHU\nHEHE"', self.lexer))