diff options
Diffstat (limited to 'xsl')
-rw-r--r-- | xsl/lang.highlight.c.xsl | 2 | ||||
-rw-r--r-- | xsl/lang.highlight.ebuild.xsl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xsl/lang.highlight.c.xsl b/xsl/lang.highlight.c.xsl index 730182c..089de50 100644 --- a/xsl/lang.highlight.c.xsl +++ b/xsl/lang.highlight.c.xsl @@ -59,7 +59,7 @@ </span> </xsl:when> - <xsl:when test="$commentOpen != $commentClosed and position() > $commentOpen"> + <xsl:when test="$commentOpen != $commentClosed and position() > $commentOpen"> <span class="Comment"><xsl:value-of select="."/></span> </xsl:when> diff --git a/xsl/lang.highlight.ebuild.xsl b/xsl/lang.highlight.ebuild.xsl index 9f90fb1..bbf9c64 100644 --- a/xsl/lang.highlight.ebuild.xsl +++ b/xsl/lang.highlight.ebuild.xsl @@ -390,7 +390,7 @@ <!-- See if we should be processing comments by now; we need to test for two possible cases: * commentSeeker != 0 (so we have a comment), or, * the first token is a "#" --> - <xsl:when test="($commentSeeker != 0 and position() > $commentSeeker) or substring(../*[position()=1], 1, 1) = $lang.highlight.ebuild.commentChar or + <xsl:when test="($commentSeeker != 0 and position() > $commentSeeker) or substring(../*[position()=1], 1, 1) = $lang.highlight.ebuild.commentChar or . = $lang.highlight.ebuild.commentChar"> <span class="Comment"><xsl:value-of select="."/></span> </xsl:when> |