@@ 300-307 (lines=8) @@ | ||
297 | ||
298 | // Handling delimiters. |
|
299 | if ($token->type === Token::TYPE_NONE && $token->value === 'DELIMITER') { |
|
300 | if ($this->last + 1 >= $this->len) { |
|
301 | $this->error( |
|
302 | __('Expected whitespace(s) before delimiter.'), |
|
303 | '', |
|
304 | $this->last + 1 |
|
305 | ); |
|
306 | continue; |
|
307 | } |
|
308 | ||
309 | // Skipping last R (from `delimiteR`) and whitespaces between |
|
310 | // the keyword `DELIMITER` and the actual delimiter. |
|
@@ 318-325 (lines=8) @@ | ||
315 | } |
|
316 | ||
317 | // Preparing the token that holds the new delimiter. |
|
318 | if ($this->last + 1 >= $this->len) { |
|
319 | $this->error( |
|
320 | __('Expected delimiter.'), |
|
321 | '', |
|
322 | $this->last + 1 |
|
323 | ); |
|
324 | continue; |
|
325 | } |
|
326 | $pos = $this->last + 1; |
|
327 | ||
328 | // Parsing the delimiter. |