Skip to content

Commit b920a03

Browse files
Update to go 1.22
1 parent b9cb31e commit b920a03

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

functions/tree-sitter/cmd/ts/main.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ import (
1313
"github.com/smacker/go-tree-sitter/bash"
1414
"github.com/smacker/go-tree-sitter/html"
1515
"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"
1619
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"
1722
)
1823

1924
func main() {
@@ -52,6 +57,16 @@ func main() {
5257
lang = dockerfile.GetLanguage()
5358
case "markdown":
5459
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()
5570
default:
5671
fmt.Printf("Unsupported language: %s\n", language)
5772
return

functions/tree-sitter/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# If you're not using vendored dependencies, compute the hash of your go.mod and go.sum
4444
# You can get this hash by first setting it to lib.fakeSha256,
4545
# then running the build and replacing it with the correct hash
46-
vendorHash = "sha256-ZAlkGegeFLqvHlGD1oA08NS216r6WsWFkajzxI+jLX4=";
46+
vendorHash = "sha256-/X9cuzpVzVOqcON3c2GtUwCXi6gfFzjjQ8r+D0Yhgu8=";
4747

4848
# Specify the package to build if it's not in the root of your project
4949
subPackages = [ "cmd/ts" ];

functions/tree-sitter/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module tree-sitter-query
22

3-
go 1.20
3+
go 1.22
44

55
require github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82

functions/tree-sitter/runbook.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docker buildx build \
1818
--tag vonwig/tree-sitter:latest \
1919
--file Dockerfile \
2020
--push .
21+
docker pull vonwig/tree-sitter:latest
2122
```
2223

2324
```sh

0 commit comments

Comments
 (0)