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 3.3.4.0 (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.
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.
Committed as [cfd068].
Related
Commit: [cfd068]