From 8b1e0bdd9e029d1ddbc38ec8f26dc23608636e58 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 18 Mar 2015 16:03:19 +0100 Subject: [PATCH] Fixed handling of quotes in liberty parser --- passes/techmap/libparse.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; -- 2.30.2