aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2006-03-28 20:16:55 +0000
committerTim Yamin <plasmaroo@gentoo.org>2006-03-28 20:16:55 +0000
commitdf885d57bb41ff04c243f616579f202f619e0b4f (patch)
tree951f0526821a0d68ed679594a8591ef4cf3cec65
parentAdd the beginning of the tools reference section, and some new things for the... (diff)
downloaddevmanual-df885d57bb41ff04c243f616579f202f619e0b4f.tar.gz
devmanual-df885d57bb41ff04c243f616579f202f619e0b4f.tar.bz2
devmanual-df885d57bb41ff04c243f616579f202f619e0b4f.zip
Fix '((' highlighting.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/devmanual/trunk@30 176d3534-300d-0410-8db8-84e73ed771c3
-rw-r--r--devbook.xsl7
1 files changed, 7 insertions, 0 deletions
diff --git a/devbook.xsl b/devbook.xsl
index 4b6dcaa..03d1e76 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -73,6 +73,13 @@
<span class="Identifier">$<xsl:value-of select="substring($data, 2)"/></span>
</xsl:when>
+ <xsl:when test="substring($data, 1, 1) = '(' and not(contains($data, ')'))">
+ <span class="PreProc">(</span>
+ <xsl:call-template name="highlight-subtokenate">
+ <xsl:with-param name="data" select="substring($data, 2, string-length($data))"/>
+ </xsl:call-template>
+ </xsl:when>
+
<xsl:when test="$nokeywords">
<xsl:value-of select="$data"/>
</xsl:when>