mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 13:09:33 -06:00
Do not escape single quotes in strings in PrintGF. This seems to be unmarked hand-hacked behaviour that the old pretty printer had.
This commit is contained in:
@@ -71,7 +71,7 @@ instance Print Char where
|
||||
|
||||
mkEsc :: Char -> ShowS
|
||||
mkEsc s = case s of
|
||||
_ | elem s "\\\"'" -> showChar '\\' . showChar s
|
||||
_ | elem s "\\\"" -> showChar '\\' . showChar s -- H (don't escape ')
|
||||
'\n' -> showString "\\n"
|
||||
'\t' -> showString "\\t"
|
||||
_ -> showChar s
|
||||
|
||||
Reference in New Issue
Block a user