mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
css parser: Add gtk_css_parser_skip_whitespace
Does what it says.
This commit is contained in:
parent
7775bcf2fb
commit
7eca32edf0
@ -612,6 +612,19 @@ gtk_css_parser_skip_until (GtkCssParser *self,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gtk_css_parser_skip_whitespace (GtkCssParser *self)
|
||||||
|
{
|
||||||
|
const GtkCssToken *token;
|
||||||
|
|
||||||
|
for (token = gtk_css_parser_peek_token (self);
|
||||||
|
gtk_css_token_is (token, GTK_CSS_TOKEN_WHITESPACE);
|
||||||
|
token = gtk_css_parser_peek_token (self))
|
||||||
|
{
|
||||||
|
gtk_css_parser_consume_token (self);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gtk_css_parser_emit_error (GtkCssParser *self,
|
gtk_css_parser_emit_error (GtkCssParser *self,
|
||||||
const GtkCssLocation *start,
|
const GtkCssLocation *start,
|
||||||
|
@ -89,6 +89,7 @@ void gtk_css_parser_end_block (GtkCssParser
|
|||||||
void gtk_css_parser_skip (GtkCssParser *self);
|
void gtk_css_parser_skip (GtkCssParser *self);
|
||||||
void gtk_css_parser_skip_until (GtkCssParser *self,
|
void gtk_css_parser_skip_until (GtkCssParser *self,
|
||||||
GtkCssTokenType token_type);
|
GtkCssTokenType token_type);
|
||||||
|
void gtk_css_parser_skip_whitespace (GtkCssParser *self);
|
||||||
|
|
||||||
void gtk_css_parser_emit_error (GtkCssParser *self,
|
void gtk_css_parser_emit_error (GtkCssParser *self,
|
||||||
const GtkCssLocation *start,
|
const GtkCssLocation *start,
|
||||||
|
Loading…
Reference in New Issue
Block a user