summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-04 11:47:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-04 11:47:02 +0800
commite44b3de412d136bc14a5b43740297cd3aa4a67b9 (patch)
tree89aa363ba572d35e107f0c12acb6dd34022b52d0 /script/parser
parenta8d71363b79537e2f42d9131cfed8ff6665f4640 (diff)
downloadlua-language-server-e44b3de412d136bc14a5b43740297cd3aa4a67b9.zip
fix nil
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/parse.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/parse.lua b/script/parser/parse.lua
index ef0ed04e..e4935e7a 100644
--- a/script/parser/parse.lua
+++ b/script/parser/parse.lua
@@ -11,7 +11,7 @@ return function (self, lua, mode, version, options)
errs = errs,
diags = diags,
comms = comms,
- options = options,
+ options = options or {},
pushError = function (err)
if err.finish < err.start then
err.finish = err.start