🐛 fix bug that cannot parse return true/false

This commit is contained in:
ValKmjolnir 2023-02-02 19:35:42 +08:00
parent acb2e3664c
commit 1259b43389
1 changed files with 1 additions and 1 deletions

View File

@ -1002,7 +1002,7 @@ ast parse::ret_expr() {
tok type=toks[ptr].type;
if (type==tok::tknil || type==tok::num || type==tok::str || type==tok::id ||
type==tok::func || type==tok::sub || type==tok::opnot || type==tok::lcurve ||
type==tok::lbracket || type==tok::lbrace
type==tok::lbracket || type==tok::lbrace || type==tok::tktrue || type==tok::tkfalse
) {
node.add(calc());
}