From 3e0109b302bbd9f849d71cbc3efcc905d5271e4e Mon Sep 17 00:00:00 2001 From: Krzysztof Gogolewski Date: Sat, 24 Aug 2013 16:40:06 +0200 Subject: Remove deprecated _scc_ (#8170) --- compiler/parser/Parser.y.pp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'compiler/parser/Parser.y.pp') diff --git a/compiler/parser/Parser.y.pp b/compiler/parser/Parser.y.pp index b520d62fbc..b74d55d316 100644 --- a/compiler/parser/Parser.y.pp +++ b/compiler/parser/Parser.y.pp @@ -227,7 +227,6 @@ incorrect. 'then' { L _ ITthen } 'type' { L _ ITtype } 'where' { L _ ITwhere } - '_scc_' { L _ ITscc } -- ToDo: remove 'forall' { L _ ITforall } -- GHC extension keywords 'foreign' { L _ ITforeign } @@ -1504,9 +1503,7 @@ optSemi :: { Bool } | {- empty -} { False } scc_annot :: { Located FastString } - : '_scc_' STRING {% (addWarning Opt_WarnWarningsDeprecations (getLoc $1) (text "_scc_ is deprecated; use an SCC pragma instead")) >>= \_ -> - ( do scc <- getSCC $2; return $ LL scc ) } - | '{-# SCC' STRING '#-}' {% do scc <- getSCC $2; return $ LL scc } + : '{-# SCC' STRING '#-}' {% do scc <- getSCC $2; return $ LL scc } | '{-# SCC' VARID '#-}' { LL (getVARID $2) } hpc_annot :: { Located (FastString,(Int,Int),(Int,Int)) } -- cgit v1.2.1