X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fuvldoc%2Fluasrc%2Fuvldoc%2Fproto%2Fxhtml%2Fsection.xml;fp=libs%2Fuvldoc%2Fluasrc%2Fuvldoc%2Fproto%2Fxhtml%2Fsection.xml;h=ed85c25ccea0200c3e7afeee7b0b2e3debf71ff5;hp=e5c4b3e6670920aaa7714681f2b315c715b075c6;hb=c6492df6131ca08a02b80a89df35e3c3d7ea603e;hpb=c8ef012b3a73fbf548379b386ead43779b744562 diff --git a/libs/uvldoc/luasrc/uvldoc/proto/xhtml/section.xml b/libs/uvldoc/luasrc/uvldoc/proto/xhtml/section.xml index e5c4b3e66..ed85c25cc 100644 --- a/libs/uvldoc/luasrc/uvldoc/proto/xhtml/section.xml +++ b/libs/uvldoc/luasrc/uvldoc/proto/xhtml/section.xml @@ -3,8 +3,17 @@ 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 ) @@ -140,8 +149,8 @@ if (i==0) == v.required then