diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-11 17:07:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-11 17:07:31 +0800 |
commit | 62dee501181ebfa374c827df5a15ea9461f38b73 (patch) | |
tree | 0e35d3e05bff26818c5bdc6bcba900163be7d516 /script/core | |
parent | f10dd2af22efeb5330f2da23d615ff7bc213b1eb (diff) | |
download | lua-language-server-62dee501181ebfa374c827df5a15ea9461f38b73.zip |
update
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/noder.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 86bd311b..277f4b94 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -424,8 +424,10 @@ function m.compileNode(noders, source) if valueID then -- x = y : x -> y pushForward(noders, id, valueID, 'set') - -- 参数禁止反向查找赋值 - if valueID:sub(1, 2) ~= 'p:' then + -- 参数/call禁止反向查找赋值 + local valueType = valueID:match '^.-:' + if valueType ~= 'p:' + and valueType ~= 'c:' then pushBackward(noders, valueID, id, 'set') end end |