|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84553 - trunk/tools/boostbook/xsl
From: dnljms_at_[hidden]
Date: 2013-05-30 04:28:57
Author: danieljames
Date: 2013-05-30 04:28:56 EDT (Thu, 30 May 2013)
New Revision: 84553
URL: http://svn.boost.org/trac/boost/changeset/84553
Log:
Add some C++11 keywords to syntax highlighter.
Quickbook's highlight includes the alternative operator representations (`and`,
and_eq` etc.). They should possibly be added as well.
Text files modified:
trunk/tools/boostbook/xsl/source-highlight.xsl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/tools/boostbook/xsl/source-highlight.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/source-highlight.xsl (original)
+++ trunk/tools/boostbook/xsl/source-highlight.xsl 2013-05-30 04:28:56 EDT (Thu, 30 May 2013)
@@ -29,7 +29,7 @@
<xsl:variable name="digits" select="'1234567890'"/>
<xsl:variable name="number-chars" select="'1234567890abcdefABCDEFxX.'"/>
<xsl:variable name="keywords"
- select="' asm auto bool break case catch char class const const_cast continue default delete do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable namespace new operator private protected public register reinterpret_cast return short signed sizeof static static_cast struct switch template this throw true try typedef typeid typename union unsigned using virtual void volatile wchar_t while '"/>
+ select="' alignas ailgnof asm auto bool break case catch char char16_t char32_t class const const_cast constexpr continue decltype default delete do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable namespace new noexcept nullptr operator private protected public register reinterpret_cast return short signed sizeof static static_cast struct switch template this thread_local throw true try typedef typeid typename union unsigned using virtual void volatile wchar_t while '"/>
<xsl:variable name="operators4" select="'%:%:'"/>
<xsl:variable name="operators3" select="'>>= <<= ->* ...'"/>
<xsl:variable name="operators2" select="'.* :: ## <: :> <% %> %: += -= *= /= %= ^= &= |= << >> == != <= >= && || ++ -- ->'"/>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk