Support nested ; and ! in custom property values.

This commit is contained in:
Natalie Weizenbaum 2017-01-08 22:59:58 -08:00
parent 3c7daa3499
commit d8a299845d
3 changed files with 9 additions and 2 deletions

View File

@ -4,6 +4,9 @@
* Support interpolation in loud comments.
* Fix a bug where even valid semicolons and exclamation marks in custom property
values were disallowed.
* Disallow invalid function names.
* Support terse mixin syntax in the indented syntax.

View File

@ -230,7 +230,9 @@ abstract class Parser {
case $exclamation:
case $semicolon:
break loop;
if (brackets.isEmpty) break loop;
buffer.writeCharCode(scanner.readChar());
break;
case $u:
case $U:

View File

@ -2289,7 +2289,9 @@ abstract class StylesheetParser extends Parser {
case $exclamation:
case $semicolon:
break loop;
if (brackets.isEmpty) break loop;
buffer.writeCharCode(scanner.readChar());
break;
case $u:
case $U: