[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/9] keyval: Fix grammar comment to cover downstream prefix
From: |
Markus Armbruster |
Subject: |
[PULL 2/9] keyval: Fix grammar comment to cover downstream prefix |
Date: |
Mon, 28 Feb 2022 12:26:06 +0100 |
According to the grammar, a key __com.redhat_foo would be parsed as
two key fragments __com and redhat_foo. It's actually parsed as a
single fragment. Fix the grammar.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220218145551.892787-2-armbru@redhat.com>
---
util/keyval.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/util/keyval.c b/util/keyval.c
index 904337c8a1..0cf2e84dc8 100644
--- a/util/keyval.c
+++ b/util/keyval.c
@@ -16,7 +16,9 @@
* key-vals = [ key-val { ',' key-val } [ ',' ] ]
* key-val = key '=' val | help
* key = key-fragment { '.' key-fragment }
- * key-fragment = / [^=,.]+ /
+ * key-fragment = qapi-name | index
+ * qapi-name = '__' / [a-z0-9.-]+ / '_' / [A-Za-z][A-Za-z0-9_-]* /
+ * index = / [0-9]+ /
* val = { / [^,]+ / | ',,' }
* help = 'help' | '?'
*
--
2.35.1
- [PULL 0/9] QAPI patches patches for 2022-02-28, Markus Armbruster, 2022/02/28
- [PULL 7/9] hw/rtc: Compile pl031 once-only, Markus Armbruster, 2022/02/28
- [PULL 6/9] qapi: Document some missing details of RTC_CHANGE event, Markus Armbruster, 2022/02/28
- [PULL 3/9] qapi: Fix stale reference to scripts/qapi.py in a comment, Markus Armbruster, 2022/02/28
- [PULL 4/9] qapi/migration: Fix examples document wrong field name for arguments, Markus Armbruster, 2022/02/28
- [PULL 5/9] qapi: Move RTC_CHANGE back out of target schema, Markus Armbruster, 2022/02/28
- [PULL 8/9] rtc: Have event RTC_CHANGE identify the RTC by QOM path, Markus Armbruster, 2022/02/28
- [PULL 2/9] keyval: Fix grammar comment to cover downstream prefix,
Markus Armbruster <=
- [PULL 9/9] qapi: Belatedly adjust limitations documentation, Markus Armbruster, 2022/02/28
- [PULL 1/9] scripts/qapi: minor delinting, Markus Armbruster, 2022/02/28