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 anchors with hyphens are not correctly highlighted #2214

Closed
toaster opened this issue Feb 17, 2020 · 1 comment
Closed

YAML anchors with hyphens are not correctly highlighted #2214

toaster opened this issue Feb 17, 2020 · 1 comment

Comments

@toaster
Copy link
Contributor

toaster commented Feb 17, 2020

Information

  • Language: YAML
  • Plugins: none

Description

In a YAML document containing anchors with hyphens only the part of the anchor up to the first hyphen is highlighted.

Code snippet

The code being highlighted incorrectly.
x-foo-bar: &foo-bar 13
@toaster
Copy link
Contributor Author

toaster commented Feb 18, 2020

@RunDevelopment you're definitely fast! :)

However, #2215 will break some other cases. Therefore I propose to use #2217 instead.

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

Successfully merging a pull request may close this issue.

2 participants