Commits

Anonymous committed 59614c3

Fixed parsing of unterminated Rexx strings.

Comments (0)

Files changed (1)

pygments/lexers/other.py

              ur'¬>>|¬>|¬|\.|,)', Operator),
         ],
         'string_double': [
-            (r'[^"\n]', String),
+            (r'[^"\n]+', String),
             (r'""', String),
             (r'"', String, '#pop'),
-            (r'', Text, '#pop'),  # Linefeed also terminates strings.
+            (r'\n', Text, '#pop'),  # Stray linefeed also terminates strings.
         ],
         'string_single': [
             (r'[^\'\n]', String),
             (r'\'\'', String),
             (r'\'', String, '#pop'),
-            (r'', Text, '#pop'),  # Linefeed also terminates strings.
+            (r'\n', Text, '#pop'),  # Stray linefeed also terminates strings.
         ],
         'comment': [
             (r'\*/', Comment.Multiline, '#pop'),