From 682ef77b1126a284c47b3b8530aaf829bf4396a1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 29 Mar 2012 12:21:50 +0000 Subject: Add common CSS tokens to stylesheet string table. svn path=/trunk/libcss/; revision=13771 --- src/parse/propstrings.c | 7 +++++++ src/parse/propstrings.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/src/parse/propstrings.c b/src/parse/propstrings.c index 7a4abd5..35466eb 100644 --- a/src/parse/propstrings.c +++ b/src/parse/propstrings.c @@ -26,6 +26,13 @@ static css__propstrings_ctx css__propstrings; const stringmap_entry stringmap[LAST_KNOWN] = { { "*", SLEN("*") }, + { ":", SLEN(":") }, + { ",", SLEN(",") }, + { ";", SLEN(";") }, + { "{", SLEN("{") }, + { "}", SLEN("}") }, + { "0", SLEN("0") }, + { "charset", SLEN("charset") }, { "import", SLEN("import") }, { "media", SLEN("media") }, diff --git a/src/parse/propstrings.h b/src/parse/propstrings.h index 01108a8..2ed0743 100644 --- a/src/parse/propstrings.h +++ b/src/parse/propstrings.h @@ -14,6 +14,10 @@ enum { /* Universal selector */ UNIVERSAL, + /* Common tokens */ + COLON, COMMA, SEMICOLON, OPEN_CURLY_BRACE, CLOSE_CURLY_BRACE, + ZERO_VALUE, + /* At-rules */ CHARSET, LIBCSS_IMPORT, MEDIA, NAMESPACE, FONT_FACE, PAGE, -- cgit v1.2.3