Commit b8465d28 authored by Benjamin Otte's avatar Benjamin Otte

cssprovider: Get the location right for semicolon warnings

parent 5eefc37b
......@@ -1833,12 +1833,15 @@ parse_binding_set (GtkCssScanner *scanner)
}
skip_semicolon:
if (_gtk_css_parser_try (scanner->parser, ";", TRUE))
gtk_css_provider_error_literal (scanner->provider,
scanner,
GTK_CSS_PROVIDER_ERROR,
GTK_CSS_PROVIDER_ERROR_DEPRECATED,
"Nonstandard semicolon at end of binding set");
if (_gtk_css_parser_begins_with (scanner->parser, ';'))
{
gtk_css_provider_error_literal (scanner->provider,
scanner,
GTK_CSS_PROVIDER_ERROR,
GTK_CSS_PROVIDER_ERROR_DEPRECATED,
"Nonstandard semicolon at end of binding set");
_gtk_css_parser_try (scanner->parser, ";", TRUE);
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment