yoshiki / yaml-mode

The emacs major mode for editing files in the YAML data serialization format.
GNU General Public License v3.0
487 stars 132 forks source link

Incorrect highlighting of comments in Yaml blocks #106

Open jamescherti opened 1 year ago

jamescherti commented 1 year ago

Issue

Strings that start with the pound character (#) are not properly highlighted when they are part of a YAML block created using either (|) or (>): image (Screenshot: yaml-mode / Emacs)

This bug can make it difficult for users to distinguish between comments that are part of a block and those that are not.

Expected result

It is expected that all strings within a YAML block should be uniformly highlighted, regardless of whether they begin with the pound (#) character or not: image (Screenshot from another editor)

Environment