diff options
Diffstat (limited to 'go/src/printer')
| -rw-r--r-- | go/src/printer/printer.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/go/src/printer/printer.go b/go/src/printer/printer.go index 428958e..1b8e9fe 100644 --- a/go/src/printer/printer.go +++ b/go/src/printer/printer.go @@ -32,7 +32,9 @@ func Pr_str(obj types.MalType, print_readably bool) string { } return "{" + strings.Join(str_list, " ") + "}" case string: - if print_readably { + if strings.HasPrefix(tobj, "\u029e") { + return ":" + tobj[2:len(tobj)] + } else if print_readably { return `"` + strings.Replace( strings.Replace( strings.Replace(tobj,`\`,`\\`, -1), |
