From 88223375fcdeed95afa708f934909b23b7765ed4 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 6 May 2019 14:00:22 +0100 Subject: lexer: Emit "<=" as a CSS_TOKEN_CHAR. Previously the "<" was output as a CSS_TOKEN_CHAR, and the "=" was in the next token. CSS media queries adds "<=". --- src/lex/lex.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lex/lex.c b/src/lex/lex.c index 2be1145..d5a1e33 100644 --- a/src/lex/lex.c +++ b/src/lex/lex.c @@ -698,6 +698,11 @@ css_error CDO(css_lexer *lexer, css_token **token) if (c == '!') { APPEND(lexer, cptr, clen); + } else if (c == '=') { + /* This is not relatated to comment parsing but + * media queries add a comment token. */ + APPEND(lexer, cptr, clen); + return emitToken(lexer, CSS_TOKEN_CHAR, token); } else { return emitToken(lexer, CSS_TOKEN_CHAR, token); } -- cgit v1.2.3