diff options
author | Matt Gilarde <unknown> | 2016-05-11 18:10:23 +1000 |
---|---|---|
committer | Matt Gilarde <unknown> | 2016-05-11 18:10:23 +1000 |
commit | 3cff4e5d25ff2bf6b84a3062b3abee5315d17445 (patch) | |
tree | af4baaa6cd69dcc16afd31c4838f18de58c36f3f | |
parent | de17c9dce2f7b193cc4761f16909541fa85f73bc (diff) | |
download | scintilla-mirror-3cff4e5d25ff2bf6b84a3062b3abee5315d17445.tar.gz |
Allow comments preceded by a tab.
-rw-r--r-- | doc/ScintillaHistory.html | 3 | ||||
-rw-r--r-- | lexers/LexProgress.cxx | 2 |
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); |