Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
C++ Lexer: Coloring error with /** in strings
(1/1)
AndiDog:
The C++ Lexer recognizes /** inside strings as documentation:
--- Code: ---#define TEST1 "/**"
everything in between is doxymentation-colored
#define TEST2 "*/"
--- End code ---
MortenMacFly:
That is a bug in the wxScintilla component we are using. As a workaround you can simply escape one or more of the characters (as it's a string) like:
--- Code: ---#define BLAH "\/\*\*"
cout << "Hello world!" << BLAH << endl;
#define BLUBB "*\/"
--- End code ---
You will receive a compiler warning about an unknown escape sequence but you can safely igonere it.
Navigation
[0] Message Index
Go to full version