Commit graph

5348 commits

Author SHA1 Message Date
Amaan Qureshi
134233f33a feat(node): support single-file executables via bun build --compile 2024-11-10 03:47:32 +01:00
Amaan Qureshi
49ff53cc83 fix(lib): correctly fetch the node name in query errors 2024-11-10 03:44:54 +01:00
WillLillis
05b6871a02 feat(loader): support multi-barreled file extensions 2024-11-10 03:44:33 +01:00
Will Lillis
7b90dbf189
feat(loader): add error message when a tree-sitter.json file is invalid 2024-11-09 20:46:29 -05:00
Bastiaan Marinus van de Weerd
0dc1044d0d
feat(loader): add language_for_configuration 2024-11-09 15:09:50 -05:00
ObserverOfTime
23b03d9f4a build(deps): bump wasmtime-c-api to v26.0.1 2024-11-09 21:04:52 +01:00
ObserverOfTime
a59bc697e3 feat(xtask): let upgrade-wasmtime update Cargo.lock 2024-11-09 21:04:52 +01:00
ObserverOfTime
1d5502d7b2 chore(bindings): update go binding version 2024-11-09 21:03:38 +01:00
ObserverOfTime
2d5a4b6bd6 chore(bindings): include tree-sitter.json file 2024-11-09 21:03:38 +01:00
Liu Yuxi
20aaabfd9c
fix(xtask): remove the test_flags arg if it's empty for cargo test
`cargo xtask test test_something` currently constructs `cargo test ''
test_something`, which errors out for `cargo test`. This fix removes
the `test_flags` string if it's empty.
2024-11-09 15:03:14 -05:00
dependabot[bot]
0f15779863
Merge pull request #3885 from tree-sitter/dependabot/cargo/wasmtime-26.0.1 2024-11-05 22:39:31 +00:00
dependabot[bot]
656b946e78
build(deps): bump wasmtime from 26.0.0 to 26.0.1
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime) from 26.0.0 to 26.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/contributing-release-process.md)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v26.0.0...v26.0.1)

