@@ 247-251 (lines=5) @@ | ||
244 | while ('EOS' !== $this->predictTokenType()) { |
|
245 | $node = $this->parseExpression(); |
|
246 | ||
247 | if (is_string($node)) { |
|
248 | $text = preg_replace('/^\s{0,' . ($token['indent'] + 2) . '}|\s*$/', '', $node); |
|
249 | $description .= (null !== $description ? "\n" : '') . $text; |
|
250 | continue; |
|
251 | } |
|
252 | ||
253 | if (!$background && $node instanceof BackgroundNode) { |
|
254 | $background = $node; |
|
@@ 329-333 (lines=5) @@ | ||
326 | continue; |
|
327 | } |
|
328 | ||
329 | if (!count($steps) && is_string($node)) { |
|
330 | $text = preg_replace('/^\s{0,' . ($token['indent'] + 2) . '}|\s*$/', '', $node); |
|
331 | $title .= "\n" . $text; |
|
332 | continue; |
|
333 | } |
|
334 | ||
335 | if ("\n" === $node) { |
|
336 | continue; |
|
@@ 388-392 (lines=5) @@ | ||
385 | continue; |
|
386 | } |
|
387 | ||
388 | if (!count($steps) && is_string($node)) { |
|
389 | $text = preg_replace('/^\s{0,' . ($token['indent'] + 2) . '}|\s*$/', '', $node); |
|
390 | $title .= "\n" . $text; |
|
391 | continue; |
|
392 | } |
|
393 | ||
394 | if ("\n" === $node) { |
|
395 | continue; |
|
@@ 459-463 (lines=5) @@ | ||
456 | continue; |
|
457 | } |
|
458 | ||
459 | if (!count($steps) && is_string($node)) { |
|
460 | $text = preg_replace('/^\s{0,' . ($token['indent'] + 2) . '}|\s*$/', '', $node); |
|
461 | $title .= "\n" . $text; |
|
462 | continue; |
|
463 | } |
|
464 | ||
465 | if ("\n" === $node) { |
|
466 | continue; |