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 | 69ab9f722437fdba925a4973120e2a7c09f0eff0 (patch) | |
tree | 91c39be01fc880da8e289171cf1ccb21c08e8658 | |
parent | 429d79de7fd686261eee74290bc20ed5ca813f19 (diff) | |
download | scintilla-mirror-69ab9f722437fdba925a4973120e2a7c09f0eff0.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.
-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++; } |