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
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
e3aad995f6
query: Fix handling of patterns with wildcards at the root
2020-03-11 13:14:16 -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
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
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
f3747863df
Add ts_query_disable_pattern API
2020-01-15 17:08:55 -08:00
Max Brunsfeld
3c4a24752b
Tweak naming of TSQuery's pattern map variables
2020-01-15 17:08:07 -08:00
Patrick Thomson
39bfcdf595
Fix build with MinGW tooling. ( #514 )
...
Courtesy of @Eli-Zaretskii, these fixes should unblock people from
building tree-sitter with MinGW.
I don't think this is an unreasonable maintenance burden, especially
given the Emacs project's interest in using tree-sitter, but
@maxbrunsfeld gets the final call.
2020-01-06 09:21:40 -08:00
Maxim Sukharev
edb5693100
include language.h in query.c ( #507 )
...
Building `query.c` requires `TREE_SITTER_LANGUAGE_VERSION_WITH_SYMBOL_DEDUPING` which is defined in `language.h`.
It produces an error:
```
query.c:744:40: error: use of undeclared identifier 'TREE_SITTER_LANGUAGE_VERSION_WITH_SYMBOL_DEDUPING'
```
when building with cgo.
2019-12-16 09:38:18 -08:00
Max Brunsfeld
e313f981a2
wasm: 0.16.0
2019-12-10 16:26:20 -08:00
Max Brunsfeld
80a4304956
lib: 0.6.0
2019-12-10 16:24:39 -08:00
Max Brunsfeld
d25b71182e
Update bash unit test to reflect field additions
2019-12-10 14:12:45 -08:00
Max Brunsfeld
0cb2ef1082
Fix code paths that still conflated null characters with EOF
2019-12-06 15:29:03 -08:00
Max Brunsfeld
6d1d8cc217
query: Skip workaround code path when using new symbol map field
2019-12-06 12:11:45 -08:00
Max Brunsfeld
56c620c005
Store a mapping to ensure no two symbols map to the same metadata
2019-12-05 17:21:46 -08:00
Maxim Sukharev
a647de1ef5
add missing unicode include to query.c
...
it causes problems with building tree-sitter with cgo
2019-11-28 01:32:41 +01:00
Max Brunsfeld
e3f6b1a1af
Query - If too many states, kill the one w/ the earliest capture
2019-11-22 11:54:12 -08:00
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
Damien Guard
599e4f0ec4
Fix a few compiler warnings
2019-11-20 10:21:10 -08:00