diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-12 17:39:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-12 17:39:31 +0800 |
commit | fa91a4ddca10521eab40de9b21fbf79ddc86f7aa (patch) | |
tree | 5ac4ac22a1be36eaa7f14edfadbe94fc111788c1 /script/parser | |
parent | f73fe1369a79344394bf258df1782b9aafe4eff5 (diff) | |
download | lua-language-server-fa91a4ddca10521eab40de9b21fbf79ddc86f7aa.zip |
fix #730
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/newparser.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index 96036416..16cdc28b 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -2114,6 +2114,13 @@ local function parseParams(params) finish = getPosition(Tokens[Index] + #token - 1, 'right'), } end + if isKeyWord(token) then + pushError { + type = 'KEYWORD', + start = getPosition(Tokens[Index], 'left'), + finish = getPosition(Tokens[Index] + #token - 1, 'right'), + } + end Index = Index + 2 goto CONTINUE end |