aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-07-01 09:54:33 +0000
committernyamatongwe <unknown>2009-07-01 09:54:33 +0000
commit9b5c7bcd15325e163731ef06aea280fa04ed863e (patch)
treeeb64736d5e6c7dcc5e8a8c2100d89b5c26ffdf6f /src
parentc8d7adcbcd1c800547b880242609e4e1f23dfa4e (diff)
downloadscintilla-mirror-9b5c7bcd15325e163731ef06aea280fa04ed863e.tar.gz
Patch from Kein-Hong Man for bug #2809168.
Diffstat (limited to 'src')
-rw-r--r--src/LexPerl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index 22b455d0e..0c6603620 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -963,6 +963,7 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
bool hereDocSpace = false; // for: SCALAR [whitespace] '<<'
unsigned int bk = (sc.currentPos > 0) ? sc.currentPos - 1: 0;
unsigned int bkend;
+ sc.Complete();
styler.Flush();
if (styler.StyleAt(bk) == SCE_PL_DEFAULT)
hereDocSpace = true;
@@ -1142,6 +1143,7 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
}
backFlag = BACK_NONE;
} else if (sc.ch == '(' && sc.currentPos > 0) { // '(' or subroutine prototype
+ sc.Complete();
if (styleCheckSubPrototype(styler, sc.currentPos - 1)) {
sc.SetState(SCE_PL_SUB_PROTOTYPE);
backFlag = BACK_NONE;