-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds permissive parsing for at-rules and custom properties * Added error tests for permissive parsing * Change custom property value to quoted-like value * Allow interpolation in unknown at-rules * Allows variables to fallback to permissive parsing * Allow escaping of blocks
- Loading branch information
1 parent
e1255ec
commit a75f7d9
Showing
16 changed files
with
328 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ | |
}, | ||
"globals": {}, | ||
"rules": { | ||
"quotes": [ | ||
1, | ||
"single" | ||
], | ||
"no-eval": 2, | ||
"no-use-before-define": [ | ||
2, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@-moz-document regexp("(\d{0,15})") { | ||
a { | ||
color: red; | ||
} | ||
} | ||
.custom-property { | ||
--this: () => { | ||
basically anything until final semi-colon; | ||
even other stuff; // i\'m serious; | ||
}; | ||
--that: () => { | ||
basically anything until final semi-colon; | ||
even other stuff; // i\'m serious; | ||
}; | ||
--custom-color: #ff3333; | ||
custom-color: #ff3333; | ||
} | ||
.var { | ||
--fortran: read (*, *, iostat=1) radius, height; | ||
} | ||
@-moz-whatever (foo: "(" bam ")") { | ||
bar: foo; | ||
} | ||
#selector, .bar, foo[attr="blah"] { | ||
bar: value; | ||
} | ||
@media (min-width: 640px) { | ||
.holy-crap { | ||
this: works; | ||
} | ||
} | ||
.test-comment { | ||
--value: ; | ||
--comment-within: ( /* okay?; comment; */ ); | ||
--empty: ; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
@unknown url( { | ||
50% {width: 20px;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SyntaxError: @unknown rule is missing block or ending semi-colon in {path}at-rules-unmatching-block.less on line 2, column 10: | ||
1 | ||
2 @unknown url( { | ||
3 50% {width: 20px;} |
Oops, something went wrong.