Commit graph

774 commits

Author SHA1 Message Date
Daumantas Kavolis 143ed959c9
Use single if block 2023-10-25 10:47:55 +03:00
Daumantas Kavolis e265929f90
Fix goto_previous_sibling with padded first children 2023-10-25 10:19:03 +03:00
dstoc 8d0997d5b4 Add towlower to wasm exports
tree-sitter/tree-sitter#1906
2023-09-20 10:41:54 +10:00
Amaan Qureshi 6d4aac723f
feat: add some more commonly used functions to exports.json 2023-09-19 09:29:13 -04:00
Andrew Hlynskyi 46965770fc fix(lib): segmentation fault in ts_node_parse_state 2023-09-12 02:35:22 +03:00
Andrew Hlynskyi 524bf7e2c6
Merge pull request #2607 from ahlinc/fix-zero-deallocs
fix: `dealloc` calls on zero pointers
2023-09-03 09:45:52 +03:00
Andrew Hlynskyi 9cc1daafca chore(ffi): remove enum name prefixes from all C enum values 2023-09-03 07:38:27 +03:00
Andrew Hlynskyi 67a5dbdd93 fix: dealloc calls on zero pointers 2023-09-03 06:53:18 +03:00
Andrew Hlynskyi 5921b36a75
Merge pull request #2603 from ahlinc/query-with-slices
chore(rust): make `Query` predicates state fully immutable
2023-09-03 00:17:22 +03:00
Andrew Hlynskyi 52f7eaff31 chore(rust): make Query extra predicates state fully immutable 2023-09-02 23:12:28 +03:00
Andrew Hlynskyi 055c329a69 chore(lib): fix fields naming in QueryPattern to singular 2023-09-02 21:08:54 +03:00
Amaan Qureshi ec88699f1c
test(node): update bash test 2023-08-31 18:26:22 -04:00
Amaan Qureshi 09030401d1
fix(node): add _isalpha 2023-08-31 17:58:42 -04:00
Amaan Qureshi 09ac28c77d
feat!: properly handle predicates used on quantified captures 2023-08-31 16:01:36 -04:00
Andrew Hlynskyi f9117a0221 doc: Add internal links for api.h funcs 2023-08-28 23:09:37 +03:00
Andrew Hlynskyi 756e51867d doc: fix cargo doc warnings 2023-08-28 23:09:37 +03:00
mgunyho bdc0e44d45 doc: Include README in top-level module documentation 2023-08-28 21:27:41 +03:00
mgunyho 8d894bb050 doc: Add backticks to all internal links 2023-08-28 19:26:38 +03:00
mgunyho dcfd91fc25 doc: Add internal links to backticked text where applicable 2023-08-28 19:26:37 +03:00
mgunyho 4fabc49066 doc: Fix broken link 2023-08-28 19:26:33 +03:00
Amaan Qureshi a4ea4737ac fix: do not increment current_included_range_index past included_range_count in __do_advance 2023-08-27 14:16:18 +03:00
Andrew Hlynskyi fae3c5b5cf fix(lib): improve visibility control for clang 2023-08-25 19:11:19 +03:00
Andrew Hlynskyi b22e4fe3c9 chore: fix a wasm bash test 2023-08-25 17:36:03 +03:00
Amaan Qureshi 5c7098dd56
fix(query): debug print uses wrong variable 2023-08-22 19:22:31 -04:00
DennySun2100 f4a6134461
GCC pragma causes warning on non-GNU compilers 2023-08-21 11:54:09 -07:00
Andrew Hlynskyi abd57bc69b chore: simplify script/generate-bindings 2023-08-21 02:56:14 +03:00
Andrew Hlynskyi 4278e03b11 feat: generate Rust bindings during build process
It can be used as:
  > cargo build -p tree-sitter -F bindgen
2023-08-21 02:56:14 +03:00
Amaan Qureshi ab09ae20d6
Merge pull request #2530 from jamessan/Werror-only-ci
Remove -Werror from default CFLAGS
2023-08-18 17:21:48 -04:00
James McCoy 545ef842de
Remove -Werror from default CFLAGS
Production builds shouldn't include -Werror by default since that could
cause spurious build failures when there are toolchain updates.

CI uses -Werror to prevent warnings, so that should be sufficient.
2023-08-18 14:23:19 -04:00
Amaan Qureshi 7d953eb5ba
Merge pull request #2466 from tom95/add-field-name-for-child
Web Bindings: Expose fieldNameForChild C function
2023-08-18 12:20:39 -04:00
Amaan Qureshi 458b5de0fc
feat: add any-of predicate 2023-08-17 22:20:57 -04:00
Max Brunsfeld 9564e1706d Fix error recovery regression due to stack node_count change 2023-08-17 17:21:31 -07:00
Andrew Hlynskyi f9e8802234 Use the same flags in lib's build.rs as in Makefile 2023-08-17 16:27:52 +03:00
Andrew Hlynskyi 5e3df64a46 fix(lib): expose only symbols defined in api.h 2023-08-17 15:01:47 +03:00
Amaan Qureshi ec17f60de5
fix: use SEQ_CST in atomic inc/dec 2023-08-13 12:27:00 -04:00
Amaan Qureshi 7a6c0f23fa fix: musl compilation 2023-08-13 02:02:40 -04:00
Andrew Hlynskyi f0fde974e4 Remove lazy_static lib dep forgotten in 622359b4 2023-08-12 00:10:35 +03:00
Andrew Hlynskyi 4a007259fc Fix warning from #2454 in more clear way 2023-08-10 03:59:34 +03:00
Andrew Hlynskyi 26c3ae7b98 Rename: ts_lookahead_iterator_advance -> ts_lookahead_iterator_next 2023-08-09 14:40:29 +03:00
Amaan Qureshi d710dc9c89 fix: ensure function signatures in the API consistently show parameter names 2023-08-03 22:17:53 +01:00
Amaan Qureshi 05a4f9f3e3
Merge pull request #1411 from aminya/c-warnings
Fix compiling C library with Clang on Windows
2023-08-03 13:39:52 -04:00
Tom Beckmann b947145e53 add a test 2023-08-03 16:32:51 +02:00
Tom Beckmann b407b5588d binding_web: expose Node.fieldNameForChild(index) function 2023-08-03 16:02:51 +02:00
Andrew Hlynskyi e23e4cea18 Make Rust code statements more compact and in functional style 2023-08-03 14:28:00 +03:00
Andrew Hlynskyi cb8c89fbd7
Merge pull request #2464 from tree-sitter/relax-lifetimes
feat: rework lifetimes, relax dependencies and tie only on implementations
2023-08-03 14:22:33 +03:00
Andrew Hlynskyi c85f81f625 feat: rework lifetimes, relax deps and tie only on impls 2023-08-03 13:13:26 +03:00
Andrew Hlynskyi 485d192880 binding_rust: set_max_start_depth accepts optional to reset limit 2023-08-03 11:45:36 +03:00
Samuel Moelius 41ec8b4166 Partially revert d4d5e29 2023-08-03 11:41:50 +03:00
Andrew Hlynskyi d185f3126f Make LookaheadIterator Sync and Send 2023-08-03 03:50:35 +03:00
Andrew Hlynskyi 4eb22ed3ae Fix UB for LookaheadIterator 2023-08-03 03:49:57 +03:00