diff --git a/syntax/ast/parser.go b/syntax/ast/parser.go index 429b409..4056016 100644 --- a/syntax/ast/parser.go +++ b/syntax/ast/parser.go @@ -83,7 +83,6 @@ func parserMain(tree *Node, lex Lexer) (parseFn, *Node, error) { return nil, tree, fmt.Errorf("unexpected token: %s", token) } } - return nil, tree, fmt.Errorf("unknown error") } func parserRange(tree *Node, lex Lexer) (parseFn, *Node, error) {