Skip to content

Commit 2e9a18c

Browse files
authored
Merge pull request #329 from DerekStride/update-bindings
Update bindings
2 parents 64d6707 + c127a43 commit 2e9a18c

File tree

13 files changed

+135
-38
lines changed

13 files changed

+135
-38
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ binding.gyp linguist-generated
99
setup.py linguist-generated
1010
Makefile linguist-generated
1111
Package.swift linguist-generated
12+
13+
# Zig bindings
14+
build.zig linguist-generated
15+
build.zig.zon linguist-generated

.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## Custom
2+
13
tmp/
24
Cargo.lock
35
node_modules
@@ -12,3 +14,53 @@ package-lock.json
1214
/src/tree_sitter/
1315
/src/parser.c
1416
/src/*.json
17+
18+
## Generated Entries
19+
20+
# Rust artifacts
21+
target/
22+
23+
# Node artifacts
24+
build/
25+
prebuilds/
26+
node_modules/
27+
28+
# Swift artifacts
29+
.build/
30+
31+
# Go artifacts
32+
_obj/
33+
34+
# Python artifacts
35+
.venv/
36+
dist/
37+
*.egg-info
38+
*.whl
39+
40+
# C artifacts
41+
*.a
42+
*.so
43+
*.so.*
44+
*.dylib
45+
*.dll
46+
*.pc
47+
*.exp
48+
*.lib
49+
50+
# Zig artifacts
51+
.zig-cache/
52+
zig-cache/
53+
zig-out/
54+
55+
# Example dirs
56+
/examples/*/
57+
58+
# Grammar volatiles
59+
*.wasm
60+
*.obj
61+
*.o
62+
63+
# Archives
64+
*.tar.gz
65+
*.tgz
66+
*.zip

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
44

5+
## [0.3.10](https://github.com/derekstride/tree-sitter-sql/compare/v0.3.9...v0.3.10) (2025-09-24)
6+
7+
### Features
8+
9+
* Update bindings with `tree-sitter init --update` ([2a38585](https://github.com/derekstride/tree-sitter-sql/commit/2a38585469ec6663265b4a8fd35cb9414ca4fd56)
10+
11+
512
## [0.3.9](https://github.com/derekstride/tree-sitter-sql/compare/v0.3.8...v0.3.9) (2025-09-23)
613

714

CMakeLists.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.13)
22

33
project(tree-sitter-sql
4-
VERSION "0.3.9"
4+
VERSION "0.3.10"
55
DESCRIPTION "Tree-sitter Grammar for SQL"
66
HOMEPAGE_URL "git+https://github.com/derekstride/tree-sitter-sql.git"
77
LANGUAGES C)
@@ -28,7 +28,11 @@ add_library(tree-sitter-sql src/parser.c)
2828
if(EXISTS src/scanner.c)
2929
target_sources(tree-sitter-sql PRIVATE src/scanner.c)
3030
endif()
31-
target_include_directories(tree-sitter-sql PRIVATE src)
31+
target_include_directories(tree-sitter-sql
32+
PRIVATE src
33+
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/bindings/c>
34+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
35+
3236

3337
target_compile_definitions(tree-sitter-sql PRIVATE
3438
$<$<BOOL:${TREE_SITTER_REUSE_ALLOCATOR}>:TREE_SITTER_REUSE_ALLOCATOR>
@@ -46,14 +50,15 @@ configure_file(bindings/c/tree-sitter-sql.pc.in
4650

4751
include(GNUInstallDirs)
4852

49-
install(FILES bindings/c/tree-sitter-sql.h
50-
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/tree_sitter")
53+
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bindings/c/tree_sitter"
54+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
55+
FILES_MATCHING PATTERN "*.h")
5156
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-sql.pc"
5257
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig")
5358
install(TARGETS tree-sitter-sql
5459
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
5560

56-
add_custom_target(test "${TREE_SITTER_CLI}" test
61+
add_custom_target(ts-test "${TREE_SITTER_CLI}" test
5762
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
5863
COMMENT "tree-sitter test")
5964

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tree-sitter-sequel"
33
description = "Tree-sitter Grammar for SQL"
4-
version = "0.3.9"
4+
version = "0.3.10"
55
authors = ["derek stride"]
66
license = "MIT"
77
readme = "README.md"

Package.swift

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

bindings/node/index.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/python/tree_sitter_sql/binding.c

Lines changed: 11 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@derekstride/tree-sitter-sql",
3-
"version": "0.3.9",
3+
"version": "0.3.10",
44
"description": "Tree-sitter Grammar for SQL",
55
"main": "bindings/node",
66
"types": "bindings/node",

0 commit comments

Comments
 (0)