diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-08 15:16:47 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-08 15:16:47 +0800 |
commit | dd7317a907b88cb102f45535ef19d67b47564c7f (patch) | |
tree | 834d10e71cce6ec2f8c6914b56de5ee4ecab6fa8 /script/parser/luadoc.lua | |
parent | dd37471ee6bd108fad9e3014a827621114ac4257 (diff) | |
download | lua-language-server-dd7317a907b88cb102f45535ef19d67b47564c7f.zip |
update
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 5b9bdfad..9b041870 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -224,6 +224,7 @@ local function parseIndexField(tp, parent) return nil end nextToken() + local start = getFinish() - 1 local indexTP, index = peekToken() if indexTP == 'name' then local field = parseType(parent) @@ -233,7 +234,7 @@ local function parseIndexField(tp, parent) nextToken() local class = { type = tp, - start = getStart(), + start = start, finish = getFinish(), parent = parent, } |