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 | 90e516ff12807b31b081685edcc90595e2d3f2cf (patch) | |
tree | 76ec418d15f03a44d1e978f08963d0b52625e922 | |
parent | b8baf3b11ee8758fd113f825a639b394a428eab8 (diff) | |
download | scintilla-mirror-90e516ff12807b31b081685edcc90595e2d3f2cf.tar.gz |
Treat \n and \r\n line ends the same after operands by setting style to comment.
-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('@')) { |