Commit graph

6075 commits

Author SHA1 Message Date
Max Brunsfeld
c03c773a24
Merge pull request #3086 from tree-sitter/randomized-test-crash-stack-merge
Fix invalid parse stack recursive merging with mismatched error cost
2024-02-26 17:38:02 -08:00
Max Brunsfeld
9b485924d6 Fix invalid parse stack recursive merging with mismatched error cost
Allowing this invalid merge caused an invariant to be violated
later on during parsing, when handling a later error.

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
Co-authored-by: Marshall <marshall@zed.dev>
2024-02-26 20:16:21 -05:00
Amaan Qureshi
eb35502f06 test: don't use TS_REUSE_ALLOCATOR on Darwin systems
For some reason, the linker seems to behave a bit differently with `-exported_symbols_list` on macOS vs other operating systems, so we'll disable this for now
2024-02-26 20:15:36 -05:00
Max Brunsfeld
527848d7c0
Merge pull request #3084 from tree-sitter/no-vendored-wasmtime-headers
Remove vendored wasmtime headers
2024-02-26 15:36:10 -08:00
Max Brunsfeld
dfc6d93bae Rename wasm C sources to avoid conflicts with standard wasm headers
Co-authored-by: Marshall <marshall@zed.dev>
2024-02-26 13:08:30 -08:00
Amaan Qureshi
8ae3870b51 fix(generate): add .npmignore, populate Swift's exclude list 2024-02-26 14:30:48 -05:00
Amaan Qureshi
a31f084b1b fix: ignore unused variables in the array macros 2024-02-26 14:05:16 -05:00
Max Brunsfeld
b40a42ac0f Remove vendored wasmtime headers
When building rust binding, use wasmtime headers provided via cargo
by the wasmtime-c-api crate.

