Skip to content

Commit

Permalink
remove queries from rust binding
Browse files Browse the repository at this point in the history
This basically backs out 768cd53. I don't think these queries are used in
practice, and symlinks can cause random problems on Windows.

#12
  • Loading branch information
yuja committed Jun 15, 2024
1 parent dcc7c36 commit b90d6cf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
/build/
/examples/qtdeclarative
/node_modules/
/queries/highlights-javascript.scm
/queries/highlights-typescript.scm
/target/

# Workaround for https://github.com/tree-sitter/tree-sitter/issues/730
Expand Down
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ help:

.PHONY: generate
generate:
$(MAKE) queries/highlights-javascript.scm queries/highlights-typescript.scm
$(MAKE) src/typescript-scanner.h
$(TREE_SITTER) generate

# create symlinks out of sub packages so cargo can pick them up
queries/highlights-javascript.scm: node_modules/tree-sitter-javascript/queries/highlights.scm
ln -sf ../$< $@
queries/highlights-typescript.scm: node_modules/tree-sitter-typescript/queries/highlights.scm
ln -sf ../$< $@

src/typescript-scanner.h: \
node_modules/tree-sitter-typescript/common/scanner.h \
node_modules/tree-sitter-typescript/LICENSE \
Expand All @@ -41,8 +34,6 @@ src/typescript-scanner.h: \
clean:
$(RM) -R build target
$(RM) \
queries/highlights-javascript.scm \
queries/highlights-typescript.scm \
src/grammar.json \
src/node-types.json \
src/parser.c \
Expand Down
8 changes: 2 additions & 6 deletions bindings/rust/lib.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b90d6cf

Please sign in to comment.