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 |
|
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
|
41e9af2456
|
Avoid including undefined in return value of Query.matches
Fixes #932
|
2021-02-26 15:16:07 -08:00 |
|
Max Brunsfeld
|
f462f0d09d
|
Fix small issues with new wasm bindings
|
2021-02-05 10:18:37 -08:00 |
|
hvithrafn
|
752372ee09
|
Add several bindings for Language
|
2021-02-01 13:01:10 -07:00 |
|
Max Brunsfeld
|
0f492e4254
|
Include ts_tree_copy in wasm build
Fixes #846
|
2020-12-11 13:48:22 -08:00 |
|
Joel Spadin
|
7ef73b2e08
|
web binding: fix equals()
Node.equals() used to always return true. Now it works.
Also added unit tests for it.
|
2020-11-26 14:43:27 -06:00 |
|
Max Brunsfeld
|
9daec9cb22
|
Tweak impossible pattern error messages
|
2020-08-20 13:35:11 -07:00 |
|
Max Brunsfeld
|
1ae5cbc851
|
query: Handle #not-match? in rust, wasm bindings
|
2020-07-24 12:15:23 -07:00 |
|
Max Brunsfeld
|
28a779d6a0
|
wasm: Allow arbitrary predicates in queries
|
2020-06-01 13:28:52 -07:00 |
|
Max Brunsfeld
|
fce5c50f81
|
Fix wasm query tests
|
2020-05-11 16:19:42 -07:00 |
|
Max Brunsfeld
|
d25b71182e
|
Update bash unit test to reflect field additions
|
2019-12-10 14:12:45 -08:00 |
|
Max Brunsfeld
|
f736cb3896
|
web: Implement TreeCursor.nodeText
Refs #466
|
2019-10-22 12:58:27 -07:00 |
|
Max Brunsfeld
|
060e00463d
|
Implement include-children directive in injection queries
|
2019-10-14 17:38:42 -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
|
b79839b599
|
Use a more realistic example in one JS query unit test
|
2019-09-16 12:48:01 -07:00 |
|
Max Brunsfeld
|
d4d554b2ae
|
Add wasm bindings for predicates
|
2019-09-16 10:25:44 -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
|
67dcbc3e73
|
Detect error when a prefix of a valid node name is used in a query
|
2019-09-11 21:23:46 -07:00 |
|
Max Brunsfeld
|
60467ae701
|
Fix bugs in binary search used in tree queries
|
2019-09-10 22:30:27 -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
|
52126a6606
|
Update JS test to reflect typescript grammar changes
|
2019-08-08 10:23:17 -07:00 |
|
Max Brunsfeld
|
443ac1c1e5
|
Update python tests to reflect grammar changes
|
2019-07-22 09:55:30 -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
|
c90a532d8f
|
Update tests to reflect javascript grammar changes
|
2019-07-10 14:30:43 -05:00 |
|
Max Brunsfeld
|
f2b13721d9
|
Update wasm test to reflect C++ grammar changes
|
2019-07-05 12:13:38 -07:00 |
|
Max Brunsfeld
|
f5163126c8
|
generate-fixtures-wasm: handle language repos w/ multiple grammars
Refs tree-sitter/tree-sitter-typescript#68
|
2019-05-30 12:34:03 -07:00 |
|
Max Brunsfeld
|
0d70b485c0
|
Implement Wasm binding for Tree.getChangedRanges()
|
2019-05-09 23:52:57 -07:00 |
|
Max Brunsfeld
|
9a82bd9d83
|
Set up code to publish web bindings to npm
|
2019-05-07 13:11:04 -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 |
|