aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--lexers/LexProgress.cxx2
2 files changed, 4 insertions, 1 deletions
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.
</li>
<li>
+ The Progress lexer now allows comments preceded by a tab.
+ </li>
+ <li>
Fixed bugs when used on GTK+ 3.20.
<a href="http://sourceforge.net/p/scintilla/bugs/1825/">Bug #1825</a>.
</li>
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);