diff options
author | nyamatongwe <unknown> | 2002-06-08 05:22:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-06-08 05:22:08 +0000 |
commit | ad564f464b2fbaf69c987e5e60fc66ac53715ae1 (patch) | |
tree | 930811f7b38118435a6680eaf56bbb06b2bb438a /src/LexCPP.cxx | |
parent | 6943021f979cce85f85ae87e3f13c8ef2d66da57 (diff) | |
download | scintilla-mirror-ad564f464b2fbaf69c987e5e60fc66ac53715ae1.tar.gz |
Patch from Philippe to handling line continuation to suit Macintosh format files.
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r-- | src/LexCPP.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index e8462525a..c1bb1ff9a 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -79,13 +79,11 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo // Handle line continuation generically. if (sc.ch == '\\') { - if (sc.Match("\\\n")) { - sc.Forward(); - continue; - } - if (sc.Match("\\\r\n")) { - sc.Forward(); + if (sc.chNext == '\n' || sc.chNext == '\r') { sc.Forward(); + if (sc.ch == '\r' && sc.chNext == '\n') { + sc.Forward(); + } continue; } } |