diff options
author | Markus Armbruster | 2019-09-14 17:34:55 +0200 |
---|---|---|
committer | Markus Armbruster | 2019-09-24 14:07:23 +0200 |
commit | 14c32795024c815316337b019bdf88d76b429af8 (patch) | |
tree | 95f3589c5ec7e15622843f3cdf588176743a3ba3 /scripts/qapi/commands.py | |
parent | qapi: Use quotes more consistently in frontend error messages (diff) | |
download | qemu-14c32795024c815316337b019bdf88d76b429af8.tar.gz qemu-14c32795024c815316337b019bdf88d76b429af8.tar.xz qemu-14c32795024c815316337b019bdf88d76b429af8.zip |
qapi: Improve reporting of lexical errors
Show text up to next structural character, whitespace, or quote
character instead of just the first character.
Forgotten quotes now get reported like "Stray 'command'" instead of
"Stray 'c'".
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190914153506.2151-9-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions