]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: Rewrite parsing of doc comment section symbols and tags
authorMarkus Armbruster <armbru@redhat.com>
Fri, 28 Apr 2023 10:54:24 +0000 (12:54 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 10 May 2023 07:34:17 +0000 (09:34 +0200)
commit3e32dca3f0d1eddcfecf963d94b9ff60e3e08448
tree72bf6171e2a5c8096876420c789f55700ad45aed
parent9b2c6746d30a44d222e9124faee59eb05703b6ae
qapi: Rewrite parsing of doc comment section symbols and tags

To recognize a line starting with a section symbol and or tag, we
first split it at the first space, then examine the part left of the
space.  We can just as well examine the unsplit line, so do that.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230428105429.1687850-13-armbru@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
[Work around lack of walrus operator in Python 3.7 and older]
scripts/qapi/parser.py