diff options
Diffstat (limited to 'scripts/qapi/parser.py')
-rw-r--r-- | scripts/qapi/parser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py index 3aefec1c2b..f8da315332 100644 --- a/scripts/qapi/parser.py +++ b/scripts/qapi/parser.py @@ -492,6 +492,9 @@ class QAPIDoc: # indeterminate indentation if self.text != '': # non-blank, non-first line determines indentation + if indent == 0: + raise QAPIParseError( + self._parser, "line needs to be indented") self._indent = indent elif indent < self._indent: raise QAPIParseError( |