peggyjs/peggy-tag

Grammar-source offsets

Closed this issue · 1 comments

It would be nice if peggy.GrammarError.format supported line and column offsets so that errors could be formatted with the CallSite of the place where the template originated. This will work in node, and possibly in v8-based browsers with the trick from stack-trace.

Fixed in #8