diff --git a/lib/Less/Parser.php b/lib/Less/Parser.php index 1c53755d..6841d8b0 100644 --- a/lib/Less/Parser.php +++ b/lib/Less/Parser.php @@ -2594,7 +2594,7 @@ private function parseRuleProperty() { // @phan-suppress-next-line PhanPluginEmptyStatementWhileLoop while ( $this->rulePropertyMatch( '/\\G((?:[\w-]+)|(?:@\{[\w-]+\}))/', $index, $name ) ); - if ( ( count( $name ) > 1 ) && $this->rulePropertyMatch( '/\\G\s*((?:\+_|\+)?)\s*:/', $index, $name ) ) { + if ( ( count( $name ) > 1 ) && $this->rulePropertyMatch( '/\\G((?:\+_|\+)?)\s*:/', $index, $name ) ) { $this->forget(); // at last, we have the complete match now. move forward,