parser: Change err0

Address comment
This commit is contained in:
shenli
2015-09-07 17:36:32 +08:00
parent 8bd63a4d12
commit e84fca5979

View File

@ -117,13 +117,13 @@ func (l *lexer) next() int {
return l.c
}
func (l *lexer) err0(ln, c int, s string, args ...interface{}) {
func (l *lexer) err0(ln, c int, args ...interface{}) {
err := errors.Errorf(fmt.Sprintf("line %d column %d near \"%s\"", ln, c, l.val), args...)
l.errs = append(l.errs, err)
}
func (l *lexer) err(s string, args ...interface{}) {
l.err0(l.line, l.col, s, args...)
l.err0(l.line, l.col, args...)
}
func (l *lexer) Error(s string) {