Fixed the regular expression on #INCLUDE and #USE to allow any white-space at the end

This commit is contained in:
Neil Brown 2009-04-04 15:34:43 +00:00
parent c2174743e7
commit 8400de520b

View File

@ -211,7 +211,7 @@ directives =
, (mkRegex "^PRAGMA +(.*)$", handlePragma)
]
where
mkRegex' s = mkRegex (s ++ " *(--.*)?$")
mkRegex' s = mkRegex (s ++ "\\s*(--.*)?$")
-- | Handle a directive that can be ignored.
handleIgnorable :: DirectiveFunc