[Boost-bugs] [Boost C++ Libraries] #8510: ## in a code snippet confuses quickbook C++ syntax highlighting

Subject: [Boost-bugs] [Boost C++ Libraries] #8510: ## in a code snippet confuses quickbook C++ syntax highlighting
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-28 08:16:46


#8510: ## in a code snippet confuses quickbook C++ syntax highlighting
---------------------------------------------+------------------------------
 Reporter: Richard <legalize@…> | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: quickbook
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
---------------------------------------------+------------------------------
 If I include the following code snippet in a quickbook file:

 {{{
 ```
 #define HELLO_WORLD_TEST_CASE(name_) \
     BOOST_FIXTURE_TEST_CASE(hello_world_##name_, hello_world_fixture)
 ```
 }}}

 quickbook complains about the token pasting operator ##, believing it to
 be a preprocessor directive like #define. It issues a warning such as:
 {{{
 warning: in column:41, unexpected character: #
 }}}
 and colors the second "#name_" in the color of a preprocessor directive.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8510>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC