diff --git a/lesscpy/lessc/parser.py b/lesscpy/lessc/parser.py index 6ec884d..4535ace 100644 --- a/lesscpy/lessc/parser.py +++ b/lesscpy/lessc/parser.py @@ -518,6 +518,11 @@ class LessParser(object): """ p[0] = p[1] + def p_ident_part_aux(self, p): + """ ident_part : combinator vendor_property + """ + p[0] = [p[1], p[2]] + # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # diff --git a/lesscpy/test/css/identifiers.css b/lesscpy/test/css/identifiers.css index f169ec7..51693a8 100644 --- a/lesscpy/test/css/identifiers.css +++ b/lesscpy/test/css/identifiers.css @@ -211,3 +211,9 @@ section { .class_no_3 { padding: -3px; } +.label-important, .badge-important { + background-color: #ff0000; +} +.label-important[href], .badge-important[href] { + background-color: #cc0000; +} diff --git a/lesscpy/test/css/identifiers.min.css b/lesscpy/test/css/identifiers.min.css index 555b1e2..f6b9b69 100644 --- a/lesscpy/test/css/identifiers.min.css +++ b/lesscpy/test/css/identifiers.min.css @@ -33,3 +33,5 @@ article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{pa #f7{color:#fff777;} .asterisk_last *{padding:0;} .class_no_3{padding:-3px;} +.label-important,.badge-important{background-color:#ff0000;} +.label-important[href],.badge-important[href]{background-color:#cc0000;} diff --git a/lesscpy/test/less/identifiers.less b/lesscpy/test/less/identifiers.less index cb0ad30..0a6582c 100644 --- a/lesscpy/test/less/identifiers.less +++ b/lesscpy/test/less/identifiers.less @@ -134,3 +134,12 @@ footer, header, hgroup, menu, nav, section { (~".class_no_@{var}") { padding: @var * -1px; } +/* + +*/ +.label, +.badge { + // Composite identifiers + &-important { background-color: #F00; } + &-important[href] { background-color: darken(#F00, 10%);} +} \ No newline at end of file