mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Support nested ; and ! in custom property values.
This commit is contained in:
parent
3c7daa3499
commit
d8a299845d
@ -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.
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user