1
0
Fork 0

Prevent reading preceding sibling's docblock

master
Mike Gerwitz 2015-09-28 23:59:33 -04:00
parent 88b1a9ba49
commit c3d0839b9a
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 4 additions and 2 deletions

View File

@ -189,8 +189,10 @@
<function name="xt:get-docblock" as="comment()?">
<param name="context" as="node()" />
<sequence select="$context/preceding-sibling::comment()[1][
xt:is-docblock( . ) ]" />
<sequence select="( ( $context/preceding-sibling::node()[
not( . instance of text() ) ] )
[ last() ] )
[ . instance of comment() ]" />
</function>