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
Andrew Hlynskyi
26c3ae7b98
Rename: ts_lookahead_iterator_advance -> ts_lookahead_iterator_next
2023-08-09 14:40:29 +03: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
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
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
1f52f2f1dc
Symbols without aliases should be used for lookahead
2023-08-02 00:02:33 +03:00
Daumantas Kavolis
c47e217e73
API extensions
2023-08-02 00:02:33 +03:00
Amaan Qureshi
1982e48568
chore: update exports to include some string.h functions
2023-07-10 15:21:39 -04:00
Max Brunsfeld
a2119cb691
Add APIs for retrieving tree cursor's depth and descendant index
2023-06-12 11:50:44 -07:00
Andrew Hlynskyi
613382c70a
docs: update badges; fix markdown lint complains
...
Linter config `.vscode/settings.json`:
```json
{
"[markdown]": {
"files.trimTrailingWhitespace": false,
},
"markdownlint.config": {
"default": true,
// "ul-style": {
// "style": "asterisk"
// },
"MD001": false,
"MD024": false,
"MD025": false,
"MD033": false,
"MD041": false,
"MD053": false,
},
}
```
2023-04-16 23:39:08 +03:00
Andrew Hlynskyi
90fca305bf
Merge branch 'recover-web-v0.20.8' into master
2023-04-10 20:32:59 +03:00
Andrew Hlynskyi
de906378ab
web: 0.20.8
2023-04-10 19:50:32 +03:00
Andrew Hlynskyi
1f051d339c
chore(docs): fix misprint repetitions and remove dangling spaces
2023-04-09 20:40:18 +03:00
Andrew Hlynskyi
ec2af46f6f
chore: remove all dead badges
2023-03-16 18:00:02 +02:00
Andrew Hlynskyi
47c1e858ef
Update deps: lib/binding_web/package.json
2023-03-14 20:37:12 +02:00
Andrew Hlynskyi
19bd5868eb
Fix wasm tests
2023-01-06 08:32:26 +02:00
Jonathan Arnett
e4fc6653ee
Add __cxa_atexit to exports
2022-11-15 16:39:17 -08:00
Jonathan Arnett
56e9753b5f
Add memset to exports
2022-11-15 16:39:17 -08:00
Max Brunsfeld
2be51abcd8
Bump library versions
2022-09-02 15:00:09 -07:00
Max Brunsfeld
15190a497d
Build core wasm library with C++ exceptions disabled
2022-09-02 14:55:50 -07:00
Nicholas Yang
8131e7635e
Added documentation on web-tree-sitter edge cases
2022-08-21 17:55:04 -04:00
Max Brunsfeld
1b2e90f647
libs: 0.20.6
2022-03-02 20:50:29 -08:00
Max Brunsfeld
fcbef45899
libs: 0.20.5
2022-03-02 14:43:16 -08:00
Max Brunsfeld
fab8540508
libs: 0.20.3
2022-01-21 16:35:37 -08:00
Owen Shepherd
1aa6541476
Add realloc to wasm exports
2022-01-03 16:07:39 +00:00
Max Brunsfeld
5d8a1ace56
web: 0.20.2
2021-12-30 17:14:04 -08:00
Max Brunsfeld
224e79ca27
web: Fix script directory that's passed to locateFile
2021-11-22 15:56:26 -08:00
Max Brunsfeld
42360fc003
Bump library versions to 0.20.1
2021-11-21 12:33:12 -08:00
Andrew Hlynskyi
79b2bf1c30
fix(wasm): Fix predicates in alternations, resolves #1392
2021-09-21 21:13:41 +03:00
Max Brunsfeld
5c2ebf093b
Include memmove symbol in wasm build
2021-09-10 15:21:55 -07:00
Max Brunsfeld
0e26fbe5e6
Merge pull request #1367 from jrieken/moduleInit
...
Allow to pass Module object to init-function
2021-08-30 09:32:43 -07:00
Max Brunsfeld
eeda44d837
Merge pull request #1368 from jrieken/dtsTweaks
...
Fixes and additions to tree-sitter-web.d.ts
2021-08-30 09:17:53 -07:00
Johannes Rieken
3e9874df7f
Don't confuse terser with object spread
2021-08-30 14:56:28 +02:00
Johannes Rieken
e7a8e73bbf
fixes and additions to tree-sitter-web.d.ts
2021-08-30 14:47:47 +02:00
Johannes Rieken
12d727fd49
mix init options in the Module-global
2021-08-30 14:16:41 +02:00
Andrew Hlynskyi
f15700c6bd
chore(web): Add the LICENSE file to the web-tree-sitter npm package
2021-08-22 03:13:46 +03:00
Max Brunsfeld
be69777350
libs: 0.20.0
2021-06-29 17:18:22 -07:00
Andrew Hlynskyi
a286f831c7
Bump Emscripten version to 2.0.24
2021-06-30 01:06:33 +03:00
Douglas Creager
ad3907c2a6
wasm: Add matchLimit option to query methods
...
This exposes the new configurable match limits for query cursors.
2021-06-02 13:51:00 -04:00
Max Brunsfeld
9d0eedc01f
Remove stray entry from wasm exported-symbol list
2021-05-20 14:33:25 -07:00
Max Brunsfeld
242e089379
web: 0.19.4
2021-05-20 14:29:39 -07:00
Douglas Creager
6abf77a20c
web: 0.19.3
2021-05-13 15:14:56 -04:00
Douglas Creager
04c2aa973b
binding_web: Call correct function to reset parser
2021-05-03 14:25:57 -04:00
Douglas Creager
b742e88108
Use TRANSFER_BUFFER for did_exceed_match_limit
...
This bridges the gap between how the C API reports this for a query
cursor, but the wasm API defines the method on a query. Whenever you
call a query method that might exceed the match limit, we call the C API
function and transfer the result across the wasm boundary, storing the
result in the JavaScript wrapper class.
2021-04-28 15:46:12 -04:00
Douglas Creager
e8eb3c5d5a
binding_web: Add Query.didExceedMatchLimit
...
This lets wasm clients check whether a query exceeded its maximum number
of in-progress matches.
2021-04-27 09:21:38 -04:00
Max Brunsfeld
2a99108171
web: 0.19.2
2021-03-18 10:36:05 -07:00
Jon Bockhorst
1e9481dc48
Web bindings: fix descendantsOfType memory allocation
2021-03-13 22:28:10 -06:00