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);
|
tok = lexer(str);
|
||||||
|
|
||||||
if (tok == ';')
|
// allow both ';' and new lines to
|
||||||
|
// terminate a statement.
|
||||||
|
if ((tok == ';') || (tok == 'n'))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (tok == 'n')
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (tok == ':' && ast->value.empty()) {
|
if (tok == ':' && ast->value.empty()) {
|
||||||
tok = lexer(ast->value);
|
tok = lexer(ast->value);
|
||||||
if (tok != 'v')
|
if (tok != 'v')
|
||||||
|
|
Loading…
Reference in New Issue