cssprovider: Advance parser to start of declaration

This way, the block will reference the right location.
This commit is contained in:
Benjamin Otte 2019-04-10 17:07:06 +02:00
parent 46143492a2
commit 085d34cbb0

View File

@ -931,6 +931,8 @@ parse_declaration (GtkCssScanner *scanner,
GtkStyleProperty *property; GtkStyleProperty *property;
char *name; char *name;
/* advance the location over whitespace */
gtk_css_parser_get_token (scanner->parser);
gtk_css_parser_start_semicolon_block (scanner->parser, GTK_CSS_TOKEN_EOF); gtk_css_parser_start_semicolon_block (scanner->parser, GTK_CSS_TOKEN_EOF);
if (gtk_css_parser_has_token (scanner->parser, GTK_CSS_TOKEN_EOF)) if (gtk_css_parser_has_token (scanner->parser, GTK_CSS_TOKEN_EOF))