projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bae0a5f
)
Add OPTIONS_CATCH,DERIVE,YHC to those that GHC knows about; trac #2847
author
Ian Lynagh
<igloo@earth.li>
Tue, 9 Dec 2008 19:17:24 +0000
(19:17 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 9 Dec 2008 19:17:24 +0000
(19:17 +0000)
compiler/parser/Lexer.x
patch
|
blob
|
history
diff --git
a/compiler/parser/Lexer.x
b/compiler/parser/Lexer.x
index
3d13bc0
..
e8f54ba
100644
(file)
--- a/
compiler/parser/Lexer.x
+++ b/
compiler/parser/Lexer.x
@@
-271,7
+271,7
@@
$tab+ { warn Opt_WarnTabs (text "Tab character") }
-- We ignore all these pragmas, but don't generate a warning for them
-- CFILES is a hugs-only thing.
-- We ignore all these pragmas, but don't generate a warning for them
-- CFILES is a hugs-only thing.
- "{-#" $whitechar* (OPTIONS_HUGS|options_hugs|OPTIONS_NHC98|options_nhc98|OPTIONS_JHC|options_jhc|CFILES|cfiles) / { notFollowedByPragmaChar }
+ "{-#" $whitechar* (OPTIONS_(HUGS|hugs|NHC98|nhc98|JHC|jhc|YHC|yhc|CATCH|catch|DERIVE|derive)|CFILES|cfiles) / { notFollowedByPragmaChar }
{ nested_comment lexToken }
-- ToDo: should only be valid inside a pragma:
{ nested_comment lexToken }
-- ToDo: should only be valid inside a pragma: