Skip to content

Conversation

@RunDevelopment
Copy link
Member

I just spend over an hour reading through YAML's spec and simplifying the plain key pattern, so it could be expressed as a regex... Good times.

Anyway, this changes the key pattern to be very close to the spec. It also adds proper support for string keys.

This fixes #2560.

@eepp
Copy link

eepp commented Sep 18, 2020

YAML can be quite complex.

Thanks a lot for taking the time!

@RunDevelopment RunDevelopment merged commit 59853a5 into PrismJS:master Oct 1, 2020
@RunDevelopment RunDevelopment deleted the yaml-key branch October 1, 2020 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YAML: inconsistent mapping key highlighting

2 participants