summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-22 19:12:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-22 19:12:45 +0800
commit9091e064ab23b6b158551a4d256b65b033cb1688 (patch)
treecccfe054421dee937fb46390c70ba48869e5d7a1 /script/parser/luadoc.lua
parent79f76ed6611701ca5994fe110eb09e9309499918 (diff)
downloadlua-language-server-9091e064ab23b6b158551a4d256b65b033cb1688.zip
stash
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index c4f40ac4..94be437f 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -69,6 +69,7 @@ Symbol <- ({} {
ev = '\v',
name = (m.R('az', 'AZ', '09', '\x80\xff') + m.S('_')) * (m.R('az', 'AZ', '__', '09', '\x80\xff') + m.S('_.*-'))^0,
Char10 = function (char)
+ ---@type integer?
char = tonumber(char)
if not char or char < 0 or char > 255 then
return ''