summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xyarn4
1 files changed, 3 insertions, 1 deletions
diff --git a/yarn b/yarn
index d9b2b47..6817294 100755
--- a/yarn
+++ b/yarn
@@ -67,11 +67,13 @@ class YarnRunner(cliapp.Application):
def parse_scenarios(self, filenames):
mdparser = yarnlib.MarkdownParser()
+ all_blocks = []
for filename in filenames:
mdparser.parse_file(filename)
+ all_blocks.extend(mdparser.blocks)
block_parser = yarnlib.BlockParser()
- block_parser.parse_blocks(mdparser.blocks)
+ block_parser.parse_blocks(all_blocks)
return block_parser.scenarios, block_parser.implementations