diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-01 05:10:20 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-01 05:10:20 +0100 |
commit | f0b75cda5a3eac3fe953fd1a429a39e077387997 (patch) | |
tree | 80fd7f7faf2f50433bd7ea56beffcf9000fe50ad /hwdb.d/parse_hwdb.py | |
parent | Merge pull request #25207 from bluca/typo (diff) | |
download | systemd-f0b75cda5a3eac3fe953fd1a429a39e077387997.tar.xz systemd-f0b75cda5a3eac3fe953fd1a429a39e077387997.zip |
parse_hwdb: allow negative value for EVDEV_ABS_ properties
Diffstat (limited to 'hwdb.d/parse_hwdb.py')
-rwxr-xr-x | hwdb.d/parse_hwdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index c0dde75650..5a1ae5a6a0 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 |