Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
All new code requires tests to ensure against regressions
Description of the Change
As seen in #160, the following code won't be highlighted properly:
@value foo;
.foo
This is caused by my change in #142 to eagerly parse a block of {} in custom at-rules.
My change introduce a new rule that specifically handle single-line custom at-rules ending with ;.
Alternate Designs
n/a
Benefits
Before:
After:
Possible Drawbacks
Before:
After:
Although @import-file.css is not valid CSS, I think parsing the @import-file part as at-rule follows the spec closer than original behavior.
Requirements
Description of the Change
As seen in #160, the following code won't be highlighted properly:
This is caused by my change in #142 to eagerly parse a block of
{}
in custom at-rules. My change introduce a new rule that specifically handle single-line custom at-rules ending with;
.Alternate Designs
n/a
Benefits
Before:
After:
Possible Drawbacks
Before:
After:
Although
@import-file.css
is not valid CSS, I think parsing the@import-file
part as at-rule follows the spec closer than original behavior.Applicable Issues
160.