Opened 9 years ago
Closed 9 years ago
#8510 closed Bugs (fixed)
## in a code snippet confuses quickbook C++ syntax highlighting
Reported by: | 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 , 9 years ago
comment:2 by , 9 years ago
Owner: | changed from | to
---|
comment:3 by , 9 years ago
Note:
See TracTickets
for help on using tickets.
...and colors "#name_" in the color of a preprocessor directive.