vtst / ow

Various Eclipse plugins for web development

Home Page:http://www.normalesup.org/~simonet/soft/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS custom properties

steph950 opened this issue · comments

Thanks for your great work.

I don't know if you have still time to work on it, but the CSS custom properties are not validated by the eclipse plugin.

--main-bg-color:@mainBGColor; => the double dashes are not recognized as valid during lexical analysis

var(--main-bg-color) => this is also not recognized as valid

But even if Eclipse considers these to be errors, the code is perfectly compiled by the less compiler.

I'm using this ugly workaround:

:root {
  -x: ~'0;'
  ~'--main-bg-color:' @mainBGColor ~';'
  ~'--another-custom-property:' @whatever ~';'
  ;
}
body {
  background-color: ~'var(--main-bg-color)';
}

I'm using this ugly workaround:

:root {
  -x: ~'0;'
  ~'--main-bg-color:' @mainBGColor ~';'
  ~'--another-custom-property:' @whatever ~';'
  ;
}
body {
  background-color: ~'var(--main-bg-color)';
}

Indeed using ~'' does the job, Eclipse doesn't see it as errors ;-)
But in this case, wrapping with simple quotes removes the IDE links. When I click on a less variable used anywhere, I love this link leading to the less variable declaration...