mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
7ccb9db79e
Instead of relying on GScanner and its idea of syntax, code up a parser that obeys the CSS spec. This also has the great side effect of reporting correct line numbers and positions. Also included is a reorganization of the returned error values. Instead of error values describing what type of syntax error was returned, the code just returns SYNTAX_ERROR. Other messages exist for when actual values don't work or when errors shouldn't be fatal due to backwards compatibility.
9 lines
416 B
Plaintext
9 lines
416 B
Plaintext
border.css:26: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
|
border.css:30: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
|
border.css:34: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
|
border.css:38: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
|
border.css:42: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
|
border.css:46: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
|
border.css:50: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
|
border.css:54: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|