Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect YAML highlighting #4467

Closed
eevleevs opened this issue Mar 11, 2021 · 3 comments
Closed

Incorrect YAML highlighting #4467

eevleevs opened this issue Mar 11, 2021 · 3 comments

Comments

@eevleevs
Copy link

Hello, I am getting an incorrect highlighting when a multi-word key follows a multi-line string.

expected:

bill-to:  &id001
    street: |
        123 Tornado Alley
        Suite 16
    city name: East Centerville

actual (from kitchen sink):
image

Note how "city name" has two different colors.

@brynne8
Copy link

brynne8 commented Dec 27, 2021

A patch for yaml highlighter will fix this: brynne8@74c3ff3

I don't quote understand why the old highlighter created two rules for yaml key-value. So I simplified it to a single rule and works well.

@eevleevs
Copy link
Author

Confirmed, thanks.

@andrewnester
Copy link
Contributor

It's fixed in 1.15+ with this PR #4706

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants