@@ 1744-1746 (lines=3) @@ | ||
1741 | $cmdstr = substr($in, $from, $to - $from); |
|
1742 | preg_match('/^(\\\\?[a-z_](?:\\\\?[a-z0-9_]+)*(?:::[a-z_][a-z0-9_]*)?)(\s*' . $this->rdr . '|\s*;)?/i', $cmdstr, $match); |
|
1743 | ||
1744 | if (empty($match[1])) { |
|
1745 | throw new CompilationException($this, 'Parse error, invalid function name : ' . substr($cmdstr, 0, 15)); |
|
1746 | } |
|
1747 | ||
1748 | $func = $match[1]; |
|
1749 | ||
@@ 3095-3097 (lines=3) @@ | ||
3092 | } |
|
3093 | $cmdstr = $cmdstrsrc; |
|
3094 | $paramsep = ':'; |
|
3095 | if (!preg_match('/^(@{0,2}[a-z_][a-z0-9_]*)(:)?/i', $cmdstr, $match)) { |
|
3096 | throw new CompilationException($this, 'Invalid modifier name, started with : ' . substr($cmdstr, 0, 10)); |
|
3097 | } |
|
3098 | $paramspos = !empty($match[2]) ? strlen($match[1]) : false; |
|
3099 | $func = $match[1]; |
|
3100 |