particle/map: non-greedy matching of quotes

Flex regexps are greedy.

This means '"foo" || "bar"' will return 'foo" || "bar', which is
obviously wrong.

Use "start conditions" to implement non-greedy matching.

Closes #302
This commit is contained in:
Daniel Eklöf 2023-07-24 17:13:19 +02:00
parent 9f5f35a8ac
commit 78f7b60e13
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 58 additions and 1 deletions

View file

@ -19,8 +19,11 @@
### Fixed
* Compiler error _fmt may be used uninitialized_ ([#311][311]).
* map: conditions failing to match when they contain multiple, quoted
tag values ([#302][302]).
[311]: https://codeberg.org/dnkl/yambar/issues/311
[302]: https://codeberg.org/dnkl/yambar/issues/302
### Security