Boost C++ Libraries: Ticket #8510: ## in a code snippet confuses quickbook C++ syntax highlighting https://svn.boost.org/trac10/ticket/8510 <p> If I include the following code snippet in a quickbook file: </p> <pre class="wiki">``` #define HELLO_WORLD_TEST_CASE(name_) \ BOOST_FIXTURE_TEST_CASE(hello_world_##name_, hello_world_fixture) ``` </pre><p> quickbook complains about the token pasting operator ##, believing it to be a preprocessor directive like #define. It issues a warning such as: </p> <pre class="wiki">warning: in column:41, unexpected character: # </pre><p> and colors the second "#name_" in the color of a preprocessor directive. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8510 Trac 1.4.3 Richard <legalize@…> Sun, 28 Apr 2013 08:18:16 GMT <link>https://svn.boost.org/trac10/ticket/8510#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8510#comment:1</guid> <description> <p> ...and colors "#name_" in the color of a preprocessor directive. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Sun, 28 Apr 2013 11:00:27 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/8510#comment:2 https://svn.boost.org/trac10/ticket/8510#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Daniel James</span> </li> </ul> Ticket Daniel James Sun, 28 Apr 2013 11:16:13 GMT <link>https://svn.boost.org/trac10/ticket/8510#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8510#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84063" title="Support the token pasting operator in C++ code blocks. Refs #8510.">[84063]</a>) Support the token pasting operator in C++ code blocks. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8510" title="#8510: Bugs: ## in a code snippet confuses quickbook C++ syntax highlighting (closed: fixed)">#8510</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Thu, 16 May 2013 21:46:47 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8510#comment:4 https://svn.boost.org/trac10/ticket/8510#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Merged to release in <a class="changeset" href="https://svn.boost.org/trac10/changeset/84252" title="Use .quickbook extension for all test files.">[84252]</a>. </p> Ticket