support rgba colors

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2011-12-09 16:57:17 -05:00
parent 57ae9a21e0
commit c3e1f583a4
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ class CSSGrammar(Grammar):
NocasePatternRule(r'css.rule', r'@(?:page|media|import)'),
NocasePatternRule(r'css.color', r'(?:aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|#\d{6}|#\d{3})(?!' + chr2 + ')'),
NocasePatternRule(r'css.keyword', r'(?:url|rgb|counter)'),
NocaseRegionRule(r'css.keyword', '(?:(?<=url)|(?<=rgb)|(?<=counter))\(', KeywordGrammar, '\)'),
NocasePatternRule(r'css.keyword', r'(?:url|rgba|rgb|counter)'),
NocaseRegionRule(r'css.keyword', '(?:(?<=url)|(?<=rgba)|(?<=rgb)|(?<=counter))\(', KeywordGrammar, '\)'),
NocasePatternRule(r'css.label', r"\.?" + chr2 + "+(?= *{)"),
NocasePatternRule(r'css.ident', r"-?[a-z_]" + chr2 + "*"),