summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/parser/guide.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 32f94584..5dee571c 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1008,6 +1008,8 @@ function m.getKeyName(obj)
return obj.field[1]
elseif tp == 'doc.field.name' then
return obj[1]
+ elseif tp == 'doc.type.field' then
+ return m.getKeyName(obj.name)
end
return m.getKeyNameOfLiteral(obj)
end