From f0b75cda5a3eac3fe953fd1a429a39e077387997 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 1 Nov 2022 13:10:20 +0900 Subject: [PATCH] parse_hwdb: allow negative value for EVDEV_ABS_ properties --- hwdb.d/parse_hwdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3