From 69ab9f722437fdba925a4973120e2a7c09f0eff0 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Fri, 12 Dec 2014 18:49:02 +0100 Subject: 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. --- lexers/LexBash.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- cgit v1.2.3