Author Topic: C++ Raw String Highlighting Support  (Read 3456 times)

Offline LazyCoder

  • Single posting newcomer
  • *
  • Posts: 6
C++ Raw String Highlighting Support
« 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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: C++ Raw String Highlighting Support
« Reply #1 on: June 18, 2015, 03:59:27 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C++ Raw String Highlighting Support
« Reply #2 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.
(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!]

Offline LazyCoder

  • Single posting newcomer
  • *
  • Posts: 6
Re: C++ Raw String Highlighting Support
« Reply #3 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. :'(

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: C++ Raw String Highlighting Support
« Reply #4 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.  :)
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.

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 203
Re: C++ Raw String Highlighting Support
« Reply #5 on: June 19, 2015, 08:53:49 am »
Fixed in rev. 10341

Offline LazyCoder

  • Single posting newcomer
  • *
  • Posts: 6
Re: C++ Raw String Highlighting Support
« Reply #6 on: June 20, 2015, 07:50:25 am »
Fixed in rev. 10341

Great news! ;D

Thanks.