local table = require "table"
function _parse_ref( r )
- local k, v = r:match("([^.]+)%.([^.]+)")
- return k and self:_section_filename(k, v)
+ local k, v, h = r:match("([^.]+)%.([^.]+)%.([^.]+)")
+ if not k then
+ k, v = r:match("([^.]+)%.([^.]+)")
+ end
+ if k then
+ if h then
+ return self:_variable_target(k, v, h), true
+ else
+ return self:_section_filename(k, v)
+ end
+ end
end
function _parse_dep( r, c, s, o )
<ul class="variable-reference-index">
<% for k, d in ipairs(v.valueof) do %>
<li>
- <% local t = _parse_ref(d)
- if t then %>Section of type <a href="<%=t%>"><% end %>
+ <% local t, x = _parse_ref(d)
+ if t then %><%=x and "Value of" or "Section of type"%> <a href="<%=t%>"><% end %>
<%=d%>
<% if t then%></a><% end %>
</li>