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
Tuấn-Anh Nguyễn
8e6220a0c5
Allow QueryCursor::matches' text_callback to return any AsRef<[u8]> ( #488 )
2019-11-17 10:40:06 -08:00
Max Brunsfeld
ce633a85c6
Improve ts_language_symbol_for_name function
2019-11-15 14:21:13 -08:00
Max Brunsfeld
b4a2f4ed60
Fix debug/release conditional compilation flags for free()
2019-11-15 10:09:22 -08:00
Max Brunsfeld
967da88371
Avoid unnecessary recompiles between debug & test builds
...
This makes development much quicker when switching back and forth
between compiling with RLS while editing and running tests with
`cargo test`.
2019-11-14 13:34:25 -08:00
Emily Marigold Klassen
1d2f171067
binding_web: fix typo in fieldNameForId ( #481 )
2019-11-08 21:55:08 -08:00
Max Brunsfeld
78f800935e
binding_rust: 0.5.0
2019-11-08 14:22:01 -08:00
Max Brunsfeld
1909ae2cee
binding_rust: Improve node children APIs
...
Closes #480
2019-11-08 14:20:10 -08:00
Max Brunsfeld
c6d1bd2b04
Fix a few rustdoc links
2019-11-08 12:43:26 -08:00
Max Brunsfeld
662af0afc1
binding_rust: 0.4.0
2019-11-08 12:30:58 -08:00
Max Brunsfeld
d68dfa78b2
Add misssing docs to rust binding
2019-11-08 12:29:26 -08:00
Max Brunsfeld
a7824cf59d
Fix docs for ts_node_is_extra
...
Fixes #446
2019-11-05 09:49:16 -08:00
Max Brunsfeld
d765332c61
Don't rely on new eof ABI in parsers unless --next-abi is passed
2019-10-31 14:32:50 -07:00
Max Brunsfeld
d3b7caa565
Add a TSLexer.eof() API, use it in generated parsers
2019-10-31 14:11:52 -07:00
Max Brunsfeld
a62b7a70f3
Lexer: track EOF state without relying on null character as lookahead
2019-10-31 14:11:52 -07:00
Max Brunsfeld
5a3a672e30
Expand on query docs
2019-10-30 10:26:10 -07:00
Max Brunsfeld
077cd4970c
Handle empty list of included ranges w/ non-null pointer
2019-10-29 13:45:04 -07:00
Max Brunsfeld
42dfba29c6
Make ts_tree_get_changed_ranges less confusing
2019-10-28 15:33:41 -07:00
Björn Linse
124ae30138
fix invalid docs for ts_tree_get_changed_ranges
2019-10-25 21:19:33 +02: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
6cd82574a3
Merge pull request #469 from tree-sitter/non-terminal-extras
...
Allow non-terminal extras
2019-10-21 18:47:45 -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
fcaabea0cf
Allow non-terminal extras
2019-10-21 16:08:59 -07:00
Max Brunsfeld
e14e285a10
cli: Check queries when running tree-sitter test
2019-10-18 14:44:16 -07:00
Max Brunsfeld
64c6cf4473
Implicitly reset parser's state if language is changed after a timeout
2019-10-18 11:28:59 -07:00
Max Brunsfeld
b79295e1a0
🔥 Everything related to property sheets
2019-10-17 11:00:31 -07:00
Max Brunsfeld
fa43ce01a6
Allow queries to capture ERROR nodes
2019-10-16 11:54:32 -07:00