From: Yu Watanabe Date: Tue, 1 Nov 2022 04:10:20 +0000 (+0900) Subject: parse_hwdb: allow negative value for EVDEV_ABS_ properties X-Git-Tag: v253-rc1~625^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0b75cda5a3eac3fe953fd1a429a39e077387997;p=thirdparty%2Fsystemd.git parse_hwdb: allow negative value for EVDEV_ABS_ properties --- diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index c0dde75650b..5a1ae5a6a04 100755 --- a/hwdb.d/parse_hwdb.py +++ b/hwdb.d/parse_hwdb.py @@ -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