Commit graph

4568 commits

Author SHA1 Message Date
Andrew Hlynskyi
7afd5a1a8b rust: remove Copy, Clone from opaque ptr data structs 2023-07-14 00:19:23 +03:00
Andrew Hlynskyi
a2bcc4f448 script/generate-bindings - no derived Copy, Clone for ptr data wrappers 2023-07-14 00:19:23 +03:00
Andrew Hlynskyi
130080ff2e
Merge pull request #2383 from tree-sitter/ffi-v2
rust: `ffi [v2]` - fix implementation, `TSNode` and `TSTreeCursor` structs are stack allocated
2023-07-14 00:18:19 +03:00
Andrew Hlynskyi
af42cfccd6 rust: fix ffi impl, some structs are stack allocated 2023-07-13 23:48:38 +03:00
Amaan Qureshi
6ad923358a
Merge pull request #2309 from Jille/ts_node_language
feat: add ts_node_language()
2023-07-13 12:40:36 -04:00
Amaan Qureshi
2f2e416031 chore: update Rust bindings 2023-07-13 11:39:33 -04:00
Jille Timmermans
9a74f5cbf5 Add ts_node_language() that returns the language of the node
Since an input might have a nested sublanguage (like Javascript inside
Vue) and symbols are per-language, we need to know which language a node
is.
2023-07-13 11:21:18 -04:00
Andrew Hlynskyi
3fc27f0128
Merge pull request #2382 from tree-sitter/newer-bindgen
Restore Rust bindings generation with newer bindgen 0.65.1
2023-07-13 18:18:42 +03:00
Andrew Hlynskyi
0b0cc6c429 Fix rustc 1.71.0 warnings 2023-07-13 17:50:04 +03:00
Andrew Hlynskyi
0c318d3468 cicd: fix ubsan deb package installation 2023-07-13 17:44:38 +03:00
Andrew Hlynskyi
f01c4f8376 Restore Rust bindings generation with newer bindgen 0.65.1 2023-07-13 17:34:32 +03:00
Andrew Hlynskyi
9fd128ed60
Merge pull request #2311 from ActuallyTaylor/master
Add Support for Swift Package Manager
2023-07-12 19:09:06 +03:00
ActuallyTaylor
ddc629ae53 Added Swift Package Manager entry point. 2023-07-12 11:37:04 -04:00
Amaan Qureshi
51db0a1b5b
Merge pull request #1835 from aminya/clang
fix: better compiler detection on windows
2023-07-11 19:19:44 -04:00
Amin Yahyaabadi
04453f64af fix: remove redundant get_compiler() call 2023-07-11 10:57:34 -07:00
Amin Yahyaabadi
5d83c8f3b8 fix: do not use -fPIC on Windows 2023-07-11 10:57:34 -07:00
Amin Yahyaabadi
76c5773d7c fix: fix detection of the compiler on windows 2023-07-11 10:57:34 -07:00
Andrew Helwer
89edb2ddca
fix(fuzzer): only use rule strings for fuzz dictionary
The `find_literals` function can also pick up tokens in `precedences`
2023-07-10 19:12:24 -04:00
Amaan Qureshi
9d669abac4 feat: add encoding flag and automatically check if a file might be utf-16 2023-07-10 16:43:35 -04:00
Max Brunsfeld
356f68293a Fix false positive query match bug, introduced in #2085 2023-07-10 16:12:59 -04:00
Amaan Qureshi
3504aa3260 fix(deps): bump proc-macro2 as an unstable feature became stabilized 2023-07-10 16:12:19 -04:00
Amaan Qureshi
1982e48568 chore: update exports to include some string.h functions 2023-07-10 15:21:39 -04:00
Amaan Qureshi
b192200008 fix: update tests from python grammar changes 2023-07-10 14:40:18 -04:00
Max Brunsfeld
d0029a1527 Avoid unused value warning from array_pop 2023-06-14 11:31:43 -07:00
Max Brunsfeld
4922602369
Merge pull request #2316 from tree-sitter/node-descendant-index
Add APIs for retrieving descendant counts, seeking to nodes by their descendant index
2023-06-12 15:13:43 -07:00
Max Brunsfeld
3375527a89 Fix bug in ts_tree_cursor_goto_descendant 2023-06-12 14:45:30 -07:00
Max Brunsfeld
6b16a9687b Tweak ruby error test to reflect slightly different recovery 2023-06-12 13:45:43 -07:00
Max Brunsfeld
a2119cb691 Add APIs for retrieving tree cursor's depth and descendant index 2023-06-12 11:50:44 -07:00
Max Brunsfeld
9dd725b4e3 Start work on exposing APIs for node descendant counts and indices 2023-06-09 08:51:47 -07:00
Andrew Hlynskyi
be79158f7e
Merge pull request #2276 from ahlinc/fix-2272
cicd: improvements + less strict glibc version requirement for CLI
2023-05-20 11:46:09 +03:00
Andrew Hlynskyi
b4c73a2b0e
Merge pull request #2280 from smoelius/query-new-oob
Fix OOB in `Query::new`
2023-05-20 11:45:07 +03:00
Andrew Hlynskyi
010f288b3c cicd: move branch locality checking to the release workflow 2023-05-20 04:56:39 +03:00
Samuel Moelius
f461d953a6 Fix OOB in Query::new 2023-05-19 21:31:26 -04:00
Samuel Moelius
67f4f2328c Add test_query_error_does_not_oob 2023-05-19 21:31:01 -04:00
Andrew Hlynskyi
30dc31ff53 cicd: run tests on ready to review PRs 2023-05-20 00:53:31 +03:00
Andrew Hlynskyi
e783d8848d cicd: don't start release on draft PRs 2023-05-20 00:53:31 +03:00
Andrew Hlynskyi
1f42f1efc0 cicd: show info about minimal required GLIBC version for CLI 2023-05-20 00:53:31 +03:00
Andrew Hlynskyi
3af763e4be cicd: build - add a rust-test-threads number input parameter 2023-05-20 00:53:31 +03:00
Andrew Hlynskyi
fcbc3db1ab cicd: build - add a run-tests input parameter 2023-05-19 23:40:34 +03:00
Andrew Hlynskyi
b41c678da6 cicd: rollback runner version to link against older GLIBC 2023-05-19 01:25:46 +03:00
Andrew Hlynskyi
2a9d951cd6
Merge pull request #2263 from ahlinc/update-wasm-build-script
Update `script/wasm-build` and add a `--verbose` option
2023-05-16 11:28:19 +03:00
Andrew Hlynskyi
a9dfcb9e47 script/build-wasm: update emcc options to use actual non-deprecated names 2023-05-16 04:46:46 +03:00
Andrew Hlynskyi
e6a14b24ba
Merge pull request #2261 from ahlinc/emscripten-3.1.37
emscripten: 3.1.37
2023-05-16 04:45:00 +03:00
Andrew Hlynskyi
be179a3c80 script/build-wasm: add a --verbose option 2023-05-15 17:03:24 +03:00
Andrew Hlynskyi
543e9cdc93 emscripten: 3.1.37 2023-05-15 13:11:55 +03:00
Andrew Hlynskyi
91e4d94016
Merge pull request #2107 from Philipp-M/fix-group-first-child
Fix bug with first child group anchor (anchor had no effect)
2023-05-13 20:00:34 +03:00
Philipp Mildenberger
55a8db10cc fix: bug with first child group anchor (anchor had no effect) 2023-05-13 19:40:49 +03:00
Andrew Hlynskyi
da269ac350 test: add a test case to demonstrate the #2107 issue 2023-05-13 19:40:49 +03:00
Andrew Hlynskyi
833d966419
Merge pull request #2258 from tree-sitter/test-reorg-helpers
chore(test): reorganize test helpers
2023-05-13 19:25:42 +03:00
Andrew Hlynskyi
09fe5f29d9 fix(test): stick tree-sitter-cpp fixture grammar to a specific hash
It's needed to fix tests fail: https://github.com/tree-sitter/tree-sitter-cpp/pull/202#issuecomment-1546279646

See CLI xtask notes in https://github.com/tree-sitter/tree-sitter/issues/1223
2023-05-13 18:57:42 +03:00