Gowin. Ignore empty lines. (#1626)

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 17:11:48 +10:00 committed by GitHub
parent 58e3b85866
commit 15d94b40a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)) {