Prevent reading preceding sibling's docblock
parent
88b1a9ba49
commit
c3d0839b9a
|
@ -189,8 +189,10 @@
|
||||||
<function name="xt:get-docblock" as="comment()?">
|
<function name="xt:get-docblock" as="comment()?">
|
||||||
<param name="context" as="node()" />
|
<param name="context" as="node()" />
|
||||||
|
|
||||||
<sequence select="$context/preceding-sibling::comment()[1][
|
<sequence select="( ( $context/preceding-sibling::node()[
|
||||||
xt:is-docblock( . ) ]" />
|
not( . instance of text() ) ] )
|
||||||
|
[ last() ] )
|
||||||
|
[ . instance of comment() ]" />
|
||||||
</function>
|
</function>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue