Max Brunsfeld
d7a188ce7f
web: 0.16.3
2020-05-12 16:22:11 -07:00
Max Brunsfeld
392f023e59
rust: 0.16.0
2020-05-12 16:21:56 -07:00
Max Brunsfeld
f38f5d1d22
Tweak readmes
2020-05-12 16:16:48 -07:00
Max Brunsfeld
fce5c50f81
Fix wasm query tests
2020-05-11 16:19:42 -07:00
Max Brunsfeld
68f43b5865
Make query syntax backward-compatible
2020-05-11 13:23:44 -07:00
Max Brunsfeld
85c998d572
Change the wildcard syntax in tree queries
...
1. Use '_' instead of '*'.
2. Add '*' as a postfix operator for zero-or-more repetitions
Signed-off-by: Patrick Thomson <patrickt@github.com>
2020-05-11 13:04:04 -07:00
Max Brunsfeld
40262483a9
Change query syntax for predicates
...
Signed-off-by: Patrick Thomson <patrickt@github.com>
2020-05-11 12:35:51 -07:00
Max Brunsfeld
9c0535cea6
Fix logic for aborting failed matches
2020-05-08 14:15:25 -07:00
Max Brunsfeld
b0671aea6a
Reorder some code in ts_query_cursor__advance
2020-05-08 12:13:21 -07:00
Max Brunsfeld
b47c170c75
Query: fix bugs and add tests for top-level and nested repetitions
2020-05-08 12:10:01 -07:00
Max Brunsfeld
3ad71625dd
Fix query bugs, expand and clean up query tests
2020-05-07 14:22:15 -07:00
Max Brunsfeld
1011be76b7
Handle trailing optional nodes in queries
2020-05-07 12:41:25 -07:00
Max Brunsfeld
3456a21f0d
Start work on restructuring query implementation to deal w/ optionals and repeats better
2020-05-07 12:41:25 -07:00
Riccardo Schirone
780e9cecc9
Do not use multiple unnamed structs inside of unions
2020-04-29 20:42:45 +02:00
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
35f82ce301
Fix incorrect parent values after call to child_by_field_name
...
Refs tree-sitter/node-tree-sitter#61
Refs tree-sitter/tree-sitter-javascript#127
2020-04-03 11:21:51 -07:00
Max Brunsfeld
21175142af
Merge pull request #583 from tree-sitter/tags
...
Add a 'tags' crate, for computing ctags-style code navigation tags
2020-04-03 11:20:51 -07:00
Alberto González Palomo
bc0d53d4f0
Clarify where to put cc dependency for build script. ( #586 )
2020-03-30 09:43:41 -07:00
Max Brunsfeld
322b311c2c
Clear QueryCursor state between exec calls
2020-03-26 16:10:39 -07:00
Max Brunsfeld
8eac81b8df
Merge branch 'master' into tags
2020-03-25 12:49:15 -07:00
Max Brunsfeld
f453178ca2
rust: Remove unnecessary dependencies from core library
2020-03-16 14:46:05 -07:00
Luca Barbato
21de99de87
Remove non-building doctests ( #578 )
2020-03-16 14:35:27 -07:00
Max Brunsfeld
65f2874b9e
query: Optimize handling of patterns with a wildcard at the root
...
Avoid adding and removing states for these patterns on every node in the tree
by just skipping the wildcard step of the matching process
2020-03-16 14:02:31 -07:00
Max Brunsfeld
b5483c67ab
query: allow repetition operator to be used on non-terminal nodes
2020-03-13 16:12:39 -07:00
Max Brunsfeld
0457736766
rust: add handling of arbitrary predicate operators
2020-03-13 13:02:34 -07:00
Max Brunsfeld
6f636a0357
query: Add postfix '+' operator for token repetition
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-03-12 15:10:58 -07:00
Max Brunsfeld
05c1d44e80
Merge branch 'master' into tags
2020-03-11 13:15:26 -07:00
Max Brunsfeld
e3aad995f6
query: Fix handling of patterns with wildcards at the root
2020-03-11 13:14:16 -07:00
Max Brunsfeld
4531130b44
Merge branch 'master' into tags
2020-03-10 15:50:27 -07:00
Max Brunsfeld
741eed01b7
query: Handle escape sequences and escaped quotes in string literals
2020-03-10 15:50:06 -07:00
Max Brunsfeld
90cacca040
rust: Simplify and generalize handling of set! and is? predicates
2020-03-10 10:42:22 -07:00
Max Brunsfeld
7f4828254f
Fix criteria for detecting when an aborted parse is resuming
2020-03-09 11:30:08 -07:00
Max Brunsfeld
75a910229b
web: 0.16.2
2020-03-02 15:05:50 -08:00
Max Brunsfeld
078cab3f96
rust: 0.6.3
2020-03-02 15:02:45 -08:00
Max Brunsfeld
31f3e866cf
📝 Add comment for non-terminal extra edge case
2020-03-02 14:21:03 -08:00
Max Brunsfeld
ee46218a73
Fix incremental parsing problem with non-terminal extras
...
Also add PHP grammar as a fixture to test against.
2020-03-02 14:17:12 -08:00
Max Brunsfeld
415053213f
web: 0.16.1
2020-03-02 12:48:00 -08:00
Max Brunsfeld
048b8c87a7
Merge pull request #561 from ubolonton/fix-out-of-bounds-access
...
Fix out-of-bounds array access in `Language` APIs
2020-02-27 09:27:18 -08:00
Tuấn-Anh Nguyễn
5f68fba61c
Mark the return value of TreeCursor::field_name static
2020-02-27 22:36:13 +07:00
Tuấn-Anh Nguyễn
23261c4f6f
Make ts_language_symbol_name return NULL for out-of-bound ids
2020-02-27 22:24:00 +07:00
Tuấn-Anh Nguyễn
c719e24a45
Make ts_language_field_name_for_id return NULL for out-of-bound id
2020-02-27 21:19:08 +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
570b83e2b2
query: Add immediate child operator
2020-02-19 11:47:52 -08:00
Max Brunsfeld
950a89a525
query: Differentiate between wildcard '*' and named wildcard '(*)'
2020-02-19 09:42:29 -08:00
Max Brunsfeld
1d6ea51b63
query: Make * operator only match named nodes
2020-02-18 21:32:52 -08:00
Max Brunsfeld
1217f58b8d
rust: 0.6.2
2020-02-17 22:37:12 -08:00
Max Brunsfeld
b2e79f6438
rust: In queries, allow set! w/ capture and constant
2020-02-14 20:50:07 -08:00
Max Brunsfeld
56e52c76f9
rust: Add Hash for Point, Range and Node
2020-02-13 16:03:02 -08:00
Max Brunsfeld
de8e3ee188
query: Allow multiple captures on a single node
2020-02-11 16:02:32 -08:00