From 1259b43389fb916d20ae2d8676682c4cb105e64d Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Thu, 2 Feb 2023 19:35:42 +0800 Subject: [PATCH] :bug: fix bug that cannot parse return true/false --- nasal_parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nasal_parse.h b/nasal_parse.h index 541e989..abbca3a 100644 --- a/nasal_parse.h +++ b/nasal_parse.h @@ -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()); }