mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-26 04:07:02 +00:00
sdc: Fix EOF handling during string parse
Fixes #1490 Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
@@ -186,8 +186,12 @@ struct SDCParser
|
||||
s += c;
|
||||
|
||||
while (true) {
|
||||
if (eof())
|
||||
log_error("EOF while parsing string '%s'\n", s.c_str());
|
||||
if (eof()) {
|
||||
if (in_quotes || in_braces || escaped)
|
||||
log_error("EOF while parsing string '%s'\n", s.c_str());
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
char c = peek();
|
||||
if (!in_quotes && !in_braces && !escaped && (std::isblank(c) || c == ']')) {
|
||||
|
||||
Reference in New Issue
Block a user