summaryrefslogtreecommitdiff
path: root/passes/techmap/libparse.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-03-18 16:03:19 +0100
committerClifford Wolf <clifford@clifford.at>2015-03-18 16:03:19 +0100
commit8b1e0bdd9e029d1ddbc38ec8f26dc23608636e58 (patch)
tree2797828e25ace880b2ec98c3a63634128dd7c3ee /passes/techmap/libparse.cc
parentaed4d763cf40c6341f5a53eb856a940ace4b15e7 (diff)
Fixed handling of quotes in liberty parser
Diffstat (limited to 'passes/techmap/libparse.cc')
-rw-r--r--passes/techmap/libparse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc
index f84ce480..def48039 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';