diff options
Diffstat (limited to 'driver/parser/template.go')
-rw-r--r-- | driver/parser/template.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/parser/template.go b/driver/parser/template.go index 96eb71f..e9620dc 100644 --- a/driver/parser/template.go +++ b/driver/parser/template.go @@ -433,6 +433,10 @@ func (t *vToken) Invalid() bool { return t.tok.Invalid } +func (t *vToken) BytePosition() (int, int) { + return t.tok.BytePos, t.tok.ByteLen +} + func (t *vToken) Position() (int, int) { return t.tok.Row, t.tok.Col } |