Max Brunsfeld
0fdf569571
Reorganize rust crates into a flat crates directory, simplify some CI steps ( #4496 )
...
* Move all rust crates (except lib) into crates dir, w/o nesting
* Remove stale path from .gitattributes
* Rename lib.rs files for easier navigation
* Rename mod.rs file for easier navigation
* Fix emscripten-version path
* Fix fixtures dir paths
* Use the default rustfmt settings
* Don't use nightly on CI
2025-06-06 14:25:37 -07:00
Amaan Qureshi
eed662df98
fix(bindings): correct Zig bindings to expose a language function
...
Instead of having users declare the extern function themselves, they can
pass in the language to `Language.create` in the zig bindings. If they
really want, they can always opt into the `extern fn tree_sitter_LANG()
*const ts.Language` approach.
2025-02-02 02:07:36 -05:00
ObserverOfTime
51acdf9723
feat(bindings)!: update swift bindings
2025-01-31 10:16:01 -05:00
ObserverOfTime
5cfeba9c0d
feat(bindings): add opt-in zig bindings
2025-01-25 03:47:19 -05:00
Amaan Qureshi
46f8d1267c
feat(init): add a title field to grammars
2025-01-25 03:20:43 -05:00
Amaan Qureshi
4820d50336
fix(init): handle parser name replacements better when a kebab-case name is expected
2025-01-25 03:20:43 -05:00
Amaan Qureshi
bde94aed4d
feat(init): add a class-name field to grammars
2025-01-25 03:20:43 -05:00
Amaan Qureshi
6dbcfdf282
feat(init): add an optional funding field
2025-01-25 03:20:43 -05:00
Scorg
40eb26e580
build(bindings): move header to tree_sitter subdirectory
...
This patch allows users to include the parser by the same path from
local build as well as installed location. Previously it was not
possible to include the header prior to installing the built parser.
2025-01-20 13:17:24 -05:00
ObserverOfTime
a9dbb7257c
feat(bindings): support free-threaded python build
2025-01-19 12:45:08 -05:00
ObserverOfTime
7bf51ae08a
feat(bindings): drop python 3.9 support
2025-01-19 12:45:08 -05:00
Amaan Qureshi
24f51518d1
feat(cli)!: remove migration code for tree-sitter.json
2025-01-12 22:11:30 -05:00
WillLillis
867433afd7
feat(rust): use thiserror for generate crate
...
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2025-01-05 00:27:12 -05:00
ObserverOfTime
473f0a1a4d
feat(bindings): update some binding files
...
- setup.py
- binding.gyp
2024-11-25 09:45:13 -05:00
Riley Bruins
78e5144f3f
feat: generate schema in tree-sitter.json
2024-11-16 00:38:58 -05:00
Amaan Qureshi
ac4595e808
feat(node): update bindings when necessary
2024-11-10 03:55:58 +01:00
ObserverOfTime
66a1bc50fa
fix(bindings): update CMakeLists.txt file
2024-11-02 13:17:11 -04:00
Sam Estep
f3f7230ee3
fix(cli): pass all fields to tree-sitter.json in init
2024-10-30 17:09:21 -04:00
ObserverOfTime
d3a127a48f
chore(bindings): more small changes
...
- Rename cmakelists.txt to cmakelists.cmake
- Bump node-addon-api version in package.json
- Remove License classifier from pyproject.toml
- Move require call to top level in Node.js test
2024-10-20 16:55:27 +00:00
ObserverOfTime
f9a4e8ecdc
fix(init): use current path if unspecified
2024-10-19 19:28:51 +00:00
Amaan Qureshi
3b55003fd5
fix(init): use camel name from config in missing spots
2024-10-14 19:07:55 -04:00
Amaan Qureshi
72f114fa12
perf(loader): improve language lookup speed
2024-10-12 03:08:57 -04:00
Will Lillis
5c6445edea
chore: misc clippy lints
2024-10-06 17:55:00 -04:00
ObserverOfTime
21a34f9124
fix(templates): properly replace author email
2024-10-05 17:23:09 -04:00
ObserverOfTime
1d76ec3a1c
feat: drop legacy binding updates
2024-10-04 11:01:51 -04:00
Amaan Qureshi
19c33b1ef7
fix(build): correct wasm root path lookup
2024-10-03 16:23:55 -04:00
ObserverOfTime
608506cb57
fix(init): fix some schema issues
...
- Validate CamelCase name, TextMate scope
- Skip serialization of unused properties
- Disallow additional properties in schema
2024-10-01 11:37:57 -04:00
ObserverOfTime
939e61c58d
build(bindings): add CMakeLists.txt file
2024-09-30 14:43:55 -04:00
Amaan Qureshi
2e3504a422
fix(cli): generate the parser version from the config as well
2024-09-30 13:23:43 -04:00
Amaan Qureshi
ea3846a2c5
feat: move tree-sitter configuration to dedicated file ( #3700 )
2024-09-30 11:11:23 -04:00
ObserverOfTime
12007d3ebe
feat(init): add an update flag
2024-09-28 14:19:07 -04:00
Amaan Qureshi
31f24395b4
feat: move generate logic to its own crate
2024-09-27 17:04:21 -04:00
Amaan Qureshi
b2359e4020
feat!: move generation of grammar files to an init command
...
The generate subcommand should stick to solely generating a parser and
headers.
2024-09-27 16:06:57 -04:00