From 3cff4e5d25ff2bf6b84a3062b3abee5315d17445 Mon Sep 17 00:00:00 2001 From: Matt Gilarde Date: Wed, 11 May 2016 18:10:23 +1000 Subject: Allow comments preceded by a tab. --- doc/ScintillaHistory.html | 3 +++ lexers/LexProgress.cxx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index df3ccf8f9..5493edb41 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -510,6 +510,9 @@ C++ 11 <regex> support built by default. Can be disabled by defining NO_CXX11_REGEX.
  • + The Progress lexer now allows comments preceded by a tab. +
  • +
  • Fixed bugs when used on GTK+ 3.20. Bug #1825.
  • diff --git a/lexers/LexProgress.cxx b/lexers/LexProgress.cxx index 88a840341..6c687efee 100644 --- a/lexers/LexProgress.cxx +++ b/lexers/LexProgress.cxx @@ -199,7 +199,7 @@ static void Colourise4glDoc(Sci_PositionU startPos, Sci_Position length, int ini sc.SetState(SCE_4GL_COMMENT1 | mask); sc.Forward(); } else if (sc.Match('/', '/') && - (sc.atLineStart || sc.chPrev == ' ')) { + (sc.atLineStart || sc.chPrev == ' ' || sc.chPrev == '\t')) { sc.SetState(SCE_4GL_COMMENT2 | mask); } else if (sc.ch == '\"') { sc.SetState(SCE_4GL_STRING | ResetSentenceStart); -- cgit v1.2.3