diff options
author | Richard Ipsum <richardipsum@vx21.xyz> | 2019-11-23 23:34:56 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-11-24 15:28:14 +0200 |
commit | 335478a004afc442820862c188f7378595a6b8bb (patch) | |
tree | 14851a22a16db1943d6eb6e6e80d3d55d71db84c | |
parent | 5b67bf44d22792e59c38111749dce04703434466 (diff) | |
download | cmdtest-335478a004afc442820862c188f7378595a6b8bb.tar.gz |
Make `...` before step a syntax error
-rw-r--r-- | yarnlib/block_parser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yarnlib/block_parser.py b/yarnlib/block_parser.py index df95fb2..f24022d 100644 --- a/yarnlib/block_parser.py +++ b/yarnlib/block_parser.py @@ -117,6 +117,9 @@ class BlockParser(object): def parse_continuation(self, line, blocks): scenario = self.scenarios[-1] + if not scenario.steps: + raise BlockError( + 'Syntax error: ... before what it would continue') step = scenario.steps[-1] text = '%s %s' % (step.text, line) del scenario.steps[-1] |