Scintilla easily recognizes '\\' as line continuation character, but lacks support for trigraphs. And C defines this trigraph sequence "??/" as replacement for backslash '\\'.
Therefore, this is recognized correctly (both lines are colorized as comment)
// save file to c:\\ int i = 0;
But this is not recognized as comment continuation (even if it is essentially the same thing)
// Will the next line be executed????????????????/
int i = 0;
LexCpp.cxx should be expanded to catch the trigraph case too.
On a bigger scale, perhaps LexCPP.cxx could be expanded to give full support for Digraphs and Trigraphs:
Log in to post a comment.