aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-01-25 23:45:59 +0000
committernyamatongwe <unknown>2001-01-25 23:45:59 +0000
commitf81b8719262437eeabe735ec377ce0250d356503 (patch)
tree4abb0b475e2ea00f9d78391b47c64663d050a60c
parentab1d8874b382c8d3aba2ae073e3789a09c214413 (diff)
downloadscintilla-mirror-f81b8719262437eeabe735ec377ce0250d356503.tar.gz
Patch from Steffen to handle $^W and ${"x"} as scalars.
Further change from Neil to avoid whitespace being included in scalars.
-rw-r--r--src/LexPerl.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index d22d90a6a..f5487492a 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -288,7 +288,14 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
} else if (ch == '$') {
preferRE = false;
styler.ColourTo(i - 1, state);
- state = SCE_PL_SCALAR;
+ if ((chNext == '{') || isspacechar(chNext)) {
+ styler.ColourTo(i, SCE_PL_SCALAR);
+ } else {
+ state = SCE_PL_SCALAR;
+ i++;
+ ch = chNext;
+ chNext = chNext2;
+ }
} else if (ch == '@') {
preferRE = false;
styler.ColourTo(i - 1, state);