You are here

function lessc::tagBracket in Less CSS Preprocessor 6.3

1 call to lessc::tagBracket()
lessc::tag in lessphp/lessc.inc.php

File

lessphp/lessc.inc.php, line 597

Class

lessc

Code

function tagBracket(&$value) {
  $s = $this
    ->seek();
  if ($this
    ->literal('[') && $this
    ->to(']', $c, true) && $this
    ->literal(']', false)) {
    $value .= '[' . $c . ']';

    // whitespace?
    if ($this
      ->match('', $_)) {
      $value .= $_[0];
    }
    return true;
  }
  $this
    ->seek($s);
  return false;
}