xkbcommon / libxkbcommon

keymap handling library for toolkits and window systems
https://xkbcommon.org
Other
286 stars 125 forks source link

Types parser allows type definitions with garbage #457

Closed dottedmag closed 8 months ago

dottedmag commented 9 months ago

The following types definition is accepted by .xkb parser and emitted back without the garbage tokens:

default xkb_types "garbage" {
    type "ONE_LEVEL" {
    garbage.modifiers = None;
    garbage.map[None] = Level1;
    garbage.level_name[Level1] = "Any";
    };
}