Skip to content

Commit e23fa58

Browse files
committed
fix #926
1 parent 8357e51 commit e23fa58

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 2.6.3
44
* `FIX` new files are not loaded correctly
5+
* `FIX` [#926](https://github.com/sumneko/lua-language-server/issues/926)
56

67
## 2.6.2
78
`2022-1-25`

script/core/semantic-tokens.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ local Care = util.switch()
152152
return
153153
end
154154
-- 4. 函数的参数 | Function parameters
155-
if source.parent and source.parent.type == 'funcargs' then
155+
if loc.parent and loc.parent.type == 'funcargs' then
156156
results[#results+1] = {
157157
start = source.start,
158158
finish = source.finish,
159159
type = define.TokenTypes.parameter,
160-
modifieres = define.TokenModifiers.declaration,
160+
modifieres = loc == source and define.TokenModifiers.declaration or nil,
161161
}
162162
return
163163
end

0 commit comments

Comments
 (0)