Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: leafo/lessphp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: shipcloud/lessphp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 30, 2024

  1. Copy the full SHA
    3e14e98 View commit details
Showing with 4 additions and 4 deletions.
  1. +4 −4 lessc.inc.php
8 changes: 4 additions & 4 deletions lessc.inc.php
Original file line number Diff line number Diff line change
@@ -746,7 +746,7 @@ protected function compileProp($prop, $block, $out) {
if ($suffix !== null &&
$subProp[0] == "assign" &&
is_string($subProp[1]) &&
$subProp[1]{0} != $this->vPrefix
$subProp[1][0] != $this->vPrefix
) {
$subProp[2] = array(
'list', ' ',
@@ -1963,7 +1963,7 @@ protected function injectVariables($args) {
$this->pushEnv();
$parser = new lessc_parser($this, __METHOD__);
foreach ($args as $name => $strValue) {
if ($name{0} !== '@') {
if ($name[0] !== '@') {
$name = '@' . $name;
}
$parser->count = 0;
@@ -2624,7 +2624,7 @@ protected function parseChunk() {
$hidden = true;
if (!isset($block->args)) {
foreach ($block->tags as $tag) {
if (!is_string($tag) || $tag{0} != $this->lessc->mPrefix) {
if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) {
$hidden = false;
break;
}
@@ -2678,7 +2678,7 @@ protected function isDirective($dirname, $directives) {
protected function fixTags($tags) {
// move @ tags out of variable namespace
foreach ($tags as &$tag) {
if ($tag{0} == $this->lessc->vPrefix)
if ($tag[0] == $this->lessc->vPrefix)
$tag[0] = $this->lessc->mPrefix;
}
return $tags;