Browse Source

Fix whitespace after including a mixin (#12715)

Change-Id: I9b25968cc140a9443820a26eadb6b5a1507ad7ec
tags/7.1.8
Mika Murtojarvi 10 years ago
parent
commit
25fc2f2f1a

+ 617
- 607
theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java
File diff suppressed because it is too large
View File


+ 1
- 0
theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj View File

@@ -1727,6 +1727,7 @@ void includeDirective() :
(name = property()|name = variableName(){ name = "$"+name;}
|(name = functionName()
args = argValuelist()) <RPARAN>)
(<S>)*
((";"(<S>)*)+
{documentHandler.includeDirective(name, args);}
| <LBRACE> (<S>)* {documentHandler.startIncludeContentBlock(name);}

+ 2
- 0
theme-compiler/tests/resources/automatic/css/mixin-content-parameters.css View File

@@ -0,0 +1,2 @@
foo {
lorem: ipsum; }

+ 9
- 0
theme-compiler/tests/resources/automatic/scss/mixin-content-parameters.scss View File

@@ -0,0 +1,9 @@
@mixin test($foo) {
#{$foo} {
@content;
}
}

@include test("foo") {
lorem: ipsum;
}

Loading…
Cancel
Save