Skip to content

Commit

Permalink
keep bindings.h, add --no-bindings flag to tree-sitter generate
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Mar 20, 2024
1 parent 161210a commit 3e74044
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 17 deletions.
3 changes: 0 additions & 3 deletions tree_sitter_v/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
grammar.js symlink=file
bindings/v/tree-sitter-v.h symlink=file

bindings/c/* linguist-generated

src/tree_sitter/* linguist-generated
src/grammar.json linguist-generated
Expand Down
2 changes: 1 addition & 1 deletion tree_sitter_v/bindings.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import v_tree_sitter.tree_sitter
#flag -I @VMODROOT/src
#flag @VMODROOT/src/parser.c

#include "tree-sitter-v.h"
#include "bindings.h"

fn C.tree_sitter_v() &tree_sitter.TSLanguage

Expand Down
11 changes: 0 additions & 11 deletions tree_sitter_v/bindings/c/tree-sitter-v.pc.in

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion tree_sitter_v/bindings/v/tree-sitter-v.h

This file was deleted.

2 changes: 1 addition & 1 deletion tree_sitter_v/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"scripts": {
"test": "tree-sitter test",
"generate": "tree-sitter generate && v run generate_types.vsh",
"generate": "tree-sitter generate --no-bindings && v run generate_types.vsh",
"parse": "tree-sitter parse",
"parseg": "tree-sitter parse --debug-graph",
"install": "node-gyp-build",
Expand Down

0 comments on commit 3e74044

Please sign in to comment.