cloudhead/less.js — Issue #670: Parser error with extra semi-colon
Author: jason-sanjose
Created: 2012-02-29 18:54:47+00:00
State: open

Compile the following file:

```
/* double-semi-colon.less */
@color: #4D926F;

#header {
color: @color;
}
h2 {
color: @color;
}
```

The compile fails with the following error:

```
ParseError: Syntax Error on line 1 in /Users/jasonsj/Desktop/h5bp-html5-boilerplate/double-semi-colon.less:1:16
1 @color: #4D926F;;
2 [0m
```

Seems like a semi-colon with no following declaration is still valid CSS:

```
/* http://www.w3.org/TR/css3-syntax/#syntax section 4.3.2 */
ruleset : selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*;
```