Fixed the regular expression on #INCLUDE and #USE to allow any white-space at the end
This commit is contained in:
parent
c2174743e7
commit
8400de520b
|
@ -211,7 +211,7 @@ directives =
|
||||||
, (mkRegex "^PRAGMA +(.*)$", handlePragma)
|
, (mkRegex "^PRAGMA +(.*)$", handlePragma)
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
mkRegex' s = mkRegex (s ++ " *(--.*)?$")
|
mkRegex' s = mkRegex (s ++ "\\s*(--.*)?$")
|
||||||
|
|
||||||
-- | Handle a directive that can be ignored.
|
-- | Handle a directive that can be ignored.
|
||||||
handleIgnorable :: DirectiveFunc
|
handleIgnorable :: DirectiveFunc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user