mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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
|
||||
|
||||
isPunct :: Char -> Bool
|
||||
isPunct c = c `elem` "-_.;.,?!"
|
||||
isPunct c = c `elem` "-_.;.,?!()[]{}"
|
||||
|
||||
comments :: [String] -> ShowS
|
||||
comments = unlinesS . map (showString . ("; " ++))
|
||||
|
||||
Reference in New Issue
Block a user