Ticket #8510 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

## in a code snippet confuses quickbook C++ syntax highlighting

Reported by: Richard <legalize@…> Owned by: danieljames
Milestone: To Be Determined Component: quickbook
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:


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.


Change History

comment:1 Changed 4 years ago by Richard <legalize@…>

...and colors "#name_" in the color of a preprocessor directive.

comment:2 Changed 4 years ago by djowel

  • Owner changed from djowel to danieljames

comment:3 Changed 4 years ago by danieljames

(In [84063]) Support the token pasting operator in C++ code blocks. Refs #8510.

comment:4 Changed 4 years ago by danieljames

  • Status changed from new to closed
  • Resolution set to fixed

Merged to release in [84252].


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.