Skip to content

YAML multiline code has invalid color highlighting  #163

@dennisvankekem

Description

@dennisvankekem

When using a multiline block (either | or > ) in yaml the highlighting color will often be incorrect. This mainly happens when brackets are involved. Example:

controller:
  config:
    modsecurity-snippet: |
        correct: true
        also-correct: true
        {
            incorrect: true 
            {
                also-incorrect: true
            }
        }

The expected outcome is that everything underneath the | pipe is highlighted as orange as expected with multiline color highlighting, however the outcome seems to be:

image

Is there any chance that you could look into this issue?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions