Skip to content

Commit

Permalink
[ #202 #169 ] remove obsolete warning about block comment delims >= 2
Browse files Browse the repository at this point in the history
The Haskell backend now supports block comment delimiters of any length.
  • Loading branch information
andreasabel committed Dec 14, 2019
1 parent 78a6391 commit 2d3da13
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions source/src/BNFC/GetCF.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ parseCFP opts target content = do
-- Note: the match against () is necessary for type class instance resolution.
() <- when (nRules == 0) $ die $ "ERROR: the grammar contains no rules."
putStrLn $ show nRules +++ "rules accepted\n"

-- Print a warning if comment delimiter are bigger than 2 characters
let c3s = [(b,e) | (b,e) <- fst (comments cf), length b > 2 || length e > 2]
unless (null c3s) $ do
putStrLn "Warning: comment delimiters longer than 2 characters ignored in Haskell:"
mapM_ putStrLn [b +++ "-" +++ e | (b,e) <- c3s]
return cfp

where
Expand Down

0 comments on commit 2d3da13

Please sign in to comment.