summaryrefslogtreecommitdiff
path: root/script/parser/newparser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/newparser.lua')
-rw-r--r--script/parser/newparser.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua
index 9034480e..9e8e5b94 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -1405,7 +1405,10 @@ local function parseExpList(mini)
end
local nextToken = peekWord()
if isKeyWord(nextToken)
- and nextToken ~= 'function' then
+ and nextToken ~= 'function'
+ and nextToken ~= 'true'
+ and nextToken ~= 'false'
+ and nextToken ~= 'nil' then
break
end
end