]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
parse_hwdb: allow negative value for EVDEV_ABS_ properties
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Nov 2022 04:10:20 +0000 (13:10 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Nov 2022 04:10:20 +0000 (13:10 +0900)
hwdb.d/parse_hwdb.py

index c0dde75650b7df1acea32d28b0dbc809b733fbe5..5a1ae5a6a049d35f87beb9f1f968f55fbb149689 100755 (executable)
@@ -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