Co-authored-by: Marshall <marshall@zed.dev>
2024-02-26 10:48:58 -08:00
ObserverOfTime
721eca2394 fix(bindings): editorconfig and setup.py fixes 2024-02-26 12:00:16 -05:00
dependabot[bot]
50264cd40a build(deps): bump the cargo group with 1 update
Bumps the cargo group with 1 update: [ctor](https://github.com/mmastrac/rust-ctor).


Updates `ctor` from 0.2.6 to 0.2.7
- [Commits](https://github.com/mmastrac/rust-ctor/commits)

---
updated-dependencies:
- dependency-name: ctor
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 09:43:32 -05:00
Amaan Qureshi
f1eecf9786 feat: expose the allocator and array header files for external scanners 2024-02-26 09:43:13 -05:00
dundargoc
52d69790f3 ci: adjust dependabot settings
- always bump cargo dependencies
- create single PR for all dependencies
- run it daily
2024-02-26 09:26:32 -05:00
dundargoc
92690f2d3b build(lint): make lockfile check quiet 2024-02-26 11:00:03 +01:00
Amaan Qureshi
9e5bf6591f feat: improve language bindings
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2024-02-25 19:06:01 -05:00
Max Brunsfeld
d0d349c02b
Merge pull request #3076 from tree-sitter/workspace-deps
Use workspace dependencies for internal crates like Tree-sitter
2024-02-25 13:58:51 -08:00
Max Brunsfeld
29d3583bdf Use workspace dependencies for internal crates 2024-02-25 11:14:29 -08:00
Amaan Qureshi
4e2880407c feat: add xtasks to assist with bumping crates 2024-02-25 13:40:03 -05:00
Amaan Qureshi
e01d833d82 build: update cc to remove annoying debug output 2024-02-25 10:36:42 -05:00
Seonghyeon Cho
80006d2f28
docs: add css for inline code 2024-02-24 18:36:23 -05:00
Amaan Qureshi
068e29c265 build: unify crate versions via workspace 2024-02-24 18:30:04 -05:00
dundargoc
f707ab5b53 build(lint): detect if Cargo.lock needs to be updated 2024-02-24 13:54:57 +01:00
Amaan Qureshi
32c23b6c90 fix: wrap || comparison in parenthesis when && is used 2024-02-24 01:35:40 -05:00
Max Brunsfeld
9301c1e676
Merge pull request #3068 from tree-sitter/load-old-language-via-wasm-crash
Fix crash when attempting to load ancient languages via wasm
2024-02-23 12:24:01 -08:00
Max Brunsfeld
8dded3ab60 Fix crash when attempting to load ancient languages via wasm 2024-02-23 11:48:14 -08:00
Max Brunsfeld
1f751bbd5f
Merge pull request #2841 from segevfiner/patch-1
Make Node.js language bindings context aware
2024-02-23 11:23:11 -08:00
dundargoc
f0b315359a build: improve changelog settings
Quality of life improvements:

- automatically use `gh auth token` when running `make changelog`
- Add full links to related pull requests
- Include non-conventional commits
- Force group order by adding html comments
2024-02-23 11:29:18 +01:00
Amaan Qureshi
d59f950005
docs: add GitHub user and PR info to the changelog 2024-02-21 19:45:18 -05:00
Amaan Qureshi
80a0f9110d
docs: add CHANGELOG notes for 0.21.0 2024-02-21 19:27:16 -05:00
Amaan Qureshi
037c71c7bd fix: apply some scan-build suggestions (unused assignment/garbage access) 2024-02-21 15:38:13 -05:00
Amaan Qureshi
591a10de33
ci: remove hotfix 2024-02-21 15:37:31 -05:00
Amaan Qureshi
f6b46440c2
fix: bump config 2024-02-21 15:26:25 -05:00
Amaan Qureshi
4408c1570e
fix: publish in the right order now 2024-02-21 15:24:47 -05:00
Amaan Qureshi
a5b7c2a584
fix: publish 0.21.0 to registries 2024-02-21 15:11:37 -05:00
Max Brunsfeld
1c55abb530 0.21.0 2024-02-21 10:32:29 -08:00
Will Lillis
f894a5350c
feat(cli): add optional config-path argument 2024-02-21 12:02:12 -05:00
Amaan Qureshi
58a4fcc792 chore: get rid of github_issue_test file 2024-02-21 12:01:25 -05:00
Amaan Qureshi
bf8e3bbc89 chore: update Cargo.lock 2024-02-21 12:01:25 -05:00
Amaan Qureshi
38efefd8bd style: cleaner cast 2024-02-21 12:01:25 -05:00
Amaan Qureshi
62578b8c6e feat(loader): add more commonly used default parser directories 2024-02-21 12:01:25 -05:00
Amaan Qureshi
167855b289 fix(test): edge case when parsing UNEXPECTED/MISSING nodes with an indentation level greater than 0 2024-02-21 12:01:25 -05:00
Amaan Qureshi
a1a3903c10 fix(test): allow writing updates to tests without erroneous nodes instead of denying all of them if a single error is found 2024-02-21 12:01:25 -05:00
Amaan Qureshi
a996fb322f build(deps): bump wasmtime to v18.0.1 2024-02-21 03:39:55 -05:00
Max Brunsfeld
f8eead9703 Use published wasmtime crates 2024-02-20 23:06:22 -08:00
dundargoc
aa29571d98 ci(sanitize): reduce timeout to 20 minutes
60 minutes is too long, even without any caching. It should at most take
10 minutes, but we add another 10 to account for any variance.
2024-02-20 20:35:56 +01:00
dundargoc
d54aa11cc3 ci: relax caching requirements
Specifically, ignore changes in workflow files. While it is technically
more correct to include them (as they may affect the caching), it is
unlikely.
2024-02-20 14:37:29 +01:00
dundargoc
a994562121 ci: don't cancel jobs on master
It can be useful to see the full results of all master commits when
trying to bisect a regression.
2024-02-20 14:10:42 +01:00
Amaan Qureshi
b97208704b
fix(cli): don't use long for grammar_path
Co-authored-by: buckynbrocko <77247638+buckynbrocko@users.noreply.github.com>
2024-02-19 16:05:08 -05:00
Amaan Qureshi
b40839cd72 style: prefer turbofish syntax where possible 2024-02-19 16:00:50 -05:00
Amaan Qureshi
fd91404ab0 style: tidying 2024-02-19 16:00:50 -05:00
Amaan Qureshi
d95fcc83b9 fix: remove redundant imports 2024-02-19 06:36:48 -05:00