summaryrefslogtreecommitdiff
path: root/src/parse/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/parse.c')
-rw-r--r--src/parse/parse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parse/parse.c b/src/parse/parse.c
index 825f019..9ea6064 100644
--- a/src/parse/parse.c
+++ b/src/parse/parse.c
@@ -1639,6 +1639,9 @@ css_error parseValue0(css_parser *parser)
if (error != CSS_OK)
return error;
+ if (token->type == CSS_TOKEN_EOF)
+ return done(parser);
+
/* Grammar ambiguity -- assume ';' or '}' mark end */
if (token->type == CSS_TOKEN_CHAR &&
token->ilower->len == 1 &&
@@ -1741,6 +1744,9 @@ css_error parseAny0(css_parser *parser)
if (error != CSS_OK)
return error;
+ if (token->type == CSS_TOKEN_EOF)
+ return done(parser);
+
/* Grammar ambiguity:
* assume '{', ';', ')', ']' mark end */
if (token->type == CSS_TOKEN_CHAR &&