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

Accept colon(s) in YAML key names #1888

Merged
merged 1 commit into from Dec 1, 2022

Conversation

gdubicki
Copy link
Contributor

as it's ok according to the YAML specs and is widely used in the real world, f.e. in Puppet's Hiera
(https://puppet.com/docs/puppet/7/hiera_quick.html#values_common_data)

@gdubicki gdubicki force-pushed the accept_colon_in_yaml_key_name branch from 7051a00 to 9c5ee16 Compare November 14, 2022 11:34
@gdubicki
Copy link
Contributor Author

gdubicki commented Nov 14, 2022

Same PR for pygments: pygments/pygments#2277. Update: it’s merged. 😊

@gdubicki
Copy link
Contributor Author

This is a follow-up to #1667.

The main motivation is to fix the syntax highlight in GitLab, where now Puppet's Hiera is treated badly. Example:

Screenshot 2022-11-14 at 11 40 28

Note how only the simple classes key is highlighted but profiles::common::pod is not.

as it's ok according to the YAML specs and is widely used in the real world,
f.e. in Puppet's Hiera
(https://puppet.com/docs/puppet/7/hiera_quick.html#values_common_data)
@gdubicki gdubicki force-pushed the accept_colon_in_yaml_key_name branch from 9c5ee16 to 5ffffc1 Compare November 14, 2022 11:57
@tancnle tancnle self-requested a review November 22, 2022 23:13
@tancnle
Copy link
Collaborator

tancnle commented Dec 1, 2022

Thank you for your contribution @gdubicki 🙇🏼 The PR looks good to me 🚀

@tancnle tancnle merged commit 8f28c2b into rouge-ruby:master Dec 1, 2022
@gdubicki gdubicki deleted the accept_colon_in_yaml_key_name branch January 3, 2023 20:04
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

Successfully merging this pull request may close these issues.

None yet

2 participants