Commits

Tim Hatch committed 3182606

Fix parsing of haskell imports (#527)

Comments (0)

Files changed (2)

pygments/lexers/functional.py

         'import': [
             # Import statements
             (r'\s+', Text),
+            (r'"', String, 'string'),
             # after "funclist" state
             (r'\)', Punctuation, '#pop'),
             (r'qualified\b', Keyword),

tests/examplefiles/import.hs

+import "mtl" Control.Monad.Trans
+
+main :: IO ()
+main = putStrLn "hello world"