aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lexers/LexPerl.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/lexers/LexPerl.cxx b/lexers/LexPerl.cxx
index ad9e77294..9d768478b 100644
--- a/lexers/LexPerl.cxx
+++ b/lexers/LexPerl.cxx
@@ -1168,6 +1168,12 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
}
}
sc.Complete();
+ if (sc.state == SCE_PL_HERE_Q
+ || sc.state == SCE_PL_HERE_QQ
+ || sc.state == SCE_PL_HERE_QX
+ || sc.state == SCE_PL_FORMAT) {
+ styler.ChangeLexerState(sc.currentPos, styler.Length());
+ }
}
static bool IsCommentLine(int line, Accessor &styler) {