File tree Expand file tree Collapse file tree 1 file changed +7
-19
lines changed
Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ local searchFieldSwitch = util.switch()
239239 : case ' global'
240240 : call (function (suri , node , key , pushResult )
241241 if node .cate == ' variable' then
242- if key then
242+ if key ~= vm . ANY then
243243 if type (key ) ~= ' string' then
244244 return
245245 end
@@ -1267,25 +1267,13 @@ local compilerSwitch = util.switch()
12671267 end
12681268 end
12691269 else
1270- if guide .isGet (source ) then
1271- -- local node = vm.traceNode(source)
1272- -- if node then
1273- -- vm.setNode(source, node)
1274- -- end
1275- --- @cast key string
1276- vm .compileByParentNode (source .node , key , function (src )
1277- vm .setNode (source , vm .compileNode (src ))
1278- end )
1279- else
1280- --- @cast key string
1281- if source .value then
1282- vm .setNode (source , vm .compileNode (source .value ))
1283- else
1284- vm .compileByParentNode (source .node , key , function (src )
1285- vm .setNode (source , vm .compileNode (src ))
1286- end )
1270+ --- @cast key string
1271+ vm .compileByParentNode (source .node , key , function (src )
1272+ vm .setNode (source , vm .compileNode (src ))
1273+ if src .value then
1274+ vm .setNode (source , vm .compileNode (src .value ))
12871275 end
1288- end
1276+ end )
12891277 end
12901278 end )
12911279 : case ' setglobal'
You can’t perform that action at this time.
0 commit comments