File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3503,7 +3503,7 @@ self.parserlib = (() => {
35033503 do {
35043504 this . _ws ( ) ;
35053505 if ( ( t = stream . get ( true ) ) . type === Tokens . IDENT ) {
3506- ids . push ( t . value ) ;
3506+ ids . push ( this . _layerName ( t ) ) ;
35073507 this . _ws ( ) ;
35083508 t = stream . get ( true ) ;
35093509 }
@@ -3521,6 +3521,16 @@ self.parserlib = (() => {
35213521 this . _ws ( ) ;
35223522 }
35233523
3524+ _layerName ( start ) {
3525+ let res = start ? start . value : '' ;
3526+ const stream = this . _tokenStream ;
3527+ for ( let t ; ( t = start || stream . match ( Tokens . IDENT ) ) ; ) {
3528+ res += t . value + ( stream . match ( Tokens . DOT ) ? '.' : '' ) ;
3529+ start = false ;
3530+ }
3531+ return res ;
3532+ }
3533+
35243534 _stylesheet ( ) {
35253535 const stream = this . _tokenStream ;
35263536 this . fire ( 'startstylesheet' ) ;
@@ -3590,7 +3600,7 @@ self.parserlib = (() => {
35903600 this . _ws ( ) ;
35913601 t = stream . get ( true ) ;
35923602 if ( / ^ l a y e r ( \( ) ? $ / i. test ( t . value ) ) {
3593- layer = RegExp . $1 ? stream . mustMatch ( Tokens . IDENT ) : '' ;
3603+ layer = RegExp . $1 ? this . _layerName ( ) : '' ;
35943604 if ( layer ) stream . mustMatch ( Tokens . RPAREN ) ;
35953605 this . _ws ( ) ;
35963606 t = stream . get ( true ) ;
You can’t perform that action at this time.
0 commit comments