Skip to content

Empty line in multiline Yaml strings are not recognised #326

@oldium

Description

@oldium

This is a continuation of almost 5 years-old bug, please see also https://sourceforge.net/p/scintilla/bugs/2218/ and notepad-plus-plus/notepad-plus-plus#9038

The following Yaml is not correctly highlighted (I enhanced the example from the older bugs):

my_yaml_block: |+
  This block is text

  even if the line above is empty
  these two text lines should also be highlighted as text. 
 
 

# End of example, should be the end of text rendering

Empty lines and lines containing only spaces (even shorter than the indent) should be considered to be part of the string. Currently the highlighting stops at This block is text line. The Yaml in the example above really has 4 new-line characters at the end when using |+ block (see https://www.bairesdev.com/tools/json2yaml/ to check that).

Update: fixed rendering of the example, the empty line at the end was not rendered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    yamlCaused by the yaml lexer

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions