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

Value highlighting does not correspond to YAML 1.2 specification #1003

Open
marcelldls opened this issue Jan 30, 2024 · 0 comments
Open

Value highlighting does not correspond to YAML 1.2 specification #1003

marcelldls opened this issue Jan 30, 2024 · 0 comments

Comments

@marcelldls
Copy link

Describe the bug

With a YAML spec of 1.2 chosen in settings (Default) - the highlighting of values does not correspond to the 1.2 specification as some strings are being highlighted as if boolean. It appears that strings that corresponding to boolean from older specification are being highlighted

Expected Behavior

${{\color{lightskyblue}\Huge{\textsf{Stage:\ }}}}$
${{\color{lightskyblue}\Huge{\textsf{ Axis1:\ }}}}$ ${{\color{darkorange}\Huge{\textsf{ X\ }}}}$
${{\color{lightskyblue}\Huge{\textsf{ Axis2:\ }}}}$ ${{\color{darkorange}\Huge{\textsf{ Y\ }}}}$
${{\color{lightskyblue}\Huge{\textsf{ Axis3:\ }}}}$ ${{\color{darkorange}\Huge{\textsf{ Z\ }}}}$

As per https://yaml.org/spec/1.2.2/

Current Behavior

${{\color{lightskyblue}\Huge{\textsf{Stage:\ }}}}$
${{\color{lightskyblue}\Huge{\textsf{ Axis1:\ }}}}$ ${{\color{darkorange}\Huge{\textsf{ X\ }}}}$
${{\color{lightskyblue}\Huge{\textsf{ Axis2:\ }}}}$ ${{\color{lightskyblue}\Huge{\textsf{ Y\ }}}}$
${{\color{lightskyblue}\Huge{\textsf{ Axis3:\ }}}}$ ${{\color{darkorange}\Huge{\textsf{ Z\ }}}}$

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

1 participant