summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-03-29 12:21:50 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2012-03-29 12:21:50 (GMT)
commit682ef77b1126a284c47b3b8530aaf829bf4396a1 (patch)
tree3590d3464c38be0f4789f1bd832312da4aae7db2
parentc8db891b1b580fb67f04bf5a3218d9ea76bc81db (diff)
downloadlibcss-682ef77b1126a284c47b3b8530aaf829bf4396a1.tar.gz
libcss-682ef77b1126a284c47b3b8530aaf829bf4396a1.tar.bz2
Add common CSS tokens to stylesheet string table.
svn path=/trunk/libcss/; revision=13771
-rw-r--r--src/parse/propstrings.c7
-rw-r--r--src/parse/propstrings.h4
2 files changed, 11 insertions, 0 deletions
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,