Commit 0345a837 authored by Ian Lynagh's avatar Ian Lynagh

Add OPTIONS_CATCH,DERIVE,YHC to those that GHC knows about; trac #2847

parent bae0a5fd
......@@ -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.
"{-#" $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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment