Skip to content

Parser ignores strings at an unknown at-rule prelude (thus failing at { and ; there) #3147

Closed
@sylingd

Description

@sylingd

I used less to write some user styles for Stylish, it have some special syntaxs, for example, this extension support regexp("Regular expression"). So the following codes will work well on Stylish:

@-moz-document regexp("(\d{0,15})") {
	a {
		color: red;
	}
}

But it can not work with less.js:
tim 20180102004110

The less.js says:

ParseError: Unrecognised input. Possibly missing opening '{' on line 1, column 32:

1 @-moz-document regexp("(\d{0,15})") {
2 	a {

Is there a way to ignore the characters between quotation marks? Or are there other ways to solve this problem?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions