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 1 commit
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: 1 addition & 2 deletions tree_sitter_v/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
grammar.js symlink=file

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

src/tree_sitter/* linguist-generated
src/grammar.json linguist-generated
Expand Down
7 changes: 7 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
Lycs-D marked this conversation as resolved.
Show resolved Hide resolved

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

Cargo.toml

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
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import x.json2
import os
import v_tree_sitter.tree_sitter

#flag -I @VMODROOT/bindings/v
#flag -I @VMODROOT/bindings/c
Lycs-D marked this conversation as resolved.
Show resolved Hide resolved
#flag -I @VMODROOT/src
#flag @VMODROOT/src/parser.c

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

fn C.tree_sitter_v() &tree_sitter.TSLanguage

Expand Down
Lycs-D marked this conversation as resolved.
Show resolved Hide resolved
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
11 changes: 11 additions & 0 deletions tree_sitter_v/bindings/c/tree-sitter-v.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@PREFIX@
libdir=@LIBDIR@
includedir=@INCLUDEDIR@

Name: tree-sitter-v
Description: V grammar for tree-sitter
URL: @URL@
Version: @VERSION@
Requires: @REQUIRES@
Libs: -L${libdir} @ADDITIONAL_LIBS@ -ltree-sitter-v
Cflags: -I${includedir}
24 changes: 22 additions & 2 deletions tree_sitter_v/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "tree-sitter-v",
"version": "0.0.4-beta.1",
"main": "bindings/node",
"types": "bindings/node",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -12,14 +13,26 @@
"generate": "tree-sitter generate && 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