News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

C++ Raw String Highlighting Support

Started by LazyCoder, June 18, 2015, 08:02:17 AM

Previous topic - Next topic

LazyCoder

C::B svn 10320

Hi, currently C::B's editor does not support C++ raw strings highlighting.
Example:

const char *Raw = R"(Raw String)";
//                ^ it just colors with the default.


Any plans to support it?

Thanks.

ollydbg

Related bug report: C++11 raw string literals not syntax highlighted correctly

But I don't know what is the real reason of this bug...
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

oBFusCATed

Does it work correcty in Scite?
If it does then this is cb bug, if it doesn't then this is scintilla bug.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

LazyCoder

Quote from: 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.

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

So, unfortunately, this is a C::B bug. :'(

ollydbg

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.  :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

danselmi

spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

LazyCoder