aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPerl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexPerl.cxx')
-rw-r--r--src/LexPerl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index c2c52533c..9956c8fb2 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -600,6 +600,10 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
quoteUp = ch;
quoteDown = opposite(quoteUp);
quotes++;
+ } else if (ch == '\\' && quoteUp != '\\') {
+ i++;
+ ch = chNext;
+ chNext = styler.SafeGetCharAt(i + 1);
} else if (ch == quoteDown) {
quotes--;
if (quotes == 0) {