From 391e445d1130aa6cc5c3f86fd79bcc0a2ca2999d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 23 Nov 2010 13:34:28 -0500 Subject: [PATCH] Allow digits in selectors and values, where appropriate --- gtk/gtkcssprovider.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index f3a62cdf3b..7390269cb6 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -1437,22 +1437,22 @@ scanner_apply_scope (GScanner *scanner, if (scope == SCOPE_VALUE) { - scanner->config->cset_identifier_first = G_CSET_a_2_z "@#-_0123456789" G_CSET_A_2_Z; - scanner->config->cset_identifier_nth = G_CSET_a_2_z "@#-_ 0123456789(),.%\t\n'/\"" G_CSET_A_2_Z; + scanner->config->cset_identifier_first = G_CSET_a_2_z G_CSET_A_2_Z G_CSET_DIGITS "@#-_"; + scanner->config->cset_identifier_nth = G_CSET_a_2_z G_CSET_A_2_Z G_CSET_DIGITS "@#-_ (),.%\t\n'/\""; scanner->config->scan_identifier_1char = TRUE; } else if (scope == SCOPE_SELECTOR) { scanner->config->cset_identifier_first = G_CSET_a_2_z G_CSET_A_2_Z "*@"; - scanner->config->cset_identifier_nth = G_CSET_a_2_z "-_#." G_CSET_A_2_Z; + scanner->config->cset_identifier_nth = G_CSET_a_2_z G_CSET_A_2_Z G_CSET_DIGITS "-_#."; scanner->config->scan_identifier_1char = TRUE; } else if (scope == SCOPE_PSEUDO_CLASS || scope == SCOPE_NTH_CHILD || scope == SCOPE_DECLARATION) { - scanner->config->cset_identifier_first = G_CSET_a_2_z "-" G_CSET_A_2_Z; - scanner->config->cset_identifier_nth = G_CSET_a_2_z "-" G_CSET_A_2_Z; + scanner->config->cset_identifier_first = G_CSET_a_2_z G_CSET_A_2_Z "-_"; + scanner->config->cset_identifier_nth = G_CSET_a_2_z G_CSET_A_2_Z G_CSET_DIGITS "-_"; scanner->config->scan_identifier_1char = FALSE; } else