Bump flake inputs
This means regenerating all the tree-sitter files, and adding newly generated outputs (mostly new bindings). The `--apply-all-captures` flag has been removed, it is now the default (and only) matching behaviour.
This commit is contained in:
parent
b04cd92189
commit
1af33aeea1
26 changed files with 718 additions and 59 deletions
13
bindings/go/binding.go
Normal file
13
bindings/go/binding.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package tree_sitter_bp
|
||||
|
||||
// #cgo CFLAGS: -std=c11 -fPIC
|
||||
// #include "../../src/parser.c"
|
||||
// // NOTE: if your language has an external scanner, add it here.
|
||||
import "C"
|
||||
|
||||
import "unsafe"
|
||||
|
||||
// Get the tree-sitter Language for this grammar.
|
||||
func Language() unsafe.Pointer {
|
||||
return unsafe.Pointer(C.tree_sitter_bp())
|
||||
}
|
||||
15
bindings/go/binding_test.go
Normal file
15
bindings/go/binding_test.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package tree_sitter_bp_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
tree_sitter "github.com/smacker/go-tree-sitter"
|
||||
"git.belanyi.fr/ambroisie/tree-sitter-bp"
|
||||
)
|
||||
|
||||
func TestCanLoadGrammar(t *testing.T) {
|
||||
language := tree_sitter.NewLanguage(tree_sitter_bp.Language())
|
||||
if language == nil {
|
||||
t.Errorf("Error loading Bp grammar")
|
||||
}
|
||||
}
|
||||
5
bindings/go/go.mod
Normal file
5
bindings/go/go.mod
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
module git.belanyi.fr/ambroisie/tree-sitter-bp
|
||||
|
||||
go 1.22
|
||||
|
||||
require github.com/smacker/go-tree-sitter v0.0.0-20230720070738-0d0a9f78d8f8
|
||||
Loading…
Add table
Add a link
Reference in a new issue