Skip to content

Multiline String Coloring #4

@benhamill

Description

@benhamill

It looks like strings are handled differently depending on whether they're quoted, vs literal, folded or unquoted. For example:

description: |
  foo
description: >
  foo
description: foo
description: "foo"
description: 'foo'

In this, the values in the last two keys will be one color and the values of the first 3 keys will be another.

I'm not sure what you can do about that middle (unquoted) one without targeting the description key specifically, but I think you can safely treat the | and > glyphs as introducing a string and bailing on other highlighting rules until indentation changes (or lessens? Not sure).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions