diff options
author | nyamatongwe <unknown> | 2005-04-28 04:43:28 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-04-28 04:43:28 +0000 |
commit | 8a5045f7ce97f12b90bb85bd436be58912e05d24 (patch) | |
tree | 752254e61016ab4a3c7e796bf804cb0d5806a30d | |
parent | 9b3abe148d47d5b5ac6c8522b0843bb2a0911967 (diff) | |
download | scintilla-mirror-8a5045f7ce97f12b90bb85bd436be58912e05d24.tar.gz |
Patch from Kein-Hong Man fixes bug 1189928 for globbing syntax.
-rw-r--r-- | src/LexPerl.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx index 67d60fc1a..6bac381d9 100644 --- a/src/LexPerl.cxx +++ b/src/LexPerl.cxx @@ -519,9 +519,13 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle, unsigned int fw = i + 1; while (fw < lengthDoc) { char fwch = styler.SafeGetCharAt(fw); - if (isEOLChar(fwch) || isspacechar(fwch)) + if (fwch == ' ') { + if (styler.SafeGetCharAt(fw-1) != '\\' || + styler.SafeGetCharAt(fw-2) != '\\') break; - else if (fwch == '>') { + } else if (isEOLChar(fwch) || isspacechar(fwch)) { + break; + } else if (fwch == '>') { if ((fw - i) == 2 && // '<=>' case styler.SafeGetCharAt(fw-1) == '=') { styler.ColourTo(fw, SCE_PL_OPERATOR); |