diff options
| -rw-r--r-- | src/LexPerl.cxx | 2 | 
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; | 
