summaryrefslogtreecommitdiff
path: root/hwdb.d
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-11-01 13:10:20 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-11-01 13:10:20 +0900
commitf0b75cda5a3eac3fe953fd1a429a39e077387997 (patch)
tree80fd7f7faf2f50433bd7ea56beffcf9000fe50ad /hwdb.d
parent40851a231d95685417ab5760d3fd4d4803ef20df (diff)
downloadsystemd-f0b75cda5a3eac3fe953fd1a429a39e077387997.tar.gz
parse_hwdb: allow negative value for EVDEV_ABS_ properties
Diffstat (limited to 'hwdb.d')
-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