Lines Matching +full:continue +full:- +full:on +full:- +full:error
19 '(', '=', '<', '>', '?', '[', '{', ',', ';', ':', '!', '&', '|', '+', '-', '%', '~', '^',
25 const CHARS = "^&|!+\-*\/%=\?:;,{}()<>% \t\n\r'\"`[]~^";
29 * E.g. '+ ++' may not be compressed to '+++' --> syntax error.
31 const OPS = "+-/";
51 $this->source = $source;
52 $this->line = 1;
53 $this->idx = &$idx;
74 if ($endC === false) $this->fatal('Found invalid /*..*/ comment');
77 if (substr($source, $idx, $endC + 2 - $idx) == '/* BEGIN NOCOMPRESS */') {
85 if ($endNC === false) $this->fatal('Found invalid NOCOMPRESS comment');
90 $depth--;
95 // verbatim copy contents, trimming but putting it on its own line
96 …$result .= "\n" . trim(substr($source, $idx + 22, $endNC - ($idx + 22))) . "\n"; // BEGIN comment …
101 continue;
107 if ($endC === false) $this->fatal('Invalid comment'); // not sure this can happen
109 continue;
116 while (in_array($source[$idx - $j], self::WHITESPACE_CHARS)) {
123 $idx = $idx - $j + 1 - $len;
137 if ($source[$idx + $j - 1] == '[') $ccd = true;
138 else if ($source[$idx + $j - 1] == ']') $ccd = false;
143 continue;
162 continue;
180 continue;
198 continue;
203 $lch = substr($result, -1);
204 if ($ch == "\n") $this->line++;
214 continue;
221 continue;
239 * Helper to throw a fatal error
241 * Tries to give some context to locate the error
248 $before = substr($this->source, max(0, $this->idx - 15), $this->idx);
249 $after = substr($this->source, $this->idx, 15);
251 $msg = "$msg on line {$this->line}: '{$before}◎{$after}'";