mirror of https://github.com/YosysHQ/yosys.git
Fixed handling of quotes in liberty parser
This commit is contained in:
parent
aed4d763cf
commit
8b1e0bdd9e
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue