diff options
author | Marc Englund <marc@vaadin.com> | 2012-09-27 09:56:49 +0300 |
---|---|---|
committer | Marc Englund <marc@vaadin.com> | 2012-09-27 09:56:49 +0300 |
commit | abea9d1ce0fdcad2e344cfa2417a09c29d903648 (patch) | |
tree | faa69c865e4e9a859c82a6b54046cecc618906cf /theme-compiler/src/com/vaadin/sass/parser/Parser.jj | |
parent | af67b3056eabb6428aa2a5e736d5a19e6cca9564 (diff) | |
download | vaadin-framework-abea9d1ce0fdcad2e344cfa2417a09c29d903648.tar.gz vaadin-framework-abea9d1ce0fdcad2e344cfa2417a09c29d903648.zip |
Fixes #9492 so that interpolation of mixin parameters works as expected
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass/parser/Parser.jj')
-rw-r--r-- | theme-compiler/src/com/vaadin/sass/parser/Parser.jj | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/parser/Parser.jj b/theme-compiler/src/com/vaadin/sass/parser/Parser.jj index 52f9535213..97031e4616 100644 --- a/theme-compiler/src/com/vaadin/sass/parser/Parser.jj +++ b/theme-compiler/src/com/vaadin/sass/parser/Parser.jj @@ -522,7 +522,7 @@ TOKEN : < DEFAULT > TOKEN : { - < EACH_VAR : "#{"< VARIABLE > "}"> + < INTERPOLATION : "#{"< VARIABLE > "}"> } <DEFAULT> @@ -999,7 +999,7 @@ void microsoftExtension() : < COLON > ((n = < IDENT > { value += n.image; }) | (n = < NUMBER > { value += n.image; }) - | (n = < EACH_VAR > { value += n.image; }) + | (n = < INTERPOLATION > { value += n.image; }) | (n = < COLON > { value += n.image; }) | (n = < FUNCTION > { value += n.image; }) | (n = < RPARAN > { value += n.image; }) @@ -1188,7 +1188,7 @@ String _class(String pred) : String s = "."; } { - "." (t = <IDENT>{s += t.image; }|t = < EACH_VAR >{ s += t.image; })+ + "." (t = <IDENT>{s += t.image; }|t = < INTERPOLATION >{ s += t.image; })+ { if (pred == null) { @@ -1205,7 +1205,7 @@ String s = "."; String element_name() : {Token t; String s = "";} { - (t = <IDENT>{s += t.image; }|t = < EACH_VAR >{ s += t.image; })+ + (t = <IDENT>{s += t.image; }|t = < INTERPOLATION >{ s += t.image; })+ { return s; } @@ -1483,7 +1483,6 @@ void mixinDirective() : args = arglist()) <RPARAN> (<S>)*) <LBRACE> (<S>)* {documentHandler.startMixinDirective(name, args);} ( includeDirective() | media() | eachDirective() | extendDirective()| variable() | LOOKAHEAD(3) declarationOrNestedProperties() | styleRule())* - //(includeDirective() | media() | LOOKAHEAD(declaration()) declaration()";"(<S>)* | styleRule())* <RBRACE>(<S>)* {documentHandler.endMixinDirective(name, args);} } |