From: Clifford Wolf Date: Wed, 18 Mar 2015 15:03:19 +0000 (+0100) Subject: Fixed handling of quotes in liberty parser X-Git-Tag: yosys-0.6~373^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b1e0bdd9e029d1ddbc38ec8f26dc23608636e58;p=yosys.git Fixed handling of quotes in liberty parser --- diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index f84ce4802..def480394 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -105,14 +105,14 @@ int LibertyParser::lexer(std::string &str) } if (c == '"') { - str = c; + str = ""; while (1) { c = f.get(); if (c == '\n') line++; - str += c; if (c == '"') break; + str += c; } // fprintf(stderr, "LEX: string >>%s<<\n", str.c_str()); return 'v';