mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 05:40:04 +01:00
quirks: reword the requirements section in the quirks README
Change the wording from "these will fail" to "this must be followed" which is
easier to understand. And add the requirement for uppercase hex numbers as
enforced since c412924003.
Related #568
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
081f914692
commit
ff7c52d78d
1 changed files with 11 additions and 8 deletions
|
|
@ -66,15 +66,18 @@ All `Attr` tag values are specific to that attribute.
|
|||
Parser errors
|
||||
-------------
|
||||
|
||||
The following will cause parser errors and are considered invalid data
|
||||
files:
|
||||
The following requirements must be met:
|
||||
|
||||
* Whitespace at the beginning of the line
|
||||
* Sections without a `Match*` entry
|
||||
* Sections with the same `Match*` entry repeated
|
||||
* Sections without at least one of `Model*` or `Attr` entries
|
||||
* A `Model` tag with a value other than `1` or `0`
|
||||
* A string property with enclosing quotes
|
||||
* No whitespace is allowed at the beginning of the line
|
||||
* A Section must have at least one `Match*` entry
|
||||
* A Section must not repeat `Match*` entry
|
||||
* A Section must have at least one of `Model*` or `Attr*` entries
|
||||
* A `Model` tag may only have the value `1` or `0`
|
||||
* String properties must not be enclosed in quotes
|
||||
* Hex numbers must use uppercase letters (e.g. `0x12AB`)
|
||||
|
||||
Failure to meet these requirements will cause a parser error and the quirks
|
||||
files will not be used.
|
||||
|
||||
Debugging
|
||||
---------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue