Remove more punctuation characters when printing GSL grammars

This commit is contained in:
bringert
2004-10-19 10:27:28 +00:00
parent 84c306d18c
commit 733d527797

View File

@@ -57,7 +57,7 @@ rmPunct (Tok t:ss) | all isPunct (prt t) = rmPunct ss
rmPunct (s:ss) = s : rmPunct ss
isPunct :: Char -> Bool
isPunct c = c `elem` "-_.;.,?!"
isPunct c = c `elem` "-_.;.,?!()[]{}"
comments :: [String] -> ShowS
comments = unlinesS . map (showString . ("; " ++))