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
Andrew Hlynskyi
1fbe929ad9
feat: define Sync, Send for Node and TreeCursor types
2023-08-03 03:03:03 +03:00
Andrew Hlynskyi
0f533b909d
chore: group Sync, Send impls by type
2023-08-03 03:03:03 +03:00
Andrew Hlynskyi
b456f831d1
Remove PartialOrd, Ord deriving from Range in Rust lib
2023-08-02 18:30:32 +03:00
Andrew Hlynskyi
b9e3cc56d6
chore: apply common approach for api.h defs
2023-08-02 00:33:25 +03:00
Andrew Hlynskyi
1ac134a97d
Apply ts_node_is_error in Rust binding
2023-08-02 00:27:19 +03:00
Andrew Hlynskyi
a08c61235d
Fix, reference by value for Language as everywhere
2023-08-02 00:04:24 +03:00
Andrew Hlynskyi
759af6d0a4
Remove Copy, Clone from TSLookaheadIterator raw binding struct
2023-08-02 00:04:17 +03:00
Daumantas Kavolis
8c789bf7d5
After review
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
8d5462cea4
LookaheadIterator doesn't need lifetime annotation as it depends on language only
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
fd8fd3f535
Add tests for previous sibling, last child
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
e2c2e39e15
Delete parser and iterator
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
4d6a30a69e
Need to check that left row is also non-zero so that columns are not subtracted twice
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
e2094ef202
Add wasm tests for lookahead iterator
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
ab788619ca
Split wasm tests for next parse state
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
ec90c215ae
Add tests for bidirectional cursor
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
672d38803e
Add iteration over names
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
1f52f2f1dc
Symbols without aliases should be used for lookahead
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
7267384970
Use step directly
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
c47e217e73
API extensions
2023-08-02 00:02:33 +03:00
Andrew Hlynskyi
cd1d717551
chore: regenerate bindings.rs after #2370
2023-08-01 21:33:55 +03:00
Amaan Qureshi
614f2f61c8
fix: suppress unused warnings for eof
2023-08-01 12:47:12 +01:00
Andrew Hlynskyi
d489d71623
fix: children_by_field_id API to receive non option field id
2023-08-01 12:21:24 +03:00