Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tree_sitter] Update tree-sitter-cli version to 0.22.2 #41

Merged
merged 5 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions tree_sitter_v/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
grammar.js symlink=file

bindings/node/* linguist-generated
bindings/rust/* linguist-generated

src/tree_sitter/* linguist-generated
src/grammar.json linguist-generated
src/node-types.json linguist-generated
Expand Down
8 changes: 8 additions & 0 deletions tree_sitter_v/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules/
*.log
build/
package-lock.json
Package.swift

# Ignore binary output folders
bin/
Expand All @@ -19,6 +20,13 @@ yarn.lock

Cargo.toml

bindings/c/
bindings/go/
bindings/node/
bindings/python/
bindings/rust/
bindings/swift/
binding.gyp

pyproject.toml
setup.py
4 changes: 2 additions & 2 deletions tree_sitter_v/bindings/v/bindings.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef TREE_SITTER_V_H_
#define TREE_SITTER_V_H_

#include <tree_sitter/parser.h>
typedef struct TSLanguage TSLanguage;

#ifdef __cplusplus
extern "C" {
#endif

extern TSLanguage *tree_sitter_v();
const TSLanguage *tree_sitter_v(void);

#ifdef __cplusplus
}
Expand Down
26 changes: 23 additions & 3 deletions tree_sitter_v/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,37 @@
"name": "tree-sitter-v",
"version": "0.0.4-beta.1",
"main": "bindings/node",
"types": "bindings/node",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/vlang/v-analyzer.git"
},
"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",
"prebuildify": "prebuildify --napi --strip",
"format": "prettier --write \"**/*.cjs\""
},
"dependencies": {
"nan": "^2.19.0"
"node-addon-api": "^8.0.0",
"node-gyp-build": "^4.8.0"
},
"peerDependencies": {
"tree-sitter": "^0.21.0"
},
"peerDependenciesMeta": {
"tree_sitter": {
"optional": true
}
},
"devDependencies": {
"prettier": "^3.2.5",
"tree-sitter-cli": "^0.22.1"
"tree-sitter-cli": "^0.22.2",
"prebuildify": "^6.0.0"
},
"tree-sitter": [
{
Expand All @@ -30,5 +43,12 @@
"v.mod"
]
}
],
"files": [
"grammar.js",
"prebuilds/**",
"bindings/node/*",
"queries/*",
"src/**"
]
}
11 changes: 7 additions & 4 deletions tree_sitter_v/src/parser.c

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

54 changes: 54 additions & 0 deletions tree_sitter_v/src/tree_sitter/alloc.h

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

Loading