Commit graph

71 commits

Author SHA1 Message Date
Darkhan Kubigenov
bf41088bd1 tags: fix compilation on aarch64
Fixes #798
2020-11-13 19:01:57 +06:00
Max Brunsfeld
0a46033391 Remove duplication of LossyUtf8 helper 2020-10-14 11:35:50 -07:00
Max Brunsfeld
08356f79c7 Bump sibling cargo deps 2020-09-30 21:19:32 -07:00
Max Brunsfeld
ba239ce4ab Make query error line numbers consistently display 1-indexed 2020-09-24 15:03:51 -07:00
Patrick Thomson
d5576e306c
Merge pull request #708 from tree-sitter/add-tagger-error-detection
Add ts_tags_buffer_found_parse_error capabilities for error detection during tagging.
2020-08-05 14:07:31 -04:00
Patrick Thomson
8d58a0d33a Add parameter in the header. 2020-08-05 13:10:02 -04:00
Max Brunsfeld
f91b19c089 tags, highlight: Avoid completely deallocating buffers when shrinking 2020-08-05 09:57:45 -07:00
Patrick Thomson
49be94f069 Merge remote-tracking branch 'origin/master' into add-tagger-error-detection 2020-08-05 12:44:26 -04:00
Patrick Thomson
ec6af791af Bikeshed this name a little bit. 2020-08-05 12:24:39 -04:00
Patrick Thomson
7576b0b448 Add accessor to the C header. 2020-08-05 12:21:42 -04:00
Max Brunsfeld
32f69dbe15 tags, highlight: Limit the size of buffers that are retained in memory 2020-08-05 09:06:00 -07:00
Patrick Thomson
5a52dc2cd7 Return an iterator-bool tuple instead of just an iterator. 2020-08-05 11:18:59 -04:00
Patrick Thomson
1a571ae208 Add errors_present field to tagging context. 2020-08-04 17:53:47 -04:00
Max Brunsfeld
f265e63d48 tags: Allow def or ref node to be a sibling of the name node 2020-07-30 13:35:04 -07:00
Max Brunsfeld
e89a19a158 tags: Add @ignore capture 2020-07-29 15:33:48 -07:00
Max Brunsfeld
ba70927f57 tags: Skip tags with a parse error inside the name 2020-07-20 16:47:07 -07:00
Max Brunsfeld
6cee04350f tags: Expose utf16 column range to C API 2020-07-09 13:39:47 -07:00
Max Brunsfeld
9e38fd9f5c Add todo comment for LossyUtf8 iterator 2020-07-09 12:32:40 -07:00
Max Brunsfeld
0f80560310 tags: Reuse work when computing utf16 columns, line ranges 2020-07-09 12:13:12 -07:00
Max Brunsfeld
52360b103d tags: Fix comment position 2020-07-09 12:07:57 -07:00
Max Brunsfeld
1ecfc2548f tags: Move impls below type definitions 2020-07-09 11:30:30 -07:00
Max Brunsfeld
fef72fb434 Merge branch 'tags-utf16-columns' into tagging-improvements 2020-07-09 10:40:46 -07:00
Max Brunsfeld
255cf0a9cf tags: Add utf16 column ranges to tags
Also, ensure that line ranges contain only valid UTF8.

Co-authored-by: Tim Clem <tclem@github.com>
Co-authored-by: Beka Valentine <bekavalentine@github.com>
2020-07-08 16:13:58 -07:00
Max Brunsfeld
d614c14c2c tags: Make spans refer to name, not entire def/ref
Co-authored-by: Tim Clem <tclem@github.com>
Co-authored-by: Beka Valentine <bekavalentine@github.com>
2020-07-08 12:37:01 -07:00
Timothy Clem
d9d3da9942 Fill out rest of c errors 2020-06-18 16:04:05 -07:00
Timothy Clem
ef15f4df24 Dedupe items in syntax_type_names 2020-06-18 15:05:08 -07:00
Timothy Clem
17d26c0d5a Improved errors 2020-06-18 14:43:27 -07:00
Timothy Clem
54586c4e5b Named captures are dynamic
New c api for getting list of syntax_type names.
2020-06-18 14:42:30 -07:00
Timothy Clem
016ad53a2f Trim end of lines as well 2020-06-18 07:40:48 -07:00
Timothy Clem
819b800cf9 Pick up the proper initial index and test 2020-06-17 15:54:29 -07:00
Timothy Clem
7b2514a610 Whitespace 2020-06-17 15:12:18 -07:00
Timothy Clem
3c39b016a4 Trim whitespace from tag source lines 2020-06-17 15:11:42 -07:00
Timothy Clem
15202d0b38 Remove commented code 2020-06-17 15:11:31 -07:00
Timothy Clem
30132c682b Bring tags.h inline 2020-06-17 14:12:14 -07:00
Timothy Clem
3e8bf9dace These are always definitions 2020-06-17 10:35:16 -07:00
Timothy Clem
c08333e0cd Defer to debug formatting take 2 2020-06-17 10:35:07 -07:00
Timothy Clem
d802b37791 Bring back a SyntaxType enum 2020-06-16 17:09:34 -07:00
Timothy Clem
8d7459ed57 Bring c_lib inline 2020-06-16 16:04:13 -07:00
Timothy Clem
fa199e3a1a Allow most tags to be arbitrarily named, remove hardcoded kinds 2020-06-16 16:04:02 -07:00
Max Brunsfeld
d17d1b36b2 tags: 0.2.0 2020-05-12 16:32:37 -07:00
Max Brunsfeld
322b311c2c Clear QueryCursor state between exec calls 2020-03-26 16:10:39 -07:00
Max Brunsfeld
9dde6c44ed tags: Always return non-null pointers from C APIs 2020-03-25 12:20:30 -07:00
Max Brunsfeld
783c087aec tags: Handle cancellation 2020-03-25 11:26:52 -07:00
Max Brunsfeld
ae075e75f0 tags: Avoid returning garbage pointer when length is zero 2020-03-24 14:53:08 -07:00
Max Brunsfeld
9f0bd33429 Add missing no_mangle attribute on ts_tagger_delete 2020-03-23 11:52:24 -07:00
Max Brunsfeld
59c457c5cf tags: Fix typo in tag ranges 2020-03-20 11:35:27 -07:00
Max Brunsfeld
9665f1ba70 Create tags readme 2020-03-20 10:29:20 -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
e3e1bdba75 tags: Start work on C API 2020-03-17 13:19:18 -07:00