It would be nice feature to allow strings (for example / at least) in C-like files to span multiple lines.
aaaa'bbbbbbbbbbbb bbbbbbbbbbbbb'aaaaaaaa
Le 30/06/2015 19:17, Péter a écrit :
It would be nice feature to allow strings (for example / at least) in C-like files to span multiple lines.
aaaa'bbbbbbbbbbbb bbbbbbbbbbbbb'aaaaaaaa
For which language do you need this and it isn't implemented?
Not accepting strings spanning multiple lines when the language does not accept them helps for error recovery, e.g. avoiding to color the whole file as a string when there is a missing quote. Not only it avoids distraction while typing, but also improves performances (well, OK, it's probably not *so* slow).
However, AFAIK languages that actually support this are properly handled, aren't they?
Anyway, this happens in Scintilla, at scintilla/lexers/LexCPP.cpp (for C, C++, Java and JavaScript -- and possibly a few others, I'm not certain).
Regards, Colomban