turbio / bracey.vim

live edit html, css, and javascript in vim
GNU General Public License v2.0
479 stars 25 forks source link

Using CSS global variables displays error #46

Open ic768 opened 3 years ago

ic768 commented 3 years ago

When using this code at the top of a CSS file, a pink circle pops up at the webpage stating "2:2: Expected RBRACE at line 2, col 2."

:root {
    --mySize:50px;
}

The double-dash seems to be the problem. The major annoyance is that after using these variables, the auto-updating of the website breaks completely, until the double-dashes have been removed.

turbio commented 3 years ago

yikes! That's pretty bad. Thanks for the straight forward repro.

I'm guessing the CSS parser or linter are way out of date, this project predates CSS variables. I'll give updating a shot when I get a chance.