mirror of https://github.com/YosysHQ/yosys.git
EOL is now accepted as ';' replacement on lines that look like: feature_xyz(option)
This commit is contained in:
parent
3b3b77291a
commit
9d9cc8a314
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue