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

YAML: Improved key pattern #2561

Merged
merged 1 commit into from
Oct 1, 2020
Merged

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