User forums > Help
broken syntax highlighting
Nale:
I am having trouble with the syntax highlighting. It breaks whenever an "R" occurs in inline asm. After that, everything is plain black. It's strangely specific though. For example, putting in other letters instead of R or putting a space in makes it start working again. Does anyone know why this could be?
For example
--- Code: --- //highlighting is fine here
asm(""R"");
//everything after this is black
--- End code ---
Story:
Bump. Does anyone know the solution to this?
Edit: Wow, I just realized that I accidentally made two accounts on this forum. This is the same person as the OP.
ollydbg:
why you use double quote???
Folco:
I confirm (svn 7417, Ubuntu 64b). It fails if last character of the string is <R>.
Works fine with other characters I tested.
I will try to investigate this evening, going back to work at the moment.
Folco:
It could be handled line 603 :
--- Code: --- const bool literalString = sc.ch == '\"';
if (literalString || sc.ch == '\'') {
size_t lenS = strlen(s);
const bool raw = literalString && sc.chPrev == 'R';
--- End code ---
or line 824 :
--- Code: --- } else if (sc.ch == '\"') {
if (sc.chPrev == 'R') {
sc.SetState(SCE_C_STRINGRAW|activitySet);
rawStringTerminator = ")";
--- End code ---
of src/sdk/wxscintilla/src/scintilla/lexers/LexCPP.cxx .
Navigation
[0] Message Index
[#] Next page
Go to full version