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
Max Brunsfeld
631710bada
Implement Default for Point, Eq for Node
2020-02-11 15:58:35 -08:00
Max Brunsfeld
d8c3f472d2
Fix fallout from ts_language_next_state fix
2020-02-10 12:00:58 -08:00
Max Brunsfeld
096014cb3e
Clean up ts_language_next_state
2020-02-07 14:06:14 -08:00
Max Brunsfeld
a1c3de1b99
rust: Add Language::node_kind_is_visible API
2020-01-31 12:04:18 -08:00
Max Brunsfeld
ee7c29346a
Small cleanup
2020-01-29 16:48:36 -08:00
Max Brunsfeld
64996976f4
rust: Add Language::id_for_node_kind method
2020-01-29 16:48:08 -08:00
Max Brunsfeld
2bc7e457df
lib: 0.6.1
2020-01-28 09:27:10 -08:00
Max Brunsfeld
e232ed04d1
Fix lifetimes on QueryCursor methods
...
Closes #530
2020-01-28 09:14:09 -08:00
Max Brunsfeld
7de36a33eb
Remove halt_on_error API
2020-01-27 15:36:09 -08:00
Max Brunsfeld
9ffcb16392
Fix tree-balancing logic
...
Remove incorrect condition that would prevent balancing of repeating
structures containing only tokens (nodes w/ no children).
Co-Authored-By: Rob Rix <robrix@github.com>
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-01-23 10:26:53 -08:00