fix disappearing syntax error

This commit is contained in:
Vitor Santos Costa 2014-05-05 16:27:54 +01:00
parent 451a37d708
commit e981973d56

View File

@ -1113,7 +1113,8 @@ static const opt_spec read_clause_options[] =
static int
read_clause(IOSTREAM *s, term_t term, term_t options ARG_LD)
{ read_data rd;
{
read_data rd;
int rval;
fid_t fid;
term_t tpos = 0;
@ -1196,6 +1197,7 @@ retry:
rval = PL_unify(opt_comments, comments);
else if ( !PL_get_nil(comments) )
callCommentHook(comments, tpos, term);
}
} else
{ if ( rd.has_exception && reportReadError(&rd) )
{ PL_rewind_foreign_frame(fid);
@ -1203,7 +1205,6 @@ retry:
goto retry;
}
}
}
free_read_data(&rd);
return rval;