1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00

parse_hwdb: allow negative value for EVDEV_ABS_ properties

(cherry picked from commit f0b75cda5a)
This commit is contained in:
Yu Watanabe 2022-11-01 13:10:20 +09:00 committed by Luca Boccassi
parent e8a17df063
commit dda23814f0

View File

@ -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