From 49e1597ea4da316899cbc1aaa317f8088d297bb4 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Tue, 12 Nov 2024 01:21:07 +0100 Subject: [PATCH] filterlib: preserve value quotes --- passes/techmap/libparse.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index ebfb325fc..95f5a8fcb 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -115,12 +115,19 @@ int LibertyParser::lexer(std::string &str) // maybe it's a string? if (c == '"') { str = ""; +#ifdef FILTERLIB + str += c; +#endif while (1) { c = f.get(); if (c == '\n') line++; - if (c == '"') + if (c == '"') { +#ifdef FILTERLIB + str += c; +#endif break; + } str += c; } // fprintf(stderr, "LEX: string >>%s<<\n", str.c_str());