public function __construct($code, $vector) { parent::__construct($code, $vector, 'String'); $this->pattern = array(new Regex('[^\\\\]"', 2), new Regex('[^\\\\]"', 2)); $this->lookBehind = true; $this->parsable = false; }
public function __construct($code, $vector) { parent::__construct($code, $vector, 'CommentLine'); $this->parsable = false; $this->pattern = array('//', new Regex('(\\r\\n|\\n|\\r)', 1)); }
public function __construct($code, $vector) { parent::__construct($code, $vector, 'Definition'); $this->parsable = false; $this->pattern = array(array(new Regex('public([^\\$]{1,})?\\$', 8), new Regex('protected([^\\$]{1,})?\\$', 11), new Regex('private([^\\$]{1,})?\\$', 9)), ';'); }
public function __construct($code, $vector) { parent::__construct($code, $vector, 'Block'); $this->pattern = array('{', '}'); }
public function __construct($code, $vector) { parent::__construct($code, $vector, 'CommentBlock'); $this->parsable = false; $this->pattern = array('/*', '*/'); }
public function __construct($code, $vector, $name = 'Array') { parent::__construct($code, $vector, $name); $this->pattern = array('=>', array('),', ';')); $this->lookBehind = true; }
public function __construct($code, $vector, $name = 'Variable') { parent::__construct($code, $vector, $name); $this->pattern = array(array('return', new Regex('[^=\\!\\<\\>]=[^=\\>]', 3)), ';'); $this->lookBehind = true; }