Why:
* Another case after #872 where at-rules were incorrectly
tokenized because `propertyToken` wasn't reset.
+[4.0.2 / 2017-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v4.0.1...4.0)
+==================
+
+* Fixed issue [#874](https://github.com/jakubpawlowicz/clean-css/issues/874) - regression in at-rule tokenization.
+
[4.0.1 / 2017-01-25](https://github.com/jakubpawlowicz/clean-css/compare/v4.0.0...v4.0.1)
==================
buffer = [];
} else if (character == Marker.SEMICOLON && level == Level.RULE && propertyToken && buffer.length === 0) {
// semicolon after bracketed value at rule level, e.g. a{color:rgb(...);<--
+ propertyToken = null;
seekingValue = false;
} else if (character == Marker.SEMICOLON && level == Level.RULE && buffer.length > 0 && buffer[0] == Marker.AT) {
// semicolon for at-rule at rule level, e.g. a{@apply(--variable);<--
]
]
],
+ '@apply after a function': [
+ '.block{color:rgb(0,0,0);@apply(--test)}',
+ [
+ [
+ 'rule',
+ [
+ [
+ 'rule-scope',
+ '.block',
+ [
+ [1, 0, undefined]
+ ]
+ ]
+ ],
+ [
+ [
+ 'property',
+ [
+ 'property-name',
+ 'color',
+ [
+ [1, 7, undefined]
+ ]
+ ],
+ [
+ 'property-value',
+ 'rgb(0,0,0)',
+ [
+ [1, 13, undefined]
+ ]
+ ]
+ ],
+ [
+ 'at-rule',
+ '@apply(--test)',
+ [
+ [1, 24, undefined]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ],
'media query': [
'@media (min-width:980px){}',
[