chrisyip / Better-CSS-Syntax-for-Vim

Better CSS Syntax for Vim
57 stars 8 forks source link

cssUnits should follow digit #7

Closed teschmitz closed 12 years ago

teschmitz commented 12 years ago

In the following example, the "s" in continuous is highlighted as cssUnits : -moz-background-inline-policy:continuous

I hope I am correct in presuming that a unit always follows a digit. In this case, the following syn-match provides the fix

syn match cssUnits /\d\@<=(%|cm|deg|dpi|dpcm|em|ex|\in|mm|pc|pt|px|s)\ze\s*[,;)}]\=/ contained

chrisyip commented 12 years ago

Thanks, @teschmitz.