diff options
author | Colomban Wendling <ban@herbesfolles.org> | 2014-12-12 18:49:02 +0100 |
---|---|---|
committer | Colomban Wendling <ban@herbesfolles.org> | 2014-12-12 18:49:02 +0100 |
commit | 8457f0ff5ce63c872efba707e7c83dc15f885171 (patch) | |
tree | b06ebff71e4fa283cd00547cab2312e1a2901015 /lexers/LexBash.cxx | |
parent | 0eb57695d1691b5e878ca4c3cd3ec56a8503fc23 (diff) | |
download | scintilla-mirror-8457f0ff5ce63c872efba707e7c83dc15f885171.tar.gz |
LexBash: Only tabulations are allowed as prefix with `<<-` heredoc
Only tabulations are allowed to prefix the delimiter on indented
here-documents, not any white space.
Diffstat (limited to 'lexers/LexBash.cxx')
-rw-r--r-- | lexers/LexBash.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexBash.cxx b/lexers/LexBash.cxx index 0df343cd2..60729d3aa 100644 --- a/lexers/LexBash.cxx +++ b/lexers/LexBash.cxx @@ -467,7 +467,7 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle, if (sc.atLineStart) { sc.SetState(SCE_SH_HERE_Q); int prefixws = 0; - while (IsASpace(sc.ch) && !sc.atLineEnd) { // whitespace prefix + while (sc.ch == '\t' && !sc.atLineEnd) { // tabulation prefix sc.Forward(); prefixws++; } |