Lines Matching refs:match

252 …          if (preg_match($this->regexes['lex_block_raw'], $this->code, $match, 0, $this->cursor)) {
253 $this->moveCursor($match[0]);
256 … } elseif (preg_match($this->regexes['lex_block_line'], $this->code, $match, 0, $this->cursor)) {
257 $this->moveCursor($match[0]);
258 $this->lineno = (int) $match[1];
276 …if (empty($this->brackets) && preg_match($this->regexes['lex_block'], $this->code, $match, 0, $thi…
278 $this->moveCursor($match[0]);
287 …if (empty($this->brackets) && preg_match($this->regexes['lex_var'], $this->code, $match, 0, $this-…
289 $this->moveCursor($match[0]);
299 if (preg_match('/\s+/A', $this->code, $match, 0, $this->cursor)) {
300 $this->moveCursor($match[0]);
313 elseif (preg_match($this->regexes['operator'], $this->code, $match, 0, $this->cursor)) {
314 $this->pushToken(/* Token::OPERATOR_TYPE */ 8, preg_replace('/\s+/', ' ', $match[0]));
315 $this->moveCursor($match[0]);
318 elseif (preg_match(self::REGEX_NAME, $this->code, $match, 0, $this->cursor)) {
319 $this->pushToken(/* Token::NAME_TYPE */ 5, $match[0]);
320 $this->moveCursor($match[0]);
323 elseif (preg_match(self::REGEX_NUMBER, $this->code, $match, 0, $this->cursor)) {
324 $number = (float) $match[0]; // floats
325 if (ctype_digit($match[0]) && $number <= \PHP_INT_MAX) {
326 $number = (int) $match[0]; // integers lower than the maximum
329 $this->moveCursor($match[0]);
353 elseif (preg_match(self::REGEX_STRING, $this->code, $match, 0, $this->cursor)) {
354 $this->pushToken(/* Token::STRING_TYPE */ 7, stripcslashes(substr($match[0], 1, -1)));
355 $this->moveCursor($match[0]);
358 elseif (preg_match(self::REGEX_DQ_STRING_DELIM, $this->code, $match, 0, $this->cursor)) {
361 $this->moveCursor($match[0]);
371 …if (!preg_match($this->regexes['lex_raw_data'], $this->code, $match, \PREG_OFFSET_CAPTURE, $this->…
375 $text = substr($this->code, $this->cursor, $match[0][1] - $this->cursor);
376 $this->moveCursor($text.$match[0][0]);
379 if (isset($match[1][0])) {
380 if ($this->options['whitespace_trim'] === $match[1][0]) {
395 …if (!preg_match($this->regexes['lex_comment'], $this->code, $match, \PREG_OFFSET_CAPTURE, $this->c…
399 … $this->moveCursor(substr($this->code, $this->cursor, $match[0][1] - $this->cursor).$match[0][0]);
404 … if (preg_match($this->regexes['interpolation_start'], $this->code, $match, 0, $this->cursor)) {
407 $this->moveCursor($match[0]);
409 … (preg_match(self::REGEX_DQ_STRING_PART, $this->code, $match, 0, $this->cursor) && \strlen($match[…
410 $this->pushToken(/* Token::STRING_TYPE */ 7, stripcslashes($match[0]));
411 $this->moveCursor($match[0]);
412 } elseif (preg_match(self::REGEX_DQ_STRING_DELIM, $this->code, $match, 0, $this->cursor)) {
429 …acket[0] && preg_match($this->regexes['interpolation_end'], $this->code, $match, 0, $this->cursor)…
432 $this->moveCursor($match[0]);