hwdb: allow spaces in usb: matches and similar patterns

In the past we didn't have any matches like that, so the parser was stricter
than necessary, but now we have, so allow that.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-07-17 07:44:10 +02:00
parent ec8bebbcc2
commit 457763aa03
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def hwdb_grammar():
for category, conn in TYPES.items())
matchline_typed = Combine(prefix + Word(printables + ' ' + '®'))
matchline_general = Combine(Or(GENERAL_MATCHES) + ':' + Word(printables))
matchline_general = Combine(Or(GENERAL_MATCHES) + ':' + Word(printables + ' ' + '®'))
matchline = (matchline_typed | matchline_general) + EOL
propertyline = (White(' ', exact=1).suppress() +