aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/libparse.cc
diff options
context:
space:
mode:
authorNiels Moseley <n.a.moseley@moseleyinstruments.com>2019-03-25 12:15:10 +0100
committerNiels Moseley <n.a.moseley@moseleyinstruments.com>2019-03-25 12:15:10 +0100
commit9d9cc8a3140cdbc2d976a5b06b5a057845da739a (patch)
tree31b54f9b385f38b465a00f13a57d03849cfd91af /passes/techmap/libparse.cc
parent3b3b77291a21ed23a2763c79335501beebb10746 (diff)
downloadyosys-9d9cc8a3140cdbc2d976a5b06b5a057845da739a.tar.gz
yosys-9d9cc8a3140cdbc2d976a5b06b5a057845da739a.tar.bz2
yosys-9d9cc8a3140cdbc2d976a5b06b5a057845da739a.zip
EOL is now accepted as ';' replacement on lines that look like: feature_xyz(option)
Diffstat (limited to 'passes/techmap/libparse.cc')
-rw-r--r--passes/techmap/libparse.cc7
1 files changed, 3 insertions, 4 deletions
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')