From 307175c40838e5ad2eb8681d7fd8782dbb94b16a Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Mon, 17 Apr 2023 00:06:24 +0200 Subject: [PATCH] fix: typo using endcol as startcol --- internal/position/position.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/position/position.go b/internal/position/position.go index 9086d33..c356adc 100644 --- a/internal/position/position.go +++ b/internal/position/position.go @@ -143,7 +143,7 @@ func (b *Builder) NewTokensPosition( pos.EndLine = endToken.Position.EndLine pos.StartPos = startToken.Position.StartPos pos.EndPos = endToken.Position.EndPos - pos.StartCol = endToken.Position.StartCol + pos.StartCol = startToken.Position.StartCol pos.EndCol = endToken.Position.EndCol return pos