From d0771e7fab2cb9553b0c2043d128d1f26b44fa1e Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Fri, 28 Oct 2016 14:20:19 -0700 Subject: [PATCH] Parse progid expressions like Ruby Sass. --- lib/src/parse/stylesheet.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/parse/stylesheet.dart b/lib/src/parse/stylesheet.dart index ec8aa406..33d0e33d 100644 --- a/lib/src/parse/stylesheet.dart +++ b/lib/src/parse/stylesheet.dart @@ -1762,7 +1762,11 @@ abstract class StylesheetParser extends Parser { buffer = new InterpolationBuffer() ..write(name) ..writeCharCode($colon); - buffer.write(identifier()); + var next = scanner.peekChar(); + while (next != null && (isAlphabetic(next) || next == $dot)) { + buffer.writeCharCode(scanner.readChar()); + next = scanner.peekChar(); + } scanner.expectChar($lparen); buffer.writeCharCode($lparen); break;