Support semicolons in mixin arguments

Check https://github.com/twbs/bootstrap/commit/c017e19ed236
This commit is contained in:
Sascha Peilicke
2013-09-05 14:32:27 +02:00
parent d186dbce65
commit 5126a571d0
4 changed files with 11 additions and 0 deletions

View File

@@ -305,6 +305,7 @@ class LessParser(object):
def p_mixin_args_list_aux(self, p):
""" mixin_args_list : mixin_args_list ',' mixin_args
| mixin_args_list ';' mixin_args
"""
p[1].extend([p[3]])
p[0] = p[1]

View File

@@ -0,0 +1,3 @@
.arguments {
border: 1px solid black;
}

View File

@@ -0,0 +1 @@
.arguments{border:1px solid black;}

View File

@@ -0,0 +1,6 @@
.mixin-arguments (@width: 0px) {
border: @arguments;
}
.arguments {
.mixin-arguments(1px; solid; black);
}