diff options
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r-- | script/parser/guide.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 108bccf5..8d681fdc 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -888,11 +888,11 @@ function m.getKeyName(obj) elseif tp == 'doc.alias' then return obj.alias[1] elseif tp == 'doc.field' then - return obj.field[1] + return tostring(obj.field[1]) elseif tp == 'doc.field.name' then - return obj[1] + return tostring(obj[1]) elseif tp == 'doc.type.field' then - return obj.name[1] + return tostring(obj.name[1]) elseif tp == 'dummy' then return obj[1] end @@ -952,14 +952,14 @@ function m.getKeyType(obj) elseif tp == 'doc.alias' then return 'string' elseif tp == 'doc.field' then - return 'string' + return type(obj.field[1]) elseif tp == 'doc.type.field' then - return 'string' + return type(obj.name[1]) elseif tp == 'dummy' then return 'string' end if tp == 'doc.field.name' then - return 'string' + return type(obj[1]) end return m.getKeyTypeOfLiteral(obj) end |