diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-03-18 16:03:19 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-03-18 16:03:19 +0100 |
commit | 8b1e0bdd9e029d1ddbc38ec8f26dc23608636e58 (patch) | |
tree | 2797828e25ace880b2ec98c3a63634128dd7c3ee /passes | |
parent | aed4d763cf40c6341f5a53eb856a940ace4b15e7 (diff) | |
download | yosys-8b1e0bdd9e029d1ddbc38ec8f26dc23608636e58.tar.gz yosys-8b1e0bdd9e029d1ddbc38ec8f26dc23608636e58.tar.bz2 yosys-8b1e0bdd9e029d1ddbc38ec8f26dc23608636e58.zip |
Fixed handling of quotes in liberty parser
Diffstat (limited to 'passes')
-rw-r--r-- | passes/techmap/libparse.cc | 4 |
1 files 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'; |