Commits

Tim Hatch  committed 3182606

Fix parsing of haskell imports (#527)

  • Participants
  • Parent commits 02123e9

Comments (0)

Files changed (2)

File pygments/lexers/functional.py

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

File tests/examplefiles/import.hs

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