From 8fd3a1bbabcd9dfba8d2b9c89d9569941df001e7 Mon Sep 17 00:00:00 2001 From: Dibyendu Majumdar Date: Sat, 20 Feb 2021 23:35:01 +0000 Subject: [PATCH] issue #214 since we haven't implemented boolean type annotation fully, the parser will no longer recognize the :boolean annotation. --- src/lparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lparser.c b/src/lparser.c index 4b742b8..a73a7a2 100644 --- a/src/lparser.c +++ b/src/lparser.c @@ -1238,8 +1238,8 @@ static ravitype_t declare_localvar(LexState *ls, TString **pusertype) { tt = RAVI_TTABLE; else if (strcmp(str, "string") == 0) tt = RAVI_TSTRING; - else if (strcmp(str, "boolean") == 0) - tt = RAVI_TBOOLEAN; + //else if (strcmp(str, "boolean") == 0) + // tt = RAVI_TBOOLEAN; else if (strcmp(str, "any") == 0) tt = RAVI_TANY; else {