summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-15 20:24:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-15 20:24:38 +0800
commite70f82c0534c8973b3ad809a5ad72919412a832b (patch)
treed82e9086c6bfa49bbda40226440b6538708192b6 /script/parser
parent281031ba5c41ebe34bd6c8634f1436fe1341fcaa (diff)
downloadlua-language-server-e70f82c0534c8973b3ad809a5ad72919412a832b.zip
update
Diffstat (limited to 'script/parser')
-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