diff options
author | nyamatongwe <unknown> | 2000-05-15 14:17:44 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-05-15 14:17:44 +0000 |
commit | 343d06281dac627448558dbc2ca890b7b65146ad (patch) | |
tree | 15ae39a53d0ea6a8051fdb63e9e97651caf69bb3 /src | |
parent | 9b098ca0549b1153d49408f6eaac4c326e3daa86 (diff) | |
download | scintilla-mirror-343d06281dac627448558dbc2ca890b7b65146ad.tar.gz |
Mod for here documents from Steffen Goeldner.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexPerl.cxx | 8 |
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) { |