$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r77764 - trunk/tools/boostbook/xsl
From: steven_at_[hidden]
Date: 2012-04-04 15:00:54
Author: steven_watanabe
Date: 2012-04-04 15:00:53 EDT (Wed, 04 Apr 2012)
New Revision: 77764
URL: http://svn.boost.org/trac/boost/changeset/77764
Log:
Highlight comments in jam.
Text files modified: 
   trunk/tools/boostbook/xsl/source-highlight.xsl |    17 +++++++++++++++++                       
   1 files changed, 17 insertions(+), 0 deletions(-)
Modified: trunk/tools/boostbook/xsl/source-highlight.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/source-highlight.xsl	(original)
+++ trunk/tools/boostbook/xsl/source-highlight.xsl	2012-04-04 15:00:53 EDT (Wed, 04 Apr 2012)
@@ -488,6 +488,23 @@
           <xsl:with-param name="text" select="substring($text, 2)"/>
         </xsl:call-template>
       </xsl:when>
+      <xsl:when test="substring($text, 1, 1) = '#'">
+        <xsl:choose>
+          <xsl:when test="contains($text, '
')">
+            <xsl:call-template name="highlight-comment">
+              <xsl:with-param name="text" select="substring-before($text, '
')"/>
+            </xsl:call-template>
+            <xsl:call-template name="highlight-jam-text">
+              <xsl:with-param name="text" select="concat('
', substring-after($text, '
'))"/>
+            </xsl:call-template>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:call-template name="highlight-comment">
+              <xsl:with-param name="text" select="$text"/>
+            </xsl:call-template>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:when>
       <xsl:otherwise>
         <xsl:variable name="length">
           <xsl:call-template name="jam-word-length">