diff options
author | nyamatongwe <unknown> | 2008-12-23 23:52:01 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2008-12-23 23:52:01 +0000 |
commit | 4ab387e7191b68fd4e72abdad4d11a0204be9ec9 (patch) | |
tree | f69feb0f6a4567d2881a17ee4734906f4a626d2c /src/LexRuby.cxx | |
parent | dd8505c0d64e2f2d42f7aeef761ca2fb42b01190 (diff) | |
download | scintilla-mirror-4ab387e7191b68fd4e72abdad4d11a0204be9ec9.tar.gz |
Fixes for GCC 4.3 warnings. The Pascal change fixes behaviour.
Diffstat (limited to 'src/LexRuby.cxx')
-rw-r--r-- | src/LexRuby.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexRuby.cxx b/src/LexRuby.cxx index 7cb0b95c1..8d6dc90b8 100644 --- a/src/LexRuby.cxx +++ b/src/LexRuby.cxx @@ -784,13 +784,13 @@ static void ColouriseRbDoc(unsigned int startPos, int length, int initStyle, state = SCE_RB_COMMENTLINE; } else if (ch == '=') { // =begin indicates the start of a comment (doc) block - if (i == 0 || isEOLChar(chPrev) + if (i == 0 || (isEOLChar(chPrev) && chNext == 'b' && styler.SafeGetCharAt(i + 2) == 'e' && styler.SafeGetCharAt(i + 3) == 'g' && styler.SafeGetCharAt(i + 4) == 'i' && styler.SafeGetCharAt(i + 5) == 'n' - && !isSafeWordcharOrHigh(styler.SafeGetCharAt(i + 6))) { + && !isSafeWordcharOrHigh(styler.SafeGetCharAt(i + 6)))) { styler.ColourTo(i - 1, state); state = SCE_RB_POD; } else { |