Modify

Ticket #8510 (closed Bugs: fixed)

Opened 12 months ago

Last modified 11 months 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:

Description

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.

Attachments

Change History

comment:1 Changed 12 months ago by Richard <legalize@…>

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

comment:2 Changed 12 months ago by djowel

  • Owner changed from djowel to danieljames

comment:3 Changed 12 months ago by danieljames

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

comment:4 Changed 11 months ago by danieljames

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

Merged to release in [84252].

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.