Ticket #3487: mcedit: fixed invalid syntax highlighting
commit49493dc8e006d4e6c6298aedfc39e4c1a9dd74bb
authorSergii Pylypenko <x.pelya.x@gmail.com>
Thu, 7 Feb 2019 18:21:43 +0000 (7 20:21 +0200)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 9 Feb 2019 07:40:43 +0000 (9 10:40 +0300)
treee28a020d67643709cfa9a88c42402305689b72b6
parente806c2bac667cf59d38980b3c6806394a8c9c7c7
Ticket #3487: mcedit: fixed invalid syntax highlighting

...when both context and keyword end with a newline.

To reproduce, create .c or .cxx file and open it in mcedit:

\#endif // preprocessor macro with one-line comment
int code; /* <-- this line is colorized incorrectly */
int code2; /* <-- next line is colorized properly */

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/editor/syntax.c