Modify

Opened 4 years ago

Closed 4 years ago

#8510 closed Bugs (fixed)

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

Reported by: Richard <legalize@…> Owned by: Daniel James
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 (0)

Change History (4)

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 Joel de Guzman

Owner: changed from Joel de Guzman to Daniel James

comment:3 Changed 4 years ago by Daniel James

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

comment:4 Changed 4 years ago by Daniel James

Resolution: fixed
Status: newclosed

Merged to release in [84252].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Daniel James.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.