[gtk/matthiasc/for-master] css: Fix tokenization of CDO
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] css: Fix tokenization of CDO
- Date: Sat, 31 Oct 2020 13:24:00 +0000 (UTC)
commit 90676540ec4cf6cd7a03a339f920a0636d2ff1b1
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 31 00:37:39 2020 -0400
css: Fix tokenization of CDO
A CDO is 4 characters: <!--, not 3 as our tokenizer
was pretending.
gtk/css/gtkcsstokenizer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/css/gtkcsstokenizer.c b/gtk/css/gtkcsstokenizer.c
index 607c4d6992..203d7f3a45 100644
--- a/gtk/css/gtkcsstokenizer.c
+++ b/gtk/css/gtkcsstokenizer.c
@@ -1349,7 +1349,7 @@ gtk_css_tokenizer_read_token (GtkCssTokenizer *tokenizer,
tokenizer->data[3] == '-')
{
gtk_css_token_init (token, GTK_CSS_TOKEN_CDO);
- gtk_css_tokenizer_consume (tokenizer, 3, 3);
+ gtk_css_tokenizer_consume (tokenizer, 4, 4);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]