mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -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 :: Char -> ShowS
|
||||||
mkEsc s = case s of
|
mkEsc s = case s of
|
||||||
_ | elem s "\\\"'" -> showChar '\\' . showChar s
|
_ | elem s "\\\"" -> showChar '\\' . showChar s -- H (don't escape ')
|
||||||
'\n' -> showString "\\n"
|
'\n' -> showString "\\n"
|
||||||
'\t' -> showString "\\t"
|
'\t' -> showString "\\t"
|
||||||
_ -> showChar s
|
_ -> showChar s
|
||||||
|
|||||||
Reference in New Issue
Block a user