---
updated-dependencies:
- dependency-name: wasmtime
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-05 22:19:26 +00:00
Peter Oliver
25e36bda87
Link to Emacs’ Tree-sitter documentation (#3881)
Since Emacs 29, Tree-sitter is a built-in feature not requiring a third-party Emacs module.
2024-11-04 14:08:52 -08:00
ObserverOfTime
8588c96691 fix(bindings): fix scanner check in binding.gyp
Use `fs.existsSync` rather than `fs.exists`
2024-11-03 06:02:39 -05:00
ObserverOfTime
66a1bc50fa fix(bindings): update CMakeLists.txt file 2024-11-02 13:17:11 -04:00
Amaan Qureshi
998d2c9d8c fix(generate): do not set the unit reduction symbol if it's in the extras array 2024-11-02 04:20:40 -04:00
Amaan Qureshi
310a9f0704 fix: disallow tokens that match the empty string 2024-11-02 03:36:11 -04:00
WillLillis
8c802da174 fix(lib): check point, byte ranges in node_descendant_for
functions
2024-11-02 03:06:07 -04:00
WillLillis
5b5cf5a5e5 fix(lib): check point, byte ranges in ts_query_cursor_set
range functions
2024-11-02 03:06:07 -04:00
Will Lillis
9d86cb2c20
fix(docs): update link for "Error Detection and Recovery in LR Parsers" 2024-11-02 01:34:49 -04:00
Amaan Qureshi
7baefa8609 fix(cli): use contains over is in warning 2024-11-02 01:31:46 -04:00
Amaan Qureshi
e892862c6c fix(rust): fix progress callback scope to prevent premature drop 2024-11-02 00:57:50 -04:00
ObserverOfTime
02ff0af69c build(bindings): rename cmake test target
CTest creates a test target which breaks the build when the parser is
included via FetchContent in a CMake project that uses CTest
2024-10-31 23:12:28 -04:00
Amaan Qureshi
500f4326d5 feat: add the ability to specify a custom decode function 2024-10-31 22:51:40 -04:00
Amaan Qureshi
e27160b118 feat(rust): remove usage of deprecated functions 2024-10-31 21:58:35 -04:00
Amaan Qureshi
6fdba6bbd6 feat(rust): add *_with_options to the parser and query cursor, deprecate old functions
The normal `with` functions are now deprecated in favor of the
`with_options` ones.
2024-10-31 21:58:35 -04:00
Amaan Qureshi
8d68980aa8 feat(lib): add ts_query_cursor_exec_with_options
Currently, this allows users to pass in a callback that should be
invoked to check whether or not to halt query execution
2024-10-31 21:58:35 -04:00
Amaan Qureshi
26b89da9bb feat(lib): add ts_parser_parse_with_options
Currently, this allows users to pass in a callback that should be
invoked to check whether or not to halt parsing
2024-10-31 21:58:35 -04:00
Amaan Qureshi
aaba7cd2f9 feat: implement a cache for get_column 2024-10-30 18:35:38 -04:00
Sam Estep
a767f89967 docs: fix missing links 2024-10-30 17:24:16 -04:00
Sam Estep
8ecda3ed98
docs: code-format repro commands in bug report template
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2024-10-30 17:10:55 -04:00
Sam Estep
f3f7230ee3
fix(cli): pass all fields to tree-sitter.json in init 2024-10-30 17:09:21 -04:00
Sam Estep
31af4294a7
docs: recommend npm install for editor integration 2024-10-30 17:06:23 -04:00
Sam Estep
c3ec2c251e
docs(rust): add --locked to installation instructions 2024-10-30 10:51:46 -04:00
Amaan Qureshi
55bda0a968 build: regenerate bindings.rs & add Language::name 2024-10-29 18:51:27 -04:00
Amaan Qureshi
ab306f543f ci: add bindgen workflow 2024-10-29 18:51:27 -04:00
Amaan Qureshi
350fff24bf fix(lib): simplify edge cases with zero-width tokens 2024-10-28 13:57:29 +00:00
dundargoc
a3de650024 fix: make sha generation work with submodules
More specifically, change `is_dir` to `exists` as `.git` is a file when
in a submodule.
2024-10-28 12:16:48 +01:00
dundargoc
dc4e232e6e feat: add build sha to parser.c header comment 2024-10-28 12:16:48 +01:00
dependabot[bot]
74481399df
Merge pull request #3832 from tree-sitter/dependabot/cargo/cargo-ff991ead52 2024-10-27 10:39:30 +00:00
dependabot[bot]
abafa073df
build(deps): bump wasmparser in the cargo group across 1 directory
Bumps the cargo group with 1 update in the / directory: [wasmparser](https://github.com/bytecodealliance/wasm-tools).


Updates `wasmparser` from 0.217.0 to 0.218.0
- [Release notes](https://github.com/bytecodealliance/wasm-tools/releases)
- [Commits](https://github.com/bytecodealliance/wasm-tools/commits)

---
updated-dependencies:
- dependency-name: wasmparser
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-26 23:59:05 +00:00
ObserverOfTime
3661689389 feat(bindings): drop language name from node 2024-10-26 23:53:58 +00:00
ObserverOfTime
c5ee0ac070 feat(lib): add the language name 2024-10-26 23:53:58 +00:00
Amaan Qureshi
42dd32d184 build: remove unicode files and script, move cliff.toml 2024-10-26 23:25:12 +00:00
Amaan Qureshi
c7d6fd7fa5 build: move `generate-wasm-exports-lists to xtask 2024-10-26 23:25:12 +00:00
Amaan Qureshi
c8cf75fd30 feat(generate)!: use regex_syntax::Hir for expanding regexes
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2024-10-26 23:25:12 +00:00
Amaan Qureshi
c707f3ee9e fix(xtask): correct header path 2024-10-26 17:02:00 +00:00
Amaan Qureshi
ce93d8fd9b feat!: bump internal abi to 15 2024-10-26 17:02:00 +00:00
ObserverOfTime
413b7cbcca build(cli): get build sha via git command 2024-10-26 04:41:10 +00:00
Christian Clason
66cd81a4f8 build(deps): bump wasmtime to v26.0.0
https://github.com/bytecodealliance/wasmtime/releases/tag/v26.0.0

reland https://github.com/tree-sitter/tree-sitter/pull/3779
2024-10-24 17:09:06 +00:00