You are here

protected function DocLexer::getCatchablePatterns in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php \Doctrine\Common\Annotations\DocLexer::getCatchablePatterns()

Lexical catchable patterns.

Return value

array

Overrides AbstractLexer::getCatchablePatterns

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php, line 82

Class

DocLexer
Simple lexer for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

protected function getCatchablePatterns() {
  return array(
    '[a-z_\\\\][a-z0-9_\\:\\\\]*[a-z_][a-z0-9_]*',
    '(?:[+-]?[0-9]+(?:[\\.][0-9]+)*)(?:[eE][+-]?[0-9]+)?',
    '"(?:""|[^"])*+"',
  );
}