diff options
author | nyamatongwe <unknown> | 2001-01-25 23:35:05 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-01-25 23:35:05 +0000 |
commit | ab1d8874b382c8d3aba2ae073e3789a09c214413 (patch) | |
tree | 96a3a6ac865040720da9ba455db269ce4e00d68d /src | |
parent | a40a7f1f4ee692cf264b557e7506085f021ecfbe (diff) | |
download | scintilla-mirror-ab1d8874b382c8d3aba2ae073e3789a09c214413.tar.gz |
Patch from Steffen to make .. as in for ( 1..9 ) work.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexPerl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx index 4140d70d9..d22d90a6a 100644 --- a/src/LexPerl.cxx +++ b/src/LexPerl.cxx @@ -254,7 +254,10 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle, } else { state = SCE_PL_WORD; preferRE = false; - if (!iswordchar(chNext)) { // if length of word == 1 !!! + if ((!iswordchar(chNext) && chNext != '\'') + || (chNext == '.' && chNext2 == '.')) { + // We need that if length of word == 1! + // This test is copied from the SCE_PL_WORD handler. classifyWordPerl(styler.GetStartSegment(), i, keywords, styler); state = SCE_PL_DEFAULT; } |