Added comment for errMultiple

This commit is contained in:
Aleksandr Petrukhin
2017-01-12 16:30:30 +03:00
parent 172c47e5a1
commit cba450a81e
+4
View File
@@ -412,6 +412,10 @@ func (r *Lexer) errSyntax() {
r.errParse("syntax error")
}
// errMultiple adds multiple error if UseMultipleErrors is enabled.
//
// Function changes lexer's token if we expected '[' or '{' for slices/maps in order not to
// call IsDelim() or Delim() functions.
func (r *Lexer) errMultiple(expected string) {
r.pos = r.start
r.consume()