Skip to content

Commit bc6ec74

Browse files
authored
Merge pull request MyIntervals#188 from NitroPack/fix/preserve-var-casing
Preserve casing for CSS var names
2 parents a80a97d + f875144 commit bc6ec74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sabberworm/CSS/Rule/Rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct($sRule, $iLineNo = 0) {
3232

3333
public static function parse(ParserState $oParserState) {
3434
$aComments = $oParserState->consumeWhiteSpace();
35-
$oRule = new Rule($oParserState->parseIdentifier(), $oParserState->currentLine());
35+
$oRule = new Rule($oParserState->parseIdentifier(!$oParserState->comes("--")), $oParserState->currentLine());
3636
$oRule->setComments($aComments);
3737
$oRule->addComments($oParserState->consumeWhiteSpace());
3838
$oParserState->consume(':');

0 commit comments

Comments
 (0)