EOL is now accepted as ';' replacement on lines that look like: feature_xyz(option)

This commit is contained in:
Niels Moseley 2019-03-25 12:15:10 +01:00
parent 3b3b77291a
commit 9d9cc8a314
1 changed files with 3 additions and 4 deletions

View File

@ -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')