config: allow string values to be quoted

* Both double and single quotes are recognized. There’s no difference
  in how they are handled.
* The entire string must be quoted:
  - “a quoted string” - OK
  - quotes “in the middle” of a string - NOT ok
* Two escape characters are regonized:
  - Backslash
  - The quote character itself
This commit is contained in:
Daniel Eklöf 2022-12-01 15:00:44 +01:00
parent 1486c57bdb
commit 051e862420
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 43 additions and 1 deletions

View file

@ -49,6 +49,8 @@
* Support (optional) for utmp logging with libutempter.
* `kxIN` and `kxOUT` (focus in/out events) to terminfo.
* `name` capability to `XTGETTCAP`.
* String values in `foot.ini` may now be quoted. This can be used to
set a value to the empty string, for example.
[1136]: https://codeberg.org/dnkl/foot/issues/1136