From a7206b24cac96c08aecf2f3b4cc3c2e555eec708 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 28 Aug 2017 15:59:22 +0200 Subject: pkg/compiler: check and generate types Move most of the logic from sysgen to pkg/compiler. Update #217 --- pkg/ast/parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/ast/parser.go') diff --git a/pkg/ast/parser.go b/pkg/ast/parser.go index fd7b9ad4f..214be7fb9 100644 --- a/pkg/ast/parser.go +++ b/pkg/ast/parser.go @@ -96,10 +96,10 @@ func (p *parser) parseTopRecover() Node { case nil: case skipLine: // Try to recover by consuming everything until next NEWLINE. - for p.tok != tokNewLine { + for p.tok != tokNewLine && p.tok != tokEOF { p.next() } - p.consume(tokNewLine) + p.tryConsume(tokNewLine) default: panic(err) } -- cgit mrf-deployment