diff options
author | Marc Englund <marc@vaadin.com> | 2012-10-04 14:55:56 +0300 |
---|---|---|
committer | Marc Englund <marc@vaadin.com> | 2012-10-04 14:55:56 +0300 |
commit | 98318862015078a756e3a37ef709eecf7012cdfd (patch) | |
tree | d8734c66bbe9807e52919d46453c5154f3aa0345 /theme-compiler/src/com/vaadin/sass/parser/Parser.jj | |
parent | a32395355d89c16449f051bb9fb57da30cb4f3ce (diff) | |
download | vaadin-framework-98318862015078a756e3a37ef709eecf7012cdfd.tar.gz vaadin-framework-98318862015078a756e3a37ef709eecf7012cdfd.zip |
Adds support for CSS3 selectors #9858 (autor: seba)
Change-Id: Icd8e0fd09c3964ebbfab8f130d7945e51af326d7
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass/parser/Parser.jj')
-rw-r--r-- | theme-compiler/src/com/vaadin/sass/parser/Parser.jj | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/parser/Parser.jj b/theme-compiler/src/com/vaadin/sass/parser/Parser.jj index ed27af7512..9148da9ff9 100644 --- a/theme-compiler/src/com/vaadin/sass/parser/Parser.jj +++ b/theme-compiler/src/com/vaadin/sass/parser/Parser.jj @@ -491,6 +491,9 @@ TOKEN : | < LBRACE : "{" > | < RBRACE : "}"> | < DASHMATCH : "|=" > + | < CARETMATCH : "^=" > + | < DOLLARMATCH : "$=" > + | < STARMATCH : "*=" > | < INCLUDES : "~=" > | < EQ : "=" > | < PLUS : "+" > @@ -1229,7 +1232,10 @@ String attrib(String pred) : "[" ( <S> )* att=<IDENT> ( <S> )* ( ( "=" { cases = 1; } | <INCLUDES> { cases = 2; } - | <DASHMATCH> { cases = 3; } ) ( <S> )* + | <DASHMATCH> { cases = 3; } + | <CARETMATCH> { cases = 4; } + | <DOLLARMATCH> { cases = 5; } + | <STARMATCH> { cases = 6; } ) ( <S> )* ( val=<IDENT> { attValue = val.image; } | val=<STRING> { attValue = val.image; } ) @@ -1251,6 +1257,15 @@ String attrib(String pred) : case 3: c = name + "|=" +attValue; break; + case 4: + c = name + "^=" +attValue; + break; + case 5: + c = name + "$=" +attValue; + break; + case 6: + c = name + "*=" +attValue; + break; default: // never reached. c = null; |