|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73571 - in trunk/tools/quickbook: src test/snippets
From: dnljms_at_[hidden]
Date: 2011-08-06 08:42:53
Author: danieljames
Date: 2011-08-06 08:42:52 EDT (Sat, 06 Aug 2011)
New Revision: 73571
URL: http://svn.boost.org/trac/boost/changeset/73571
Log:
Quickbook: Fix C style pass-thru comments.
Text files modified:
trunk/tools/quickbook/src/code_snippet.cpp | 2 +-
trunk/tools/quickbook/test/snippets/pass_thru.cpp | 7 +++++++
trunk/tools/quickbook/test/snippets/pass_thru.gold | 7 +++++++
3 files changed, 15 insertions(+), 1 deletions(-)
Modified: trunk/tools/quickbook/src/code_snippet.cpp
==============================================================================
--- trunk/tools/quickbook/src/code_snippet.cpp (original)
+++ trunk/tools/quickbook/src/code_snippet.cpp 2011-08-06 08:42:52 EDT (Sat, 06 Aug 2011)
@@ -293,7 +293,7 @@
>> (cl::eol_p | cl::end_p)
) [boost::bind(&actions_type::pass_thru, &actions, _1, _2)]
| cl::confix_p(
- "/*`",
+ "/*=",
(*cl::anychar_p) [boost::bind(&actions_type::pass_thru, &actions, _1, _2)],
"*/"
)
Modified: trunk/tools/quickbook/test/snippets/pass_thru.cpp
==============================================================================
--- trunk/tools/quickbook/test/snippets/pass_thru.cpp (original)
+++ trunk/tools/quickbook/test/snippets/pass_thru.cpp 2011-08-06 08:42:52 EDT (Sat, 06 Aug 2011)
@@ -19,4 +19,11 @@
int x;
//->
};
+
+/*=
+int main()
+{
+ Foo x;
+}
+*/
//]
Modified: trunk/tools/quickbook/test/snippets/pass_thru.gold
==============================================================================
--- trunk/tools/quickbook/test/snippets/pass_thru.gold (original)
+++ trunk/tools/quickbook/test/snippets/pass_thru.gold 2011-08-06 08:42:52 EDT (Sat, 06 Aug 2011)
@@ -10,6 +10,13 @@
<phrase role="identifier">Foo</phrase><phrase role="special">();</phrase>
<phrase role="special">};</phrase>
+
+
+<phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase>
+<phrase role="special">{</phrase>
+ <phrase role="identifier">Foo</phrase> <phrase role="identifier">x</phrase><phrase role="special">;</phrase>
+<phrase role="special">}</phrase>
+
</programlisting>
</para>
<para>
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