Commit graph

58 commits

Author SHA1 Message Date
Max Brunsfeld
71998ef3c1 web: 0.15.11 2019-11-20 11:12:50 -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
George Fraser
1346929e66 Parser.Language.load takes a path (#471) 2019-10-23 08:53:15 -07:00
Max Brunsfeld
4af16dc0ac web: 0.15.10 2019-10-22 13:00:51 -07: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
060e00463d Implement include-children directive in injection queries 2019-10-14 17:38:42 -07:00
Ika
979b46e297 fix(web-tree-sitter): add missing types 2019-10-04 20:16:13 +08: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
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
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
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
c8c75782e3 Allow tree queries to execute within a limited range 2019-09-11 16:49:29 -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
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
3714e330d3 wasm: 0.15.9 2019-07-29 17:19:52 -07:00
Max Brunsfeld
56f30ac06f wasm: 0.15.8 2019-07-23 11:20:24 -07:00
Stafford Brunk
ce10b53fe3
Add missing currentFieldName() to TreeCursor 2019-07-23 06:47:44 -06:00
Stafford Brunk
d686d24563
Add missing delete() to TreeCursor 2019-07-23 06:47:44 -06:00
Stafford Brunk
e5ee59c051
Correct currentNode on TreeCursor
It's a method not a getter in this implementation
2019-07-23 06:47:44 -06:00
Max Brunsfeld
443ac1c1e5 Update python tests to reflect grammar changes 2019-07-22 09:55:30 -07:00
Max Brunsfeld
311fc51e8a wasm: 0.15.7 2019-07-17 15:19:53 -07:00
Max Brunsfeld
5289e009c1 wasm: Add descendantsOfType to typescript interface 2019-07-17 08:59:14 -07:00
Max Brunsfeld
f00b310908 wasm: Implement Node.descendantsOfType 2019-07-17 08:58:46 -07:00
Stafford Brunk
6340c820c1
Add missing copy() and getLanguage() calls to Tree web types 2019-07-16 20:42:57 -06:00
Stafford Brunk
3953cb317f
Add delete() to Parser and Tree web types 2019-07-16 20:39:57 -06: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
Sebastián Gurin
bd97ad5c4c Wasm file generation note in readme (#368)
* readme .wasm file generate and usage in node.js

* generate wasm language files readme note
2019-06-20 14:06:09 -07:00
Max Brunsfeld
3a51b23f1a web: 0.15.6 2019-06-03 16:19:16 -07:00
Max Brunsfeld
1cef6d4550 web: Don't require Parser.init to be called immediately 2019-06-03 16:18:49 -07:00
Max Brunsfeld
790b5558be web: 0.15.5 2019-05-31 11:14:45 -07:00
Max Brunsfeld
e58b69e3b8 Include type declarations in npm tarball 2019-05-31 11:14:29 -07:00
Max Brunsfeld
2084745152 0.15.4 2019-05-31 10:43:42 -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
659f2825ba
Merge pull request #342 from georgewfraser/patch-1
Add type definitions
2019-05-28 15:31:23 -07:00
George Fraser
0fe67dc8b4 Dedent 2019-05-28 23:01:41 +01:00
Max Brunsfeld
6055108936 Wasm: 0.15.3 2019-05-28 13:00:17 -07:00
Max Brunsfeld
068f7b1a0c Wasm: Throw an exception if Parser is constructed before init() resolves 2019-05-28 12:59:00 -07:00