From 7374de26331a3a5c51316d4b1e99e051ddb77b66 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 29 Sep 2022 02:43:24 -0400 Subject: [PATCH] Func section tostring fixes --- parser/tree-tostring.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/parser/tree-tostring.go b/parser/tree-tostring.go index b6e9d64..c0bef0e 100644 --- a/parser/tree-tostring.go +++ b/parser/tree-tostring.go @@ -278,9 +278,13 @@ func (phrase Phrase) ToString (indent int, ownLine bool) (output string) { output += "[" switch phrase.kind { - case - PhraseKindOperator, - PhraseKindAssign: + case PhraseKindCase: + output += ":" + + case PhraseKindAssign: + output += "=" + + case PhraseKindOperator: switch phrase.operator { case lexer.TokenKindColon: