vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Value highlighting does not correspond to YAML 1.2 specification

Open marcelldls opened this issue 1 year ago • 0 comments

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\ }}}}$

marcelldls avatar Jan 30 '24 12:01 marcelldls