diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-04-30 19:59:02 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-04-30 19:59:02 +1000 |
| commit | 69e4730b3129836b91337884c8139cddee25f21f (patch) | |
| tree | d96050b8a4757bee83511c4f766e378fbc12ad8d | |
| parent | 9efbedaa8ed3125619e0782d0ab62ca690245515 (diff) | |
| download | scintilla-mirror-69e4730b3129836b91337884c8139cddee25f21f.tar.gz | |
Backport: Treat \n and \r\n line ends the same after operands by setting style to comment.
Backport of changeset 8210:6b6ecf724c71.
| -rw-r--r-- | lexers/LexMMIXAL.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lexers/LexMMIXAL.cxx b/lexers/LexMMIXAL.cxx index 9e428caf5..0917b5d0a 100644 --- a/lexers/LexMMIXAL.cxx +++ b/lexers/LexMMIXAL.cxx @@ -154,9 +154,7 @@ static void ColouriseMMIXALDoc(Sci_PositionU startPos, Sci_Position length, int if (sc.state == SCE_MMIXAL_OPCODE_POST || // OPCODE_POST sc.state == SCE_MMIXAL_OPERANDS) { // OPERANDS if (sc.state == SCE_MMIXAL_OPERANDS && isspace(sc.ch)) { - if (!sc.atLineEnd) { - sc.SetState(SCE_MMIXAL_COMMENT); - } + sc.SetState(SCE_MMIXAL_COMMENT); } else if (isdigit(sc.ch)) { sc.SetState(SCE_MMIXAL_NUMBER); } else if (IsAWordChar(sc.ch) || sc.Match('@')) { |
