@@ 276-283 (lines=8) @@ | ||
273 | ||
274 | // Handling delimiters. |
|
275 | if ($token->type === Token::TYPE_NONE && $token->value === 'DELIMITER') { |
|
276 | if ($this->last + 1 >= $this->len) { |
|
277 | $this->error( |
|
278 | 'Expected whitespace(s) before delimiter.', |
|
279 | '', |
|
280 | $this->last + 1 |
|
281 | ); |
|
282 | continue; |
|
283 | } |
|
284 | ||
285 | // Skipping last R (from `delimiteR`) and whitespaces between |
|
286 | // the keyword `DELIMITER` and the actual delimiter. |
|
@@ 294-301 (lines=8) @@ | ||
291 | } |
|
292 | ||
293 | // Preparing the token that holds the new delimiter. |
|
294 | if ($this->last + 1 >= $this->len) { |
|
295 | $this->error( |
|
296 | 'Expected delimiter.', |
|
297 | '', |
|
298 | $this->last + 1 |
|
299 | ); |
|
300 | continue; |
|
301 | } |
|
302 | $pos = $this->last + 1; |
|
303 | ||
304 | // Parsing the delimiter. |