cssprovider: Automatically add final closing bracket to last rule

This commit is contained in:
Benjamin Otte 2011-04-07 12:19:07 +02:00
parent 224d65032e
commit 38ca304825

View File

@ -3516,7 +3516,8 @@ parse_rule (GtkCssProvider *css_provider,
g_scanner_get_next_token (scanner);
}
if (scanner->token != G_TOKEN_RIGHT_CURLY)
if (scanner->token != G_TOKEN_RIGHT_CURLY &&
scanner->token != G_TOKEN_EOF)
return G_TOKEN_RIGHT_CURLY;
css_provider_pop_scope (css_provider);