atom / language-css

CSS package for Atom
Other
59 stars 84 forks source link

CSS `min()` function breaks syntax highlighting #186

Closed alexr00 closed 2 years ago

alexr00 commented 2 years ago

Originally from @stefanprobst in https://github.com/microsoft/vscode/issues/134243

Does this issue occur when all extensions are disabled?: Yes

Using CSS min() or clamp() functions seems to break syntax highlighting.

Steps to Reproduce:

  1. Copy-paste the following css rule, and observe the different highlighting for the first 1fr and the second 1fr value:
.test {
  grid-template-columns: 1fr min(1024px, 100%) 1fr;
}

Screenshot_20210930_222956

Screenshot_20210930_223201

Screenshot_20210930_223309