Commits

Tim Hatch  committed 5169fd0

Allow rfc822-style continuation in ini files (#494)

  • Participants
  • Parent commits 7d1273e

Comments (0)

Files changed (2)

File pygments/lexers/text.py

             (r'\s+', Text),
             (r'[;#].*?$', Comment),
             (r'\[.*?\]$', Keyword),
-            (r'(.*?)([ \t]*)(=)([ \t]*)(.*?)$',
+            (r'(.*?)([ \t]*)(=)([ \t]*)(.*(?:\n[ \t].+)*)',
              bygroups(Name.Attribute, Text, Operator, Text, String))
         ]
     }

File tests/examplefiles/test.ini

+[section]
+
+foo = bar
+continued = foo
+  baz
+conttwo =
+  foo
+; comment
+# comment
+