diff --git a/changes/api/+modern-rules.feature.md b/changes/api/+modern-rules.feature.md index d27af48b..fb1c00a8 100644 --- a/changes/api/+modern-rules.feature.md +++ b/changes/api/+modern-rules.feature.md @@ -7,8 +7,9 @@ Rules: Added support for special layouts indexes: `layout[2]` .. `layout[4]`. - *any*: matches layout at any position. This is an index range. -Also added the special index `%i` which correspond to the index of the matched -layout. +Also added: +- the special index `%i` which correspond to the index of the matched layout. +- the `:all` qualifier: it applies the qualified item to all layouts. See the [documentation](https://xkbcommon.org/doc/current/rule-file-format.html) for further information. diff --git a/doc/rules-format.md b/doc/rules-format.md index a9e3b1d1..40435de8 100644 --- a/doc/rules-format.md +++ b/doc/rules-format.md @@ -150,7 +150,8 @@ Kccgst ::= "keycodes" | "symbols" | "types" | "compat" | "geometry" Rule ::= { MlvoValue } "=" { KccgstValue } "\n" MlvoValue ::= "*" | GroupName | -KccgstValue ::= +KccgstValue ::= [ { Qualifier } ] +Qualifier ::= ":" ({ NumericIndex } | "all") ```