language-css icon indicating copy to clipboard operation
language-css copied to clipboard

@property [color syntax] - hex values irregularities

Open alexr00 opened this issue 2 years ago • 2 comments

Prerequisites

Description

For hex colors beginning with a letter, the subsequent semicolon gets the scope invalid.illegal.bad-identifier.css:

@property --light-blue { syntax: '<color>'; inherits: false; initial-value: #ace; }

image

For hex colors beginning with a number, the subsequent semicolon gets the scope meta.selector.css, as it seems like it should:

@property --dark-gray { syntax: '<color>'; inherits: false; initial-value: #123; }

image

Steps to Reproduce

  1. Use the following two examples to compare the scope value of the final semicolon:
@property --light-blue { syntax: '<color>'; inherits: false; initial-value: #ace; }
@property --dark-gray { syntax: '<color>'; inherits: false; initial-value: #123; }

Expected behavior:

Semicolon is meta.selector.css.

Actual behavior:

Semicolon is invalid.illegal.bad-identifier.css.

Reproduces how often:

100%

Additional Information

Originally from @tomasmoberg in https://github.com/microsoft/vscode/issues/130826

alexr00 avatar Nov 08 '21 12:11 alexr00

Unfortunately, I don't have much experience with Coffeescript beyond small bug fixes but I'd like to help to the extent that I can. What is the next step?

rlgreen91 avatar Jan 15 '22 17:01 rlgreen91

Any updates in this situation. It has been like this for quite a while now

fschatbot avatar Sep 10 '22 07:09 fschatbot