microsoft / vscode-css

CSS Textmate grammar for syntax highlighting
Other
17 stars 14 forks source link

Add support for latest syntax in `@import` #20

Open romainmenke opened 1 year ago

romainmenke commented 1 year ago

For example :

Screenshot 2023-09-14 at 15 00 28
@import url("green.css") layer supports(selector(&)) (min-width: calc(10px));

/* layer as a function */
@import url("green.css") layer(bar) supports(selector(&)) (min-width: calc(10px));

Existing things like 10px have correct syntax highlighting even in @import statement.

Missing syntax highlighting :