keyval: Fix grammar comment to cover downstream prefix
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>
This commit is contained in:
parent
90254ec46d
commit
bbe0342b2a
@ -16,7 +16,9 @@
|
|||||||
* key-vals = [ key-val { ',' key-val } [ ',' ] ]
|
* key-vals = [ key-val { ',' key-val } [ ',' ] ]
|
||||||
* key-val = key '=' val | help
|
* key-val = key '=' val | help
|
||||||
* key = key-fragment { '.' key-fragment }
|
* 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 = { / [^,]+ / | ',,' }
|
* val = { / [^,]+ / | ',,' }
|
||||||
* help = 'help' | '?'
|
* help = 'help' | '?'
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user