Skip to content

Commit 3fa47ca

Browse files
feat: update bindings
1 parent 5712a1b commit 3fa47ca

30 files changed

+1320
-505
lines changed

.editorconfig

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{json,toml,yml,gyp}]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.js]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.rs]
18+
indent_style = space
19+
indent_size = 4
20+
21+
[*.{c,cc,h}]
22+
indent_style = space
23+
indent_size = 4
24+
25+
[*.{py,pyi}]
26+
indent_style = space
27+
indent_size = 4
28+
29+
[*.swift]
30+
indent_style = space
31+
indent_size = 4
32+
33+
[*.go]
34+
indent_style = tab
35+
indent_size = 8
36+
37+
[Makefile]
38+
indent_style = tab
39+
indent_size = 8

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text eol=lf
2+
3+
src/*.json linguist-generated
4+
src/parser.c linguist-generated
5+
src/tree_sitter/* linguist-generated
6+
7+
bindings/** linguist-generated
8+
binding.gyp linguist-generated
9+
setup.py linguist-generated
10+
Makefile linguist-generated
11+
Package.swift linguist-generated

.gitignore

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,38 @@
1-
*.log
2-
*.tgz
3-
.DS_Store
1+
# Rust artifacts
42
Cargo.lock
5-
build
6-
node_modules
7-
package-lock.json
8-
yarn.lock
9-
target
10-
11-
examples/**/*
12-
!examples/*.*
3+
target/
4+
5+
# Node artifacts
6+
build/
7+
node_modules/
8+
*.tgz
9+
10+
# Swift artifacts
11+
.build/
12+
13+
# Go artifacts
14+
go.sum
15+
_obj/
16+
17+
# Python artifacts
18+
.venv/
19+
dist/
20+
*.egg-info
21+
*.whl
22+
23+
# C artifacts
24+
*.a
25+
*.so
26+
*.so.*
27+
*.dylib
28+
*.dll
29+
*.pc
30+
31+
# Example dirs
32+
/examples/*/
33+
34+
# Grammar volatiles
35+
dsl.d.ts
36+
*.wasm
37+
*.obj
38+
*.o

Cargo.toml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
[package]
22
name = "tree-sitter-lua"
3-
description = "Lua grammar for the tree-sitter parsing library"
3+
description = "Lua grammar for tree-sitter"
44
version = "0.0.19"
5-
authors = [
6-
"Munif Tanjim <[email protected]>",
7-
]
85
license = "MIT"
9-
keywords = ["incremental", "parsing", "lua"]
6+
readme = "README.md"
7+
keywords = ["incremental", "parsing", "tree-sitter", "lua"]
108
categories = ["parsing", "text-editors"]
119
repository = "https://github.com/tree-sitter-grammars/tree-sitter-lua"
12-
edition = "2018"
10+
authors = ["Munif Tanjim <[email protected]>"]
11+
edition = "2021"
12+
autoexamples = false
1313

1414
build = "bindings/rust/build.rs"
15-
include = [
16-
"bindings/rust/*",
17-
"grammar.js",
18-
"queries/*",
19-
"src/*",
20-
]
15+
include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
2116

2217
[lib]
2318
path = "bindings/rust/lib.rs"
2419

2520
[dependencies]
26-
tree-sitter = "0.20"
21+
tree-sitter = ">=0.21.0"
2722

2823
[build-dependencies]
29-
cc = "1.0"
24+
cc = "^1.0.89"

Makefile

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

Package.swift

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

binding.gyp

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

bindings/c/tree-sitter-lua.h

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

bindings/c/tree-sitter-lua.pc.in

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

bindings/go/binding.go

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

0 commit comments

Comments
 (0)