diff options
-rw-r--r-- | pygments/lexers/functional.py | 1 | ||||
-rw-r--r-- | tests/examplefiles/import.hs | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py index de48d992..5ba670a5 100644 --- a/pygments/lexers/functional.py +++ b/pygments/lexers/functional.py @@ -381,6 +381,7 @@ class HaskellLexer(RegexLexer): 'import': [ # Import statements (r'\s+', Text), + (r'"', String, 'string'), # after "funclist" state (r'\)', Punctuation, '#pop'), (r'qualified\b', Keyword), diff --git a/tests/examplefiles/import.hs b/tests/examplefiles/import.hs new file mode 100644 index 00000000..09058ae6 --- /dev/null +++ b/tests/examplefiles/import.hs @@ -0,0 +1,4 @@ +import "mtl" Control.Monad.Trans + +main :: IO () +main = putStrLn "hello world" |