hyprwm / hyprlang

The official implementation library for the hypr config language.
https://wiki.hyprland.org/Hypr-Ecosystem/hyprlang/
GNU Lesser General Public License v3.0
137 stars 16 forks source link

Support for values containing ":" characters #29

Closed Safenein closed 8 months ago

Safenein commented 8 months ago

With the hyprlang migration of Hyprland, I am now unable to configure some devices due to ":" character present in its name.

For example:

device {
  name = elan9008:00-04f3:2f29-stylus
}

This snippet generate error "special category's first value must be the key. Key for is " in Hyprland due to misinterpretation of name value.

It would be nice to be able to quote value so that it is interpreted as a string. It would look like this for example:

device {
  name = "elan9008:00-04f3:2f29-stylus"
}
vaxerski commented 8 months ago

This was a bug. No quotes necessary, it's now fixed.