Skip to content

Commit

Permalink
fix: update grammar with other branch
Browse files Browse the repository at this point in the history
don't combine text nodes over multiple lines

qvalentin/tree-sitter-go-template@ff3ae46
  • Loading branch information
qvalentin committed May 3, 2024
1 parent e480219 commit c679d9f
Show file tree
Hide file tree
Showing 2 changed files with 5,500 additions and 4,978 deletions.
11 changes: 5 additions & 6 deletions internal/lsp/ast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
)

func TestFindRelevantChildNodeCompletio(t *testing.T) {

template := `{{ .Values. }}
{{ .Values.re }}
Expand All @@ -26,12 +25,12 @@ func TestFindRelevantChildNodeCompletio(t *testing.T) {
Column: 11,
})

assert.Equal(t, node.StartPoint(), sitter.Point{
assert.Equal(t, sitter.Point{
Row: 0,
Column: 11,
})
assert.Equal(t, node.EndPoint(), sitter.Point{
Column: 10,
}, node.StartPoint())
assert.Equal(t, sitter.Point{
Row: 0,
Column: 11,
})
}, node.EndPoint())
}
Loading

0 comments on commit c679d9f

Please sign in to comment.