minor fix

This commit is contained in:
Aleksandr Petrukhin
2017-01-11 23:49:11 +03:00
parent 0e676032de
commit 172c47e5a1
+3 -3
View File
@@ -412,7 +412,7 @@ func (r *Lexer) errSyntax() {
r.errParse("syntax error")
}
func (r *Lexer) errSemantic(expected string) {
func (r *Lexer) errMultiple(expected string) {
r.pos = r.start
r.consume()
r.SkipRecursive()
@@ -441,7 +441,7 @@ func (r *Lexer) errSemantic(expected string) {
func (r *Lexer) errInvalidToken(expected string) {
if r.UseMultipleErrors {
r.errSemantic(expected)
r.errMultiple(expected)
return
}
if r.fatalError == nil {
@@ -915,7 +915,7 @@ func (r *Lexer) Int16Str() int16 {
func (r *Lexer) Int32Str() int32 {
s := r.UnsafeString()
if !r.Ok() || len(r.multipleErrors) != 0 {
if !r.Ok() {
return 0
}