Skip to content

Commit

Permalink
fix: replace smacker/go-tree-sitter with updated aspect-forks/go-tree…
Browse files Browse the repository at this point in the history
…-sitter (#4008)

Primarily for smacker/go-tree-sitter#128, but
also updates the js + ts grammars.

### Type of change

- Bug fix (change which fixes an issue)

### Test plan

- New test cases added

GitOrigin-RevId: 869c0ae23c9c8862020002ddfd6c46c5e01b1785
  • Loading branch information
jbedard authored and gregmagolan committed Dec 21, 2023
1 parent b4409a6 commit a7a4a25
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gazelle/kotlin/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ import /* fdsa */ d/* asdf */.* // w
pkg: "x",
imports: []string{"a", "c", "d"},
},
// Value classes: https://github.com/fwcd/tree-sitter-kotlin/commit/80834a15154448cfa795bfa6b8be3559af1753fc
{
desc: "value-classes",
kt: `
@JvmInline
value class Password(private val s: String)
`,
filename: "simple.kt",
pkg: "",
imports: []string{},
},
}

func TestTreesitterParser(t *testing.T) {
Expand Down

0 comments on commit a7a4a25

Please sign in to comment.