diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-07 16:21:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-07 16:21:25 +0800 |
commit | 6194e11b4153a4fba16a5ba15876581b8d3cde43 (patch) | |
tree | 01b24dc08ca58d96ca1050df2063a2a9e5c8f8c7 /script/parser | |
parent | 63576455aae64574b8e1f989d4380233c5d0bf66 (diff) | |
download | lua-language-server-6194e11b4153a4fba16a5ba15876581b8d3cde43.zip |
update semantic-tokens
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/newparser.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index 7ff5dca9..b7868646 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -2796,6 +2796,7 @@ local function compileExpAsAction(exp) end local function parseLocal() + local locPos = getPosition(Tokens[Index], 'left') Index = Index + 2 skipSpace() local word = peekWord() @@ -2828,6 +2829,7 @@ local function parseLocal() return nil end local loc = createLocal(name, parseLocalAttrs()) + loc.locPos = locPos loc.effect = maxinteger pushActionIntoCurrentChunk(loc) skipSpace() |