mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
parse_hwdb: allow negative value for EVDEV_ABS_ properties
This commit is contained in:
parent
40851a231d
commit
f0b75cda5a
@ -202,7 +202,7 @@ def property_grammar():
|
||||
]
|
||||
abs_props = [Regex(r'EVDEV_ABS_[0-9a-f]{2}')('NAME')
|
||||
- Suppress('=') -
|
||||
Word(nums + ':')('VALUE')
|
||||
Word('-' + nums + ':')('VALUE')
|
||||
]
|
||||
|
||||
grammar = Or(fixed_props + kbd_props + abs_props) + EOL
|
||||
|
Loading…
x
Reference in New Issue
Block a user