Skip to content

Parser error with extra semi-colon #670

@jasonsanjose

Description

@jasonsanjose

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/#style */
ruleset     : selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions