diff options
author | nyamatongwe <devnull@localhost> | 2001-09-01 22:23:41 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-09-01 22:23:41 +0000 |
commit | 4ede20f88495d0a071217c3a2966ea2e87c768dc (patch) | |
tree | 2cf438c666ceaecebb6922ecc90cbbd1e1cd6af9 /src | |
parent | d0b2f644dd40e0a0e3727766babf808f82dcb669 (diff) | |
download | scintilla-mirror-4ede20f88495d0a071217c3a2966ea2e87c768dc.tar.gz |
Performance optimisation.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexCPP.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index 45aa31493..8bed66c3d 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -178,16 +178,18 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo ColouriseContext cc(startPos, length, initStyle, styler); for (; cc.More(); cc.Forward()) { - if (cc.Match("\\\n")) { - cc.Forward(); - cc.Forward(); - continue; - } - if (cc.Match("\\\r\n")) { - cc.Forward(); - cc.Forward(); - cc.Forward(); - continue; + if (cc.ch == '\\') { + if (cc.Match("\\\n")) { + cc.Forward(); + cc.Forward(); + continue; + } + if (cc.Match("\\\r\n")) { + cc.Forward(); + cc.Forward(); + cc.Forward(); + continue; + } } if (cc.state == SCE_C_OPERATOR) { |