ObserverOfTime
f9a4e8ecdc
fix(init): use current path if unspecified
2024-10-19 19:28:51 +00:00
ObserverOfTime
8681960fbc
chore(bindings): correct editorconfig indent size
2024-10-19 18:31:46 +00:00
ObserverOfTime
c23670264f
chore(bindings): drop pkg-config Requires field
2024-10-19 18:31:46 +00:00
ObserverOfTime
4089569934
chore(bindings): improve gitattributes file
...
- Separate bindings into language sections
- Mark all metadata & lockfiles as generated
2024-10-19 18:31:46 +00:00
ObserverOfTime
5df4706b19
chore(bindings): clean up package.json
...
- Use PARSER_URL in repository
- Remove tree-sitter section
2024-10-19 18:31:46 +00:00
ObserverOfTime
66dab20462
feat(bindings): auto-detect scanners
2024-10-19 18:31:09 +00:00
ObserverOfTime
60c5057617
ci: build lib with wasmtime
2024-10-19 02:57:08 +00:00
ObserverOfTime
881c54e462
fix(lib): handle compiler warnings
2024-10-19 02:57:08 +00:00
ObserverOfTime
70c0cba15b
build: treat incompatible pointer warning as error
2024-10-19 02:57:08 +00:00
Amaan Qureshi
40606dd632
feat: add version subcommand for versioning grammars
2024-10-18 22:08:57 -04:00
Mrmaxmeier
c03977a87e
fix: return LanguageRef in Parser::language
...
`ts_parser_language` doesn't do any refcounting, so we can't return the
resulting pointer as an owned Language object
2024-10-17 15:44:08 -04:00
Owen Shepherd
e87181ec9c
fix(cli): remove unnecessary referencing/dereferencing in build_parse_table
...
These were probably optimized away, and in any case are only run once,
per CLI run, but may as well remove them.
2024-10-17 15:25:44 -04:00
ObserverOfTime
ac37e60559
refactor(web): use fs/promises
2024-10-15 16:10:23 +00:00
dependabot[bot]
0cd4aa2075
Merge pull request #3789 from tree-sitter/dependabot/cargo/cargo-283306c349
2024-10-15 06:34:57 +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
38e3e51fca
feat(rust): add Language::node_kind_is_supertype
2024-10-14 17:53:22 -04:00
dependabot[bot]
26b29531d9
build(deps): bump cc from 1.1.28 to 1.1.30 in the cargo group
...
Bumps the cargo group with 1 update: [cc](https://github.com/rust-lang/cc-rs ).
Updates `cc` from 1.1.28 to 1.1.30
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.28...cc-v1.1.30 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 21:38:09 +00:00
dundargoc
fb23de9261
ci: add nvim-treesitter parser tests
...
This allows contributors to know whether their changes affect the
ecosystem and inadvertantly make a breaking change.
2024-10-14 16:28:22 +02:00
Amaan Qureshi
68c1fb66bd
fix(lib): add parameter names in declarations in subtree.h
2024-10-13 23:05:40 -04:00
ObserverOfTime
b7421bf89f
revert: "Memory errors in wasm_store"
...
This reverts commit 178c5d93f4 .
2024-10-13 16:40:15 +03:00
Ryan Patterson
178c5d93f4
Memory errors in wasm_store
...
```
In file included from tree_sitter/core/lib/src/lib.c:14:
tree_sitter/core/lib/src/./wasm_store.c:868:94: warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'uint64_t *' (aka 'unsigned long long *') [-Wincompatible-pointer-types]
error = wasmtime_table_grow(context, &function_table, lexer_definitions_len, &initializer, &table_index);
^~~~~~~~~~~~
/Users/rpatterson/Projects/amel/py-tree-sitter/.direnv/python-3.11/include/wasmtime/table.h:105:31: note: passing argument to parameter 'prev_size' here
uint64_t *prev_size);
^
In file included from tree_sitter/core/lib/src/lib.c:14:
tree_sitter/core/lib/src/./wasm_store.c:969:102: warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'uint64_t *' (aka 'unsigned long long *') [-Wincompatible-pointer-types]
error = wasmtime_table_grow(context, &self->function_table, dylink_info->table_size, &initializer, &prev_table_size);
^~~~~~~~~~~~~~~~
/Users/rpatterson/Projects/amel/py-tree-sitter/.direnv/python-3.11/include/wasmtime/table.h:105:31: note: passing argument to parameter 'prev_size' here
uint64_t *prev_size);
^
2 warnings generated.
```
2024-10-13 13:10:56 +03:00
Will Lillis
4705a3153a
feat: Add CST pretty-printer for parser output
...
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2024-10-12 18:37:12 -04:00
Amaan Qureshi
72f114fa12
perf(loader): improve language lookup speed
2024-10-12 03:08:57 -04:00
Amaan Qureshi
fe92e978f9
fix(lib): properly reset the lexer's start postiion
2024-10-11 19:02:41 -04:00
ObserverOfTime
4b1ae40faf
build(deps): bump wasmtime to v25.0.2
2024-10-11 18:49:14 -04:00
ObserverOfTime
1405b5555b
feat(xtask): add upgrade-wasmtime command
2024-10-11 18:49:14 -04:00
ObserverOfTime
e8e56255bd
ci: major overhaul
...
- Simplify some workflow steps and auxiliary scripts
- Build library using cmake when not cross-compiling
- Try to fetch fixtures from cache first
- Use `actions-rust-lang/setup-rust-toolchain`
2024-10-11 18:33:07 -04:00
ObserverOfTime
7715001692
build: tune compiler warnings
2024-10-11 18:33:07 -04:00
Amaan Qureshi
20c2783310
fix(lib): fix compilation issue on windows with endian.h
2024-10-11 15:25:51 -04:00
Christian Clason
b7a00527be
build(deps): bump wasmtime to v25.0.2
2024-10-09 19:33:38 +02:00
dependabot[bot]
6f06839d15
Merge pull request #3765 from tree-sitter/dependabot/cargo/cargo-a8e37abc8d
2024-10-09 08:17:16 +00:00
Amaan Qureshi
538a197976
fix(lib): correct unexpected side effect in get_column when the lexer is at EOF
2024-10-08 23:27:42 -04:00
dependabot[bot]
6d36e81823
build(deps): bump the cargo group across 1 directory with 2 updates
...
Bumps the cargo group with 2 updates in the / directory: [clap](https://github.com/clap-rs/clap ) and [clap_complete](https://github.com/clap-rs/clap ).
Updates `clap` from 4.5.19 to 4.5.20
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.19...clap_complete-v4.5.20 )
Updates `clap_complete` from 4.5.32 to 4.5.33
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.32...clap_complete-v4.5.33 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 01:11:19 +00:00
ObserverOfTime
9d2196cdbd
build(zig): add optional wasmtime dependency
...
And support compiling a shared library
2024-10-08 21:09:53 -04:00
Amaan Qureshi
cad2d03101
chore: remove unnecessary fuzz and profile helpers
2024-10-08 21:07:41 -04:00
Amaan Qureshi
9c08edb066
build: configure clippy lints at the workspace level
2024-10-08 21:07:41 -04:00
Amaan Qureshi
dbe8bbf480
feat: move scripts to xtasks
2024-10-08 21:07:41 -04:00
Will Lillis
5c6445edea
chore: misc clippy lints
2024-10-06 17:55:00 -04:00
Antonin Delpeuch
50bea73ce3
docs(rust): updated README to reflect language initialization updates
2024-10-06 13:30:05 -04:00
dundargoc
94f7a47abd
build: fix incorrect variable checks
...
Cmake variables should not use `${}` when checking for existence.
2024-10-06 15:56:05 +02:00
Amaan Qureshi
cc2caecf7a
build: tweak Cargo.tomls
2024-10-06 01:48:43 -04:00
JCWasmx86
099fd4efb7
feat: allow setting the output directory for generated source files
2024-10-05 21:52:07 -04:00
Amaan Qureshi
5e8401fb1d
docs: update changelog
2024-10-05 21:50:28 -04:00
Amaan Qureshi
8943983df6
feat!: properly handle UTF-16 endianness encoding
2024-10-05 21:12:48 -04:00
Amaan Qureshi
cf8ed78a9a
feat: bump version to 0.25
2024-10-05 20:23:40 -04:00
Amaan Qureshi
34fa7a0c64
feat(lib): wrap subtrees with changes in green circles
2024-10-05 20:08:34 -04:00
Amaan Qureshi
6be6a40bdf
fix(cli): do not stop printing dot graphs until edits are re-parsed
2024-10-05 20:08:34 -04:00
ObserverOfTime
21a34f9124
fix(templates): properly replace author email
2024-10-05 17:23:09 -04:00
ObserverOfTime
95f24e0364
chore(templates): update npm packages
2024-10-05 17:23:09 -04:00
Carlo Cabrera
079c69313f
build(make): fix tree-sitter.pc generation ( #3745 )
2024-10-05 18:27:21 +03:00