You are here

public static function SassScriptOperation::isa in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/script/SassScriptOperation.php \SassScriptOperation::isa()

* Returns a value indicating if a token of this type can be matched at * the start of the subject string. *

Parameters

string the subject string: * @return mixed match at the start of the string or false if no match

1 call to SassScriptOperation::isa()
SassScriptLexer::lex in phamlp/sass/script/SassScriptLexer.php
* Lex an expression into SassScript tokens. *

File

phamlp/sass/script/SassScriptOperation.php, line 149

Class

SassScriptOperation
SassScriptOperation class. The operation to perform. @package PHamlP @subpackage Sass.script

Code

public static function isa($subject) {
  return preg_match(self::MATCH, $subject, $matches) ? trim($matches[0]) : false;
}