mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 20:24:42 +01:00
Parse em properly.
This commit is contained in:
parent
b47067ea4e
commit
4289011a84
@ -1204,10 +1204,9 @@ abstract class StylesheetParser extends Parser {
|
||||
}
|
||||
}
|
||||
|
||||
var next = scanner.peekChar();
|
||||
if (next == $e || next == $E) {
|
||||
if (scanIdentifier("e", ignoreCase: true)) {
|
||||
scanner.readChar();
|
||||
next = scanner.peekChar();
|
||||
var next = scanner.peekChar();
|
||||
var exponentSign = next == $dash ? -1 : 1;
|
||||
if (next == $plus || next == $minus) scanner.readChar();
|
||||
if (!isDigit(scanner.peekChar())) scanner.error("Expected digit.");
|
||||
|
Loading…
Reference in New Issue
Block a user