diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-28 03:08:43 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-28 05:18:28 +0100 |
commit | e912326e05cf753ddb703be0666336ee3386d6e0 (patch) | |
tree | 74673a1e46341cfb414f0cf68dd9027120a0c5e3 /hwdb.d/parse_hwdb.py | |
parent | Merge pull request #22277 from yuwata/test-network-activation-policy (diff) | |
download | systemd-e912326e05cf753ddb703be0666336ee3386d6e0.tar.xz systemd-e912326e05cf753ddb703be0666336ee3386d6e0.zip |
test: frequency in mouse DPI is optional
Prompted by #22278.
Diffstat (limited to '')
-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 0268bf9580..aef0331ace 100755 --- a/hwdb.d/parse_hwdb.py +++ b/hwdb.d/parse_hwdb.py @@ -121,7 +121,7 @@ def hwdb_grammar(): def property_grammar(): ParserElement.setDefaultWhitespaceChars(' ') - dpi_setting = Group(Optional('*')('DEFAULT') + INTEGER('DPI') + Suppress('@') + INTEGER('HZ'))('SETTINGS*') + dpi_setting = Group(Optional('*')('DEFAULT') + INTEGER('DPI') + Optional(Suppress('@') + INTEGER('HZ')))('SETTINGS*') mount_matrix_row = SIGNED_REAL + ',' + SIGNED_REAL + ',' + SIGNED_REAL mount_matrix = Group(mount_matrix_row + ';' + mount_matrix_row + ';' + mount_matrix_row)('MOUNT_MATRIX') xkb_setting = Optional(Word(alphanums + '+-/@._')) |