aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/LexPerl.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index 2ed36e192..3c9972e2d 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -292,11 +292,13 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
} else {
quotes++;
}
-
- if (quotes > 1 && isMatch(styler, lengthDoc, i, sooked)) {
+ if (quotes > 1 && isMatch(styler, lengthDoc, i, sooked) && (chPrev == '\n' || chPrev == '\r') ) {
styler.ColourTo(i + sookedpos - 1, SCE_PL_HERE);
- state = SCE_PL_DEFAULT;
i += sookedpos;
+ chNext = styler.SafeGetCharAt(i);
+ if (chNext == '\n' || chNext == '\r') {
+ state = SCE_PL_DEFAULT;
+ }
chNext = ' ';
}
} else if (state == SCE_PL_STRING) {