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