diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LexPerl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx index f50e01ed1..a7186fe55 100644 --- a/src/LexPerl.cxx +++ b/src/LexPerl.cxx @@ -292,8 +292,9 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle, } else { quotes++; } - if (quotes > 1 && isMatch(styler, lengthDoc, i, sooked) && (chPrev == '\n' || chPrev == '\r') ) { - styler.ColourTo(i + sookedpos - 1, SCE_PL_HERE); + if ((quotes > 1) && + (chPrev == '\n' || chPrev == '\r') && + isMatch(styler, lengthDoc, i, sooked)) { i += sookedpos; chNext = styler.SafeGetCharAt(i); if (chNext == '\n' || chNext == '\r') { |