Func section tostring fixes

This commit is contained in:
Sasha Koshka 2022-09-29 02:43:24 -04:00
parent 94967d25e2
commit 7374de2633
1 changed files with 7 additions and 3 deletions

View File

@ -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: