diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 19:06:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 19:06:22 +0800 |
commit | 55bc880144344ed89fb95062606d4c4037179448 (patch) | |
tree | f932286545014e309b2b32cbe5fc8f61de1586ee /server/src/parser/lines.lua | |
parent | 94a5eebaf69057997f93a7f10850b9a0c7a42fe2 (diff) | |
download | lua-language-server-55bc880144344ed89fb95062606d4c4037179448.zip |
修正一个报错
Diffstat (limited to 'server/src/parser/lines.lua')
-rw-r--r-- | server/src/parser/lines.lua | 3 |
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 |