File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ import (
13
13
"github.com/smacker/go-tree-sitter/bash"
14
14
"github.com/smacker/go-tree-sitter/html"
15
15
"github.com/smacker/go-tree-sitter/dockerfile"
16
+ "github.com/smacker/go-tree-sitter/golang"
17
+ "github.com/smacker/go-tree-sitter/java"
18
+ "github.com/smacker/go-tree-sitter/javascript"
16
19
markdown "github.com/smacker/go-tree-sitter/markdown/tree-sitter-markdown"
20
+ typescript "github.com/smacker/go-tree-sitter/typescript/typescript"
21
+ tsx "github.com/smacker/go-tree-sitter/typescript/tsx"
17
22
)
18
23
19
24
func main () {
@@ -52,6 +57,16 @@ func main() {
52
57
lang = dockerfile .GetLanguage ()
53
58
case "markdown" :
54
59
lang = markdown .GetLanguage ()
60
+ case "golang" :
61
+ lang = golang .GetLanguage ()
62
+ case "java" :
63
+ lang = java .GetLanguage ()
64
+ case "javascript" :
65
+ lang = javascript .GetLanguage ()
66
+ case "typescript" :
67
+ lang = typescript .GetLanguage ()
68
+ case "tsx" :
69
+ lang = tsx .GetLanguage ()
55
70
default :
56
71
fmt .Printf ("Unsupported language: %s\n " , language )
57
72
return
Original file line number Diff line number Diff line change 43
43
# If you're not using vendored dependencies, compute the hash of your go.mod and go.sum
44
44
# You can get this hash by first setting it to lib.fakeSha256,
45
45
# then running the build and replacing it with the correct hash
46
- vendorHash = "sha256-ZAlkGegeFLqvHlGD1oA08NS216r6WsWFkajzxI+jLX4 =" ;
46
+ vendorHash = "sha256-/X9cuzpVzVOqcON3c2GtUwCXi6gfFzjjQ8r+D0Yhgu8 =" ;
47
47
48
48
# Specify the package to build if it's not in the root of your project
49
49
subPackages = [ "cmd/ts" ] ;
Original file line number Diff line number Diff line change 1
1
module tree-sitter-query
2
2
3
- go 1.20
3
+ go 1.22
4
4
5
5
require github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ docker buildx build \
18
18
--tag vonwig/tree-sitter:latest \
19
19
--file Dockerfile \
20
20
--push .
21
+ docker pull vonwig/tree-sitter:latest
21
22
```
22
23
23
24
``` sh
You can’t perform that action at this time.
0 commit comments