summaryrefslogtreecommitdiffstats
path: root/hwdb.d/parse_hwdb.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-11-01 05:10:20 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-11-01 05:10:20 +0100
commitf0b75cda5a3eac3fe953fd1a429a39e077387997 (patch)
tree80fd7f7faf2f50433bd7ea56beffcf9000fe50ad /hwdb.d/parse_hwdb.py
parentMerge pull request #25207 from bluca/typo (diff)
downloadsystemd-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-xhwdb.d/parse_hwdb.py2
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