Update lexer.go

This commit is contained in:
Jake Verbaten
2017-05-05 14:32:07 -07:00
committed by GitHub
parent 1e00e5495e
commit c7e8f2b687
+1 -1
View File
@@ -582,7 +582,7 @@ func (r *Lexer) Consumed() {
for _, c := range r.Data[r.pos:] {
if c != ' ' && c != '\t' && c != '\r' && c != '\n' {
r.addError(&LexerError{
r.AddError(&LexerError{
Reason: "invalid character '" + string(c) + "' after top-level value",
Offset: r.pos,
Data: string(r.Data[r.pos:]),