diff options
author | nyamatongwe <devnull@localhost> | 2006-04-23 08:04:08 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-04-23 08:04:08 +0000 |
commit | 6602cb771cb3d8bac09ece2bb2de7d705a6833b1 (patch) | |
tree | a3715e64e6ccb28ae5fd413090ba3102219eed93 /src | |
parent | 4c06f6319946406f0ac682b40fa73a8cd24062d4 (diff) | |
download | scintilla-mirror-6602cb771cb3d8bac09ece2bb2de7d705a6833b1.tar.gz |
Patch from Snow to handle backslash at end of file.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexBash.cxx | 3 |
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); |