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