File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 77* ` FIX ` [ #2083 ]
88* ` FIX ` [ #2088 ]
99* ` FIX ` [ #2110 ]
10+ * ` FIX ` [ #2129 ]
1011
1112[ #2038 ] : https://github.com/LuaLS/lua-language-server/issues/2038
1213[ #2042 ] : https://github.com/LuaLS/lua-language-server/issues/2042
1314[ #2062 ] : https://github.com/LuaLS/lua-language-server/issues/2062
1415[ #2083 ] : https://github.com/LuaLS/lua-language-server/issues/2083
1516[ #2088 ] : https://github.com/LuaLS/lua-language-server/issues/2088
1617[ #2110 ] : https://github.com/LuaLS/lua-language-server/issues/2110
18+ [ #2129 ] : https://github.com/LuaLS/lua-language-server/issues/2129
1719
1820## 3.6.21
1921` 2023-5-24 `
Original file line number Diff line number Diff line change @@ -138,12 +138,20 @@ local Care = util.switch()
138138 local uri = guide .getUri (loc )
139139 -- 1. 值为函数的局部变量 | Local variable whose value is a function
140140 if vm .getInfer (source ):hasFunction (uri ) then
141- results [# results + 1 ] = {
142- start = source .start ,
143- finish = source .finish ,
144- type = define .TokenTypes [' function' ],
145- modifieres = define .TokenModifiers .declaration ,
146- }
141+ if source .type == ' local' then
142+ results [# results + 1 ] = {
143+ start = source .start ,
144+ finish = source .finish ,
145+ type = define .TokenTypes [' function' ],
146+ modifieres = define .TokenModifiers .declaration ,
147+ }
148+ else
149+ results [# results + 1 ] = {
150+ start = source .start ,
151+ finish = source .finish ,
152+ type = define .TokenTypes [' function' ],
153+ }
154+ end
147155 return
148156 end
149157 -- 3. 特殊变量 | Special variableif source[1] == '_ENV' then
You can’t perform that action at this time.
0 commit comments