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