Lines Matching refs:match
109 if (preg_match('/\s+/A', $str, $match, null, $cursor)) {
110 $cursor += strlen($match[0]);
111 } elseif (preg_match('/<(\w+)(?:\:(\w+))?>/A', $str, $match, null, $cursor)) {
112 …$class = sprintf('Twig_Extensions_Grammar_%s', ucfirst(isset($match[2]) ? $match[2] : 'Expression'…
114 …time(sprintf('Unable to understand "%s" in grammar (%s class does not exist)', $match[0], $class));
116 $grammar->addGrammar(new $class($match[1]));
117 $cursor += strlen($match[0]);
118 } elseif (preg_match('/\w+/A', $str, $match, null, $cursor)) {
119 $grammar->addGrammar(new Twig_Extensions_Grammar_Constant($match[0]));
120 $cursor += strlen($match[0]);
121 } elseif (preg_match('/,/A', $str, $match, null, $cursor)) {
122 …$grammar->addGrammar(new Twig_Extensions_Grammar_Constant($match[0], Twig_Token::PUNCTUATION_TYPE)…
123 $cursor += strlen($match[0]);
124 } elseif (preg_match('/\[/A', $str, $match, null, $cursor)) {
125 $cursor += strlen($match[0]);
127 } elseif (true !== $main && preg_match('/\]/A', $str, $match, null, $cursor)) {
128 $cursor += strlen($match[0]);