mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 20:24:42 +01:00
parent
54d16c0ac4
commit
5f4994e487
@ -2,6 +2,8 @@
|
||||
|
||||
* Allow `if` to be used as an unquoted string.
|
||||
|
||||
* Properly parse backslash escapes within `url()` expressions.
|
||||
|
||||
### Command Line Interface
|
||||
|
||||
* Strip CRLF newlines from snippets of the original stylesheet that are included
|
||||
|
@ -395,14 +395,14 @@ class Parser {
|
||||
var next = scanner.peekChar();
|
||||
if (next == null) {
|
||||
break;
|
||||
} else if (next == $backslash) {
|
||||
buffer.write(escape());
|
||||
} else if (next == $percent ||
|
||||
next == $ampersand ||
|
||||
next == $hash ||
|
||||
(next >= $asterisk && next <= $tilde) ||
|
||||
next >= 0x0080) {
|
||||
buffer.writeCharCode(scanner.readChar());
|
||||
} else if (next == $backslash) {
|
||||
buffer.write(escape());
|
||||
} else if (isWhitespace(next)) {
|
||||
whitespace();
|
||||
if (scanner.peekChar() != $rparen) break;
|
||||
|
@ -2911,14 +2911,14 @@ abstract class StylesheetParser extends Parser {
|
||||
var next = scanner.peekChar();
|
||||
if (next == null) {
|
||||
break;
|
||||
} else if (next == $backslash) {
|
||||
buffer.write(escape());
|
||||
} else if (next == $exclamation ||
|
||||
next == $percent ||
|
||||
next == $ampersand ||
|
||||
(next >= $asterisk && next <= $tilde) ||
|
||||
next >= 0x0080) {
|
||||
buffer.writeCharCode(scanner.readChar());
|
||||
} else if (next == $backslash) {
|
||||
buffer.write(escape());
|
||||
} else if (next == $hash) {
|
||||
if (scanner.peekChar(1) == $lbrace) {
|
||||
buffer.add(singleInterpolation());
|
||||
|
Loading…
Reference in New Issue
Block a user