bmarkovic17 / nestedtext

NestedText data format extension
3 stars 0 forks source link

Error hilighting a : that is part of a value #3

Closed p-i- closed 6 months ago

p-i- commented 6 months ago
some_key: |
    quick brown
    fox: jumps

The fox: jumps line gets hilit, even though it is part of the value-string.

p-i- commented 6 months ago
Screenshot 2024-05-08 at 12 56 26
bmarkovic17 commented 6 months ago

I believe your example refers to the YAML way of handling multiline strings.

In NestedText multiline strings are adjacent lines that start with a string tag (greater-than symbol) followed by a space or newline:

some_key:
    > quick brown
    > fox: jumps

which produces the correct syntax highlighting

image