ThirdParty/Pygments/pygments/lexers/textfmts.py

changeset 5072
aab59042fefb
parent 4697
c2e9bf425554
child 5713
6762afd9f963
--- a/ThirdParty/Pygments/pygments/lexers/textfmts.py	Wed Jul 27 18:10:08 2016 +0200
+++ b/ThirdParty/Pygments/pygments/lexers/textfmts.py	Fri Jul 29 19:50:40 2016 +0200
@@ -122,6 +122,11 @@
 
     flags = re.DOTALL
 
+    def get_tokens_unprocessed(self, text, stack=('root',)):
+        """Reset the content-type state."""
+        self.content_type = None
+        return RegexLexer.get_tokens_unprocessed(self, text, stack)
+
     def header_callback(self, match):
         if match.group(1).lower() == 'content-type':
             content_type = match.group(5).strip()

eric ide

mercurial