Gowin. Ignore empty lines.

Including those containing nothing but spaces and tabs.

Fixes https://github.com/YosysHQ/apicula/issues/432

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
YRabbit 2026-01-20 14:28:47 +10:00
parent 58e3b85866
commit 627e7ea547
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,11 @@ struct GowinCstReader
while (!in.eof()) {
std::getline(in, line);
boost::trim_right(line);
if (line.empty()) {
continue;
}
cst_type = ioloc;
if (!std::regex_match(line, match, iobre)) {
if (std::regex_match(line, match, portre)) {