#1660 YAML inline comments


In YAML, a '#' character should mark the beginning of a comment, from the position it has on the line to the end of the line. It seems that Scintilla doesn't recognizes it in some situations, for example:

--- # Unrecognized comment
# Recognized comment
item1: # Recognized comment
item2: val1 # Unrecognized comment
item3: [ val2, val3 ] # Unrecognized comment
... # Unrecognized comment

I noticed this for some time, lately in SciLexer.dll version (used by Notepad++ v6.6.8). I know neither of them are the latest, but from a lack of references to the issue (there only is a Notepad++ bug, #4619, nobody seems to care about) I imagine this problem is rather old and ignored. If you think I can provide any other relevant details, please let me know.


  • Neil Hodgson

    Neil Hodgson - 2014-10-05
    • labels: --> scintilla, yaml
    • status: open --> open-accepted
    • Priority: 5 --> 4
  • Jim Pattee

    Jim Pattee - 2016-09-21

    1660 YAML inline comments

    Attached is a fix for YAML inline comments. A YAML test file is included. The test
    file is actually a clang-format input file which uses the YAML format.

    There is also a text file which gives some details about the change.

  • Neil Hodgson

    Neil Hodgson - 2016-09-23
    • status: open-accepted --> open-fixed
    • assigned_to: Neil Hodgson
  • Neil Hodgson

    Neil Hodgson - 2016-10-16
    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks