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 == '"') {
|
if (c == '"') {
|
||||||
str = c;
|
str = "";
|
||||||
while (1) {
|
while (1) {
|
||||||
c = f.get();
|
c = f.get();
|
||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
line++;
|
line++;
|
||||||
str += c;
|
|
||||||
if (c == '"')
|
if (c == '"')
|
||||||
break;
|
break;
|
||||||
|
str += c;
|
||||||
}
|
}
|
||||||
// fprintf(stderr, "LEX: string >>%s<<\n", str.c_str());
|
// fprintf(stderr, "LEX: string >>%s<<\n", str.c_str());
|
||||||
return 'v';
|
return 'v';
|
||||||
|
|
Loading…
Reference in New Issue