Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#909 CMake and NSIS lexers fail on empty comment lines

Bug
open-accepted
Neil Hodgson
Scintilla (790)
2
2010-02-07
2010-02-04
Enrico Tröger
No

The CMake and NSIS lexers fail to properly colourise the line after a line with a comment character and no other characters, e.g.:

##############
# Install library
#
INSTALL(TARGET libname DESTINATION location)
SET(MY_VARIABLE my_value)

The third line (with only the '#'') is coloured correctly but the first word of the next line ('INSTALL'') should be coloured with SCE_CMAKE_COMMANDS but instead the whole next line is coloured with SCE_CMAKE_COMMENT.

I assume it might be only an off-by-one bug as it works correctly after changing the end-of-line character style to CR/LF. With LF, it fails.
The NSIS lexer shows the same behaviour.

(This is somewhat a copy of a Geany bug report, see https://sourceforge.net/tracker/?func=detail&atid=787794&aid=2944197&group_id=153444\)

Discussion

  • Neil Hodgson
    Neil Hodgson
    2010-02-07

    I won't be working on these bugs as I do not use NSIS or CMake.

     
  • Neil Hodgson
    Neil Hodgson
    2010-02-07

    • priority: 5 --> 2
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-accepted