mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qapi: Reject section markup in definition documentation
Section markup in definition documentation makes no sense and can produce invalid Texinfo. Reject. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200320091805.5585-2-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
62f9256052
commit
d98884b75d
5 changed files with 9 additions and 26 deletions
|
@ -282,6 +282,11 @@ class QAPISchemaParser:
|
|||
doc.end_comment()
|
||||
self.accept()
|
||||
return doc
|
||||
if self.val.startswith('# ='):
|
||||
if doc.symbol:
|
||||
raise QAPIParseError(
|
||||
self,
|
||||
"unexpected '=' markup in definition documentation")
|
||||
doc.append(self.val)
|
||||
self.accept(False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue