Fix unary parsing.

This commit is contained in:
Stephen Chung
2021-11-13 09:50:49 +08:00
parent 42bef4c28c
commit a227963f7a
4 changed files with 24 additions and 16 deletions

View File

@@ -806,6 +806,7 @@ impl Token {
match self {
LexError(_) |
SemiColon | // ; - is unary
Colon | // #{ foo: - is unary
Comma | // ( ... , -expr ) - is unary
//Period |
LeftBrace | // { -expr } - is unary