Skip to content

Yaml syntax highlighting does not respect empty lines in blocks of text #9038

@phoenikz

Description

@phoenikz

Description of the Issue

Yaml syntax highlighting does not respect empty lines in blocks of text. An empty line is not considered to have lower indentation than the previous line, text blocks will continue across them.

Steps to Reproduce the Issue

Write yaml like this:

my_yaml_block: |
  This block is text

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

with row 2 empty

Expected Behavior

All lines above are highlighted as text

Actual Behavior

Rows 3 and 4 will be default-highlighted

Debug Information

Notepad++ v7.8.9 (64-bit)
Build time : Jul 15 2020 - 20:31:49
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1809
OS Build : 17763.1457
Current ANSI codepage : 1252
Plugins : GitSCM.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll NppXmlTreeviewPlugin.dll XMLTools.dll

Metadata

Metadata

Assignees

No one assigned

    Labels

    lexilla dependentCan't be considered for N++ implementation unless/until Lexiilla changesscintilla dependentCan't be considered for N++ implementation unless/until Scintilla changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions