aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexBash.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-04-23 08:04:08 +0000
committernyamatongwe <unknown>2006-04-23 08:04:08 +0000
commit7d47a101ed4562fe1a27905d4eb1f42d0d3b578f (patch)
treea3715e64e6ccb28ae5fd413090ba3102219eed93 /src/LexBash.cxx
parenta201a359fdd7eae722169e6e650ed2b45c44ec57 (diff)
downloadscintilla-mirror-7d47a101ed4562fe1a27905d4eb1f42d0d3b578f.tar.gz
Patch from Snow to handle backslash at end of file.
Diffstat (limited to 'src/LexBash.cxx')
-rw-r--r--src/LexBash.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LexBash.cxx b/src/LexBash.cxx
index 903d793bb..dfbf309d6 100644
--- a/src/LexBash.cxx
+++ b/src/LexBash.cxx
@@ -258,7 +258,8 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle,
if (state == SCE_SH_DEFAULT) {
if (ch == '\\') { // escaped character
- i++;
+ if (i < lengthDoc - 1)
+ i++;
ch = chNext;
chNext = chNext2;
styler.ColourTo(i, SCE_SH_IDENTIFIER);