diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-07-07 11:43:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-07-07 11:43:08 +0800 |
commit | a2bb5a377517286b9c517af4be2b53a82c61f646 (patch) | |
tree | 6fe63aa38d562ed46692f2309a2d4f75731147e4 /script/parser | |
parent | dc15ea90474e63c5203e9504f44aeea0b08db99e (diff) | |
download | lua-language-server-a2bb5a377517286b9c517af4be2b53a82c61f646.zip |
make type-check happy
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/compile.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua index 6542efbd..5321d9b8 100644 --- a/script/parser/compile.lua +++ b/script/parser/compile.lua @@ -470,7 +470,7 @@ end local function parseLongString() local start, finish, mark = sfind(Lua, '^(%[%=*%[)', Tokens[Index]) - if not mark then + if not start then return nil end fastForwardToken(finish + 1) |