diff options
Diffstat (limited to 'src/parse')
-rw-r--r-- | src/parse/properties/aural.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/parse/properties/aural.c b/src/parse/properties/aural.c index 0c4f365..359fa79 100644 --- a/src/parse/properties/aural.c +++ b/src/parse/properties/aural.c @@ -269,6 +269,14 @@ css_error parse_cue(css_language *c, prev_ctx = *ctx; error = CSS_OK; + /* Ensure that we're not about to parse another inherit */ + token = parserutils_vector_peek(vector, *ctx); + if (token != NULL && token->type == CSS_TOKEN_IDENT && + token->ilower == c->strings[INHERIT]) { + error = CSS_INVALID; + goto cleanup; + } + if (before == NULL && (error = parse_cue_before(c, vector, ctx, &before)) == CSS_OK) { num_read = 1; @@ -573,6 +581,14 @@ css_error parse_pause(css_language *c, prev_ctx = *ctx; error = CSS_OK; + /* Ensure that we're not about to parse another inherit */ + token = parserutils_vector_peek(vector, *ctx); + if (token != NULL && token->type == CSS_TOKEN_IDENT && + token->ilower == c->strings[INHERIT]) { + error = CSS_INVALID; + goto cleanup; + } + if (before == NULL && (error = parse_pause_before(c, vector, ctx, &before)) == CSS_OK) { num_read = 1; |