Max Brunsfeld
|
462c86903f
|
Improve tree queries' ability to handle large numbers of nested matches (#624)
* query: Acquire capture lists lazily, allow more concurrent states
* Fix some static analysis warnings
|
2020-05-18 13:40:24 -07:00 |
|
Алексей Пастухов
|
38d32c018b
|
add Rust into languages list for corpus tests (#619)
|
2020-05-15 16:02:39 -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
|
b14f564550
|
Add a test for nested optionals in queries
|
2020-05-11 10:42:48 -07:00 |
|
Max Brunsfeld
|
9c0535cea6
|
Fix logic for aborting failed matches
|
2020-05-08 14:15:25 -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
|
3456a21f0d
|
Start work on restructuring query implementation to deal w/ optionals and repeats better
|
2020-05-07 12:41:25 -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
|
8eac81b8df
|
Merge branch 'master' into tags
|
2020-03-25 12:49:15 -07:00 |
|
Max Brunsfeld
|
783c087aec
|
tags: Handle cancellation
|
2020-03-25 11:26:52 -07:00 |
|
Max Brunsfeld
|
a003e5f6bd
|
generate: Avoid duplicate string tokens in unique symbol map
|
2020-03-20 11:35:11 -07:00 |
|
Max Brunsfeld
|
ae1c51051a
|
Fix tag order in JS tags test
|
2020-03-20 11:34:33 -07:00 |
|
Max Brunsfeld
|
aedab72afa
|
tags: Start work on handling local variables for ruby support
|
2020-03-20 10:13:03 -07:00 |
|
Max Brunsfeld
|
651fa38c93
|
Add unit test for tagging via C API. Fix docs handling
|
2020-03-18 10:40:15 -07:00 |
|
Max Brunsfeld
|
94a60b8e13
|
tags: Start adapting Tag struct for use in C API
|
2020-03-17 11:19:30 -07:00 |
|
Max Brunsfeld
|
d0325579ad
|
Use Arc to avoid use-after-free in threaded cancellation unit test
Fixes #579
|
2020-03-16 14:46:05 -07:00 |
|
Max Brunsfeld
|
94bbf14d0e
|
tags: Add test where no comments are adjacent to definition
|
2020-03-16 14:28:58 -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
|
b5f2ed83fe
|
tags: Implement select-adjacent! predicate
|
2020-03-13 13:02:56 -07:00 |
|
Max Brunsfeld
|
0457736766
|
rust: add handling of arbitrary predicate operators
|
2020-03-13 13:02:34 -07:00 |
|
Max Brunsfeld
|
6e2df06dc2
|
Start proving out tags support for JavaScript
|
2020-03-12 16:33:52 -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 |
|
Patrick Thomson
|
d798bd6bd9
|
Slice out the line associated with a tag.
|
2020-03-10 20:39:04 -04:00 |
|
Max Brunsfeld
|
0e02ead0de
|
Update tags test to reflect new handling of escapes in queries
|
2020-03-10 15:53:42 -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
|
fc4d5c3a33
|
🔥 Dead test code
|
2020-03-10 12:23:13 -07:00 |
|
Max Brunsfeld
|
17cc38678c
|
Get generate_tags with the new iterator API
|
2020-03-10 12:05:09 -07:00 |
|
Max Brunsfeld
|
0eb162c685
|
wip: converting generate_tags to return an iterator
|
2020-03-10 11:45:31 -07:00 |
|
Max Brunsfeld
|
157258d881
|
tags: Implement strip regex for docs processing
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
|
2020-03-10 10:43:23 -07:00 |
|
Max Brunsfeld
|
7f4828254f
|
Fix criteria for detecting when an aborted parse is resuming
|
2020-03-09 11:30:08 -07:00 |
|
Patrick Thomson
|
00dcc1eaa6
|
Need to use expression_statement here.
|
2020-03-06 17:48:55 -05:00 |
|
Max Brunsfeld
|
680a9e0531
|
wip
|
2020-03-06 13:24:03 -08:00 |
|
Max Brunsfeld
|
a3f0087b11
|
Start work on tagging unit test
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
|
2020-03-05 13:04:49 -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
|
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
|
de8e3ee188
|
query: Allow multiple captures on a single node
|
2020-02-11 16:02:32 -08:00 |
|
Max Brunsfeld
|
e23f518915
|
highlight: add built-in support for carriage-return highlight
|
2020-01-28 14:47:21 -08:00 |
|
Max Brunsfeld
|
d06407aca2
|
Update highlight test for JSDoc grammar changes
|
2020-01-27 13:08:30 -08:00 |
|
Max Brunsfeld
|
3f109a3cb5
|
highlight: Fix logic for handling empty injections with no highlights
|
2020-01-27 12:32:37 -08:00 |
|
Max Brunsfeld
|
9f63139a10
|
Fix error when set_included_ranges is called with an invalid range list
|
2020-01-17 10:31:28 -08:00 |
|
Max Brunsfeld
|
9dfd03e79a
|
highlight: Sipmlify injection API w/ new injection.combined property
|
2020-01-16 12:43:31 -08:00 |
|
Max Brunsfeld
|
f3747863df
|
Add ts_query_disable_pattern API
|
2020-01-15 17:08:55 -08:00 |
|
Max Brunsfeld
|
c2e253a4c8
|
Update unit test to reflect javascript query change
|
2019-12-10 13:24:36 -08:00 |
|