forked from GitHub/gf-core
Remove more punctuation characters when printing GSL grammars
This commit is contained in:
@@ -57,7 +57,7 @@ rmPunct (Tok t:ss) | all isPunct (prt t) = rmPunct ss
|
|||||||
rmPunct (s:ss) = s : rmPunct ss
|
rmPunct (s:ss) = s : rmPunct ss
|
||||||
|
|
||||||
isPunct :: Char -> Bool
|
isPunct :: Char -> Bool
|
||||||
isPunct c = c `elem` "-_.;.,?!"
|
isPunct c = c `elem` "-_.;.,?!()[]{}"
|
||||||
|
|
||||||
comments :: [String] -> ShowS
|
comments :: [String] -> ShowS
|
||||||
comments = unlinesS . map (showString . ("; " ++))
|
comments = unlinesS . map (showString . ("; " ++))
|
||||||
|
|||||||
Reference in New Issue
Block a user