1
0
mirror of synced 2026-05-20 20:52:52 +00:00
Files
YosysHQ.yosys/kernel/io.cc
Krystine Sherwin d6f3ac60f1 io.cc: Support single quoted arguments
Single quoted strings have no escape character and are treated verbatim.
This is useful for minimizing the number of backslashes in (for example) `logger -expect` regexps (e.g. `"\\\""` -> `'\"'`).
`Yosys::quote()` will use single quotes by default, unless the string contains a single quote and then it will use `std::quoted()`.

Fix strange behaviour arrising from always using `std::quoted(result)`.  Because of the way the function interacts with streams, if there is only one quotation mark then the result would end at the first whitespace.
2025-09-24 17:24:40 +12:00

15 KiB