Skip to content

Commit

Permalink
fix: parser endPos position
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Oct 12, 2021
1 parent 5433c3a commit ace5e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/notify-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function createNotifiers(parser, listeners) {
code: errorCode,
message: message,
pos: pos,
endPos: parser.pos,
endPos: Math.min(parser.pos + 1, parser.maxPos)
},
parser
);
Expand Down

0 comments on commit ace5e36

Please sign in to comment.