Opened 9 years ago

Closed 9 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.

Change History (4)

comment:1 by Richard <legalize@…>, 9 years ago

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

comment:2 by Joel de Guzman, 9 years ago

Owner: changed from Joel de Guzman to Daniel James

comment:3 by Daniel James, 9 years ago

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

comment:4 by Daniel James, 9 years ago

Resolution: fixed
Status: newclosed

Merged to release in [84252].

Note: See TracTickets for help on using tickets.