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) ...@@ -1833,12 +1833,15 @@ parse_binding_set (GtkCssScanner *scanner)
} }
skip_semicolon: skip_semicolon:
if (_gtk_css_parser_try (scanner->parser, ";", TRUE)) if (_gtk_css_parser_begins_with (scanner->parser, ';'))
gtk_css_provider_error_literal (scanner->provider, {
scanner, gtk_css_provider_error_literal (scanner->provider,
GTK_CSS_PROVIDER_ERROR, scanner,
GTK_CSS_PROVIDER_ERROR_DEPRECATED, GTK_CSS_PROVIDER_ERROR,
"Nonstandard semicolon at end of binding set"); GTK_CSS_PROVIDER_ERROR_DEPRECATED,
"Nonstandard semicolon at end of binding set");
_gtk_css_parser_try (scanner->parser, ";", TRUE);
}
} }
static void 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