forked from AuroraMiddleware/gtk
cssprovider: Automatically add final closing bracket to last rule
This commit is contained in:
parent
224d65032e
commit
38ca304825
@ -3516,7 +3516,8 @@ parse_rule (GtkCssProvider *css_provider,
|
|||||||
g_scanner_get_next_token (scanner);
|
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;
|
return G_TOKEN_RIGHT_CURLY;
|
||||||
|
|
||||||
css_provider_pop_scope (css_provider);
|
css_provider_pop_scope (css_provider);
|
||||||
|
Loading…
Reference in New Issue
Block a user