From b8ee29b22fbaa7a01f2754b4d6dd9af52e02017c Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 18 Dec 2014 20:33:49 -0600 Subject: All: add keywords. Also, fix nth and count to match cloure. --- go/src/printer/printer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'go/src/printer') 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), -- cgit v1.2.3