From: Niels Moseley Date: Mon, 25 Mar 2019 11:15:10 +0000 (+0100) Subject: EOL is now accepted as ';' replacement on lines that look like: feature_xyz(option) X-Git-Tag: yosys-0.9~222^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d9cc8a3140cdbc2d976a5b06b5a057845da739a;p=yosys.git EOL is now accepted as ';' replacement on lines that look like: feature_xyz(option) --- diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index 878ca3160..9dc3e96ab 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -202,12 +202,11 @@ LibertyAst *LibertyParser::parse() { tok = lexer(str); - if (tok == ';') + // allow both ';' and new lines to + // terminate a statement. + if ((tok == ';') || (tok == 'n')) break; - if (tok == 'n') - continue; - if (tok == ':' && ast->value.empty()) { tok = lexer(ast->value); if (tok != 'v')