Parse em properly.

This commit is contained in:
Natalie Weizenbaum 2016-09-24 02:54:38 -07:00 committed by Natalie Weizenbaum
parent b47067ea4e
commit 4289011a84

View File

@ -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.");