Andy Pan
1635aab801
Fix exporting get/set timeout in web binding ( #592 )
...
* Fix exporting get/set timeout in web binding
Add two symbols "_ts_parser_set_timeout_micros", "_ts_parser_timeout_micros" due to usage in `tree-sitter.js`.
* Fix getTimeoutMicros() not returning the value
2020-04-11 08:21:59 -07:00
Max Brunsfeld
96c060fc6d
wasm: Fix typo in Node.typeId
2020-02-21 17:06:07 -08:00
Max Brunsfeld
33492ca9df
query: Add not-eq? predicate in rust & wasm binding
2020-02-19 21:36:30 -08:00
Max Brunsfeld
9ea3668f75
wasm: Fix logic for finding language functions
2019-11-20 11:10:49 -08:00
Emily Marigold Klassen
1d2f171067
binding_web: fix typo in fieldNameForId ( #481 )
2019-11-08 21:55:08 -08:00
Max Brunsfeld
f736cb3896
web: Implement TreeCursor.nodeText
...
Refs #466
2019-10-22 12:58:27 -07:00
Max Brunsfeld
7ccec8c0e2
Tweak wasm binding to work with new upstream LLVM backend
2019-10-21 16:10:29 -07:00
Max Brunsfeld
27149902f8
Handle is?, is-not?, and set! predicate functions in queries
2019-09-25 10:21:20 -07:00
Max Brunsfeld
b15e90bd26
Handle set! predicate function in queries
2019-09-24 11:54:24 -07:00
Max Brunsfeld
d4d554b2ae
Add wasm bindings for predicates
2019-09-16 10:25:44 -07:00
Max Brunsfeld
096126d039
Allow predicates in queries, to match on nodes' text
2019-09-15 22:06:51 -07:00
Max Brunsfeld
307a1a6c11
Avoid wasm calls in Node.startIndex and Node.startPosition
2019-09-13 15:38:30 -07:00
Max Brunsfeld
a1fec71b19
Tweak QueryCursor to allow iterating either matches or captures
...
For syntax highlighting, we want to iterate over all of the captures in
order, and don't care about grouping the captures by pattern.
2019-09-13 15:19:04 -07:00
Max Brunsfeld
49ce2fddb9
Add wasm binding for running tree queries in a limited range
2019-09-12 12:14:04 -07:00
Max Brunsfeld
c71de5bd81
Tweak query interface
...
* Rename TSQueryContext -> TSQueryCursor
* Remove the permanent association between the cursor and its query. The
cursor can now be used again for a different query.
2019-09-11 17:33:48 -07:00
Max Brunsfeld
52cda5f541
Start work on wasm binding to query API
2019-09-10 20:54:21 -07:00
Max Brunsfeld
82fab90c0b
web: Add bindings for remaining field APIs
2019-09-04 09:30:36 -07:00
Max Brunsfeld
9848ceb3e2
wasm: Fix infinite loop in Node.text when tree and text are out-of-sync
2019-07-31 13:55:15 -07:00
Max Brunsfeld
f00b310908
wasm: Implement Node.descendantsOfType
2019-07-17 08:58:46 -07:00
Max Brunsfeld
1a33f1a665
Add TreeCursor.currentFieldName to wasm binding
2019-07-10 14:31:10 -05:00
Max Brunsfeld
1cef6d4550
web: Don't require Parser.init to be called immediately
2019-06-03 16:18:49 -07:00
Max Brunsfeld
068f7b1a0c
Wasm: Throw an exception if Parser is constructed before init() resolves
2019-05-28 12:59:00 -07:00
Federico
51345f3ea2
Ensure Point has column typeof number field
2019-05-24 14:34:04 +02:00
Max Brunsfeld
3ec91a8d8a
Wasm: When in node, use fs APIs to load language wasm files
...
Fixes #338
2019-05-23 16:12:32 -07:00
Max Brunsfeld
0d70b485c0
Implement Wasm binding for Tree.getChangedRanges()
2019-05-09 23:52:57 -07:00
Max Brunsfeld
3fc459a84b
Reorganize language bindings
...
* Move rust binding: lib/binding -> lib/binding_rust
* Move wasm bindinig: lib/web -> lib/binding_web
* Add wasm readme
2019-05-07 10:41:49 -07:00