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: