Code::Blocks Forums

User forums => Help => Topic started by: LazyCoder on June 18, 2015, 08:02:17 am

Title: C++ Raw String Highlighting Support
Post by: LazyCoder on June 18, 2015, 08:02:17 am
C::B svn 10320

Hi, currently C::B's editor does not support C++ raw strings highlighting.
Example:
Code
const char *Raw = R"(Raw String)";
//                ^ it just colors with the default.

Any plans to support it?

Thanks.
Title: Re: C++ Raw String Highlighting Support
Post by: ollydbg on June 18, 2015, 03:59:27 pm
Related bug report: C++11 raw string literals not syntax highlighted correctly (https://sourceforge.net/p/codeblocks/tickets/68/)

But I don't know what is the real reason of this bug...
Title: Re: C++ Raw String Highlighting Support
Post by: oBFusCATed on June 18, 2015, 09:33:47 pm
Does it work correcty in Scite?
If it does then this is cb bug, if it doesn't then this is scintilla bug.
Title: Re: C++ Raw String Highlighting Support
Post by: LazyCoder on June 19, 2015, 05:16:00 am
Does it work correcty in Scite?
If it does then this is cb bug, if it doesn't then this is scintilla bug.

Yes, the latest version of SciTE (3.5.6), highlights C++ raw strings correctly.

So, unfortunately, this is a C::B bug. :'(
Title: Re: C++ Raw String Highlighting Support
Post by: ollydbg on June 19, 2015, 06:33:53 am
The author of Scintilla's comments about this issue: https://sourceforge.net/p/scintilla/bugs/1668/#b09f/8d34/93a9/c939/d509/46e0.

I just don't know how to fix it under C::B.  :)
Title: Re: C++ Raw String Highlighting Support
Post by: danselmi on June 19, 2015, 08:53:49 am
Fixed in rev. 10341
Title: Re: C++ Raw String Highlighting Support
Post by: LazyCoder on June 20, 2015, 07:50:25 am
Fixed in rev. 10341

Great news! ;D

Thanks.