diff options
Diffstat (limited to 'script/core/noder.lua')
-rw-r--r-- | script/core/noder.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 566a7445..dd6ba22b 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -149,6 +149,8 @@ local function getKey(source) and index.type ~= 'table' then return ANY_FIELD_CHAR, source.parent end + elseif source.type == 'tableexp' then + return tostring(source.tindex), source.parent elseif source.type == 'table' then return 't:' .. source.start, nil elseif source.type == 'label' then @@ -1084,7 +1086,7 @@ function m.compileNode(noders, source) elseif firstField.type == 'tableindex' then pushForward(noders, keyID, getID(firstField.index)) pushForward(noders, valueID, getID(firstField.value)) - else + elseif firstField.type == 'tableexp' then pushForward(noders, keyID, 'dn:integer') pushForward(noders, valueID, getID(firstField)) end |