Otherwise we infinitely end up with the error again.
Testcases added.
else
{
gtk_css_token_init (token, GTK_CSS_TOKEN_DELIM, '\\');
+ gtk_css_tokenizer_consume_ascii (tokenizer);
gtk_css_tokenizer_parse_error (error, "Newline may not follow '\' escape character");
return FALSE;
}
'min-height.ref.css',
'min-width.css',
'min-width.ref.css',
+ 'newline-after-backslash.css',
+ 'newline-after-backslash.errors',
+ 'newline-after-backslash.ref.css',
+ 'newline-after-backslash-original.css',
+ 'newline-after-backslash-original.errors',
+ 'newline-after-backslash-original.ref.css',
'no-semicolon.css',
'no-semicolon.errors',
'no-semicolon.ref.css',
--- /dev/null
+/*\r
+You can type here any CSS rule recognized by GTK.\r
+You can temporarily disable this custom CSS by clicking on the “Pause” button above.\r
+\r
+Changes are applied instantly and globally, for the whole application.\r
+*/\r
+\r
+\r
+modelbutton.flat:hover {\r
+ background-color: red;\r
+}\r
+\r
+popover arrow {\r
+ background-color: lime;\r
+ border-width: 2px;\r
+ border-color: green;\r
+}\r
+\r
+popover {\r
+}\r
+\\r
+popover contents {\r
+ background-color: magenta;\r
+}
\ No newline at end of file
--- /dev/null
+newline-after-backslash-original.css:21:1-2: error: GTK_CSS_PARSER_ERROR_SYNTAX
--- /dev/null
+popover {
+}
+
+popover arrow {
+ background-color: rgb(0,255,0);
+ border-bottom-color: rgb(0,128,0);
+ border-bottom-width: 2px;
+ border-left-color: rgb(0,128,0);
+ border-left-width: 2px;
+ border-right-color: rgb(0,128,0);
+ border-right-width: 2px;
+ border-top-color: rgb(0,128,0);
+ border-top-width: 2px;
+}
+
+modelbutton:hover.flat {
+ background-color: rgb(255,0,0);
+}
--- /dev/null
+newline-after-backslash.css:1:1-2: error: GTK_CSS_PARSER_ERROR_SYNTAX