Add a "\" at the end of line? I think "" should be in the same line.
BTW: if it is really a bug, I think it is related the Scintilla control. Maybe, you need to report there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
See the image above:
1, I think the color is not set correctly, it should set to blue as 2.
2, correct color shown
3, I think scintilla not correctly recognize a two lines string, but the following statement(int b;) can still be recognized correctly.
4, same as 3, but the following statement(int a;) are not recognized correctly.
I think:
C::B should set the color correctly(see the above issue 1)
scintilla control should recognize string correctly(see the above issue 3 and 4).
Test code added:
R"xxx(blah)xxx"; // wrong string color!
"xxx(blah)xxx"; // correct string color
"xxx(blah)
xxx";
int b;
R"xxx(blah)
xxx";
int a;
Last edit: ollydbg 2014-10-31
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Add a "\" at the end of line? I think "" should be in the same line.
BTW: if it is really a bug, I think it is related the Scintilla control. Maybe, you need to report there.
No. That's the whole point of a raw string literal. The code is correct.
Where should I be reporting Scintilla bugs?
OK
Scintilla's bug tracker is in http://sourceforge.net/p/scintilla/bugs/
Scintilla say it is code::blocks' bug, not theirs:
http://sourceforge.net/p/scintilla/bugs/1668/
See the image above:
1, I think the color is not set correctly, it should set to blue as 2.
2, correct color shown
3, I think scintilla not correctly recognize a two lines string, but the following statement(
int b;
) can still be recognized correctly.4, same as 3, but the following statement(
int a;
) are not recognized correctly.I think:
C::B should set the color correctly(see the above issue 1)
scintilla control should recognize string correctly(see the above issue 3 and 4).
Test code added:
Last edit: ollydbg 2014-10-31
If you think there's a scintilla bug here, you should reopen the issue at https://sourceforge.net/p/scintilla/bugs/1668/
One another C::B forum discussion: C++ Raw String Highlighting Support
Fixed in rev 10341.