| @@ 243-247 (lines=5) @@ | ||
| 240 | while ('EOS' !== $this->predictTokenType()) { |
|
| 241 | $node = $this->parseExpression(); |
|
| 242 | ||
| 243 | if (is_string($node)) { |
|
| 244 | $text = preg_replace('/^\s{0,' . ($token['indent'] + 2) . '}|\s*$/', '', $node); |
|
| 245 | $description .= (null !== $description ? "\n" : '') . $text; |
|
| 246 | continue; |
|
| 247 | } |
|
| 248 | ||
| 249 | if (!$background && $node instanceof BackgroundNode) { |
|
| 250 | $background = $node; |
|
| @@ 325-329 (lines=5) @@ | ||
| 322 | continue; |
|
| 323 | } |
|
| 324 | ||
| 325 | if (!count($steps) && is_string($node)) { |
|
| 326 | $text = preg_replace('/^\s{0,' . ($token['indent'] + 2) . '}|\s*$/', '', $node); |
|
| 327 | $title .= "\n" . $text; |
|
| 328 | continue; |
|
| 329 | } |
|
| 330 | ||
| 331 | if ("\n" === $node) { |
|
| 332 | continue; |
|
| @@ 382-386 (lines=5) @@ | ||
| 379 | continue; |
|
| 380 | } |
|
| 381 | ||
| 382 | if (!count($steps) && is_string($node)) { |
|
| 383 | $text = preg_replace('/^\s{0,' . ($token['indent'] + 2) . '}|\s*$/', '', $node); |
|
| 384 | $title .= "\n" . $text; |
|
| 385 | continue; |
|
| 386 | } |
|
| 387 | ||
| 388 | if ("\n" === $node) { |
|
| 389 | continue; |
|
| @@ 445-449 (lines=5) @@ | ||
| 442 | continue; |
|
| 443 | } |
|
| 444 | ||
| 445 | if (!count($steps) && is_string($node)) { |
|
| 446 | $text = preg_replace('/^\s{0,' . ($token['indent'] + 2) . '}|\s*$/', '', $node); |
|
| 447 | $title .= "\n" . $text; |
|
| 448 | continue; |
|
| 449 | } |
|
| 450 | ||
| 451 | if ("\n" === $node) { |
|
| 452 | continue; |
|