Commits

Charles McLaughlin  committed 2f66213 Draft

multiline strings

  • Participants
  • Parent commits 3375ae0

Comments (0)

Files changed (1)

File pygments/lexers/puppet.py

         ],
 
         'strings': [
-            (r'\'(.*?)\'', String),
-            (r'"(.*?)"', String),
-
-            # FIXME more than one new line breaks this
-            # Multi-line quoted strings
-            # Also collapose this into one rule
-            (r'\'(.*?)\n(.*?)\'', String),
-            (r'"(.*?)\n(.*?)"', String),
+            (r'["\'](.*?)["\']', String),
+            (r'["\'](.*\n.*)*["\']', String),
         ],
 
     }