summaryrefslogtreecommitdiff
path: root/server/src/parser/lines.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-21 19:06:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-21 19:06:22 +0800
commit55bc880144344ed89fb95062606d4c4037179448 (patch)
treef932286545014e309b2b32cbe5fc8f61de1586ee /server/src/parser/lines.lua
parent94a5eebaf69057997f93a7f10850b9a0c7a42fe2 (diff)
downloadlua-language-server-55bc880144344ed89fb95062606d4c4037179448.zip
修正一个报错
Diffstat (limited to 'server/src/parser/lines.lua')
-rw-r--r--server/src/parser/lines.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/parser/lines.lua b/server/src/parser/lines.lua
index d3d5c7c5..ddb3e0b3 100644
--- a/server/src/parser/lines.lua
+++ b/server/src/parser/lines.lua
@@ -79,6 +79,9 @@ function mt:position(row, col, code)
end
local function isCharByte(byte)
+ if not byte then
+ return false
+ end
-- [0-9]
if byte >= 48 and byte <= 57 then
return true