Commit graph

6118 commits

Author SHA1 Message Date
Phil Turnbull
d7bea0a6f6 Remove unused logger 2018-05-22 09:20:53 -07:00
Phil Turnbull
8f31a5f02a Remove unused import 2018-05-22 09:01:59 -07:00
Max Brunsfeld
80630ce504 Store nodes' public-facing positions, not pre-padding positions 2018-05-22 08:50:04 -07:00
Phil Turnbull
c41841f4e9 Assert ts_parser_set_language in fuzz driver 2018-05-22 08:40:36 -07:00
Phil Turnbull
c56c4affb2 Use ts_tree_root_node in fuzz driver 2018-05-22 08:19:56 -07:00
Max Brunsfeld
8d57ce9cdf
Merge pull request #167 from tree-sitter/cancellation
Add an API for cancelling the current parse
2018-05-21 17:43:31 -07:00
Max Brunsfeld
1fece241aa Add ts_parser_set_enabled API 2018-05-21 17:28:12 -07:00
Max Brunsfeld
7f3ea52acf
Merge pull request #168 from tree-sitter/simplify-node-reuse
Don't reuse nodes within ambiguities
2018-05-21 16:30:12 -07:00
Max Brunsfeld
39c3de3fc8 Don't reuse nodes within ambiguities 2018-05-21 16:04:10 -07:00
Max Brunsfeld
95fbc23fd6 Add support for running focused tests via windows test script 2018-05-21 14:09:42 -07:00
Max Brunsfeld
16a7366ec7 0.1.1 2018-05-18 15:06:05 -07:00
Max Brunsfeld
0034fce809 Add some fields to the cargo manifest 2018-05-18 15:05:31 -07:00
Max Brunsfeld
45660e7b4e Make syntax trees implement Send 2018-05-18 15:02:22 -07:00
Max Brunsfeld
4da669ce8d Fix bugs in editing/reparsing 2018-05-18 14:28:15 -07:00
Max Brunsfeld
78f28b14ce Remove unused field 2018-05-18 14:27:52 -07:00
Max Brunsfeld
819b140701 Make set_logger take a boxed function 2018-05-18 14:06:49 -07:00
Max Brunsfeld
e6d580597d Add crates.io badge to README 2018-05-18 12:02:52 -07:00
Max Brunsfeld
c0b49e9935 Fix include globs in package manifest 2018-05-18 11:57:00 -07:00
Max Brunsfeld
a27ac49dea Flesh out README 2018-05-18 11:42:13 -07:00
Max Brunsfeld
870dc11f79 Implement Eq and Debug for Node 2018-05-18 11:15:37 -07:00
Max Brunsfeld
e10a817704 Switch back to default c compiler on travis 2018-05-18 10:55:42 -07:00
Max Brunsfeld
4603542747 Add more public methods and tests 2018-05-18 10:55:20 -07:00
Max Brunsfeld
993bfea669 Add missing source file 2018-05-18 10:39:00 -07:00
Max Brunsfeld
654789f925 Use UTF8PROC_STATIC macro 2018-05-18 10:27:36 -07:00
Max Brunsfeld
9c1e82a7ea ⬆️ utf8proc, use new UTF8PROC_STATIC macro 2018-05-18 10:25:55 -07:00
Max Brunsfeld
7748f8e168 Fetch submodules on appveyor 2018-05-18 10:16:28 -07:00
Max Brunsfeld
8d485857e1 Tweak build script for windows 2018-05-18 10:11:29 -07:00
Max Brunsfeld
29c0cd3aa4 Add appveyor config 2018-05-18 09:58:34 -07:00
Max Brunsfeld
e61edf5398 Don't perform platform-specific name mangling on C functions for bindings 2018-05-18 09:30:00 -07:00
Max Brunsfeld
29dfa05504 Try clang 2018-05-17 21:13:59 -07:00
Max Brunsfeld
13e26b5007 Try a static flag 2018-05-17 18:08:44 -07:00
Max Brunsfeld
b1ff399960 ⬆️ tree-sitter for warning fixes 2018-05-17 18:02:01 -07:00
Max Brunsfeld
3c01382b95 Avoid warnings about repeated typedefs 2018-05-17 17:59:50 -07:00
Max Brunsfeld
572a60183c Suppress warnings associated w/ generated bindings 2018-05-17 17:41:44 -07:00
Max Brunsfeld
7e6675d56e Use a more unique library name when building C sources 2018-05-17 17:41:44 -07:00
Max Brunsfeld
08217fff8d Get basic parsing working, add some unit tests 2018-05-17 17:16:35 -07:00
Max Brunsfeld
ead0e31262 Fix duplicated compile of parser.c 2018-05-17 14:46:29 -07:00
Max Brunsfeld
f07f710db7 Compile tree-sitter sources in c99 mode 2018-05-17 14:46:29 -07:00
Max Brunsfeld
8918d1a5b1 Add boilerplate 2018-05-17 14:46:29 -07:00
Max Brunsfeld
6e4115548c Initial commit 2018-05-17 14:30:03 -07:00
Max Brunsfeld
5ec3769cb4 Make ts_tree_cursor_current_node take the cursor as const 2018-05-17 14:24:32 -07:00
Max Brunsfeld
074c051094 Change the TSInputEdit struct to work with old/new start and end positions 2018-05-17 11:14:51 -07:00
Max Brunsfeld
95be6e3bee Make it clear which field of TSNode can be used as a unique id 2018-05-16 16:20:33 -07:00
Max Brunsfeld
e3670be42f Avoid one heap allocation when instantiating a TSTreeCursor 2018-05-16 16:05:08 -07:00
Max Brunsfeld
6fc8d9871c Hide the details of TSNode's fields in the public API 2018-05-16 15:44:04 -07:00
Max Brunsfeld
ebddb1a0b5 Add ts_tree_cursor_goto_first_child_for_byte method
Atom needs this for efficiently seeking to the leaf node at a given position,
visiting all of its ancestors along the way.
2018-05-16 13:51:21 -07:00
Max Brunsfeld
89b3a6a059
Merge pull request #165 from tree-sitter/no-parent-pointers
Remove all use of mutable state in syntax trees
2018-05-11 17:33:36 -07:00
Max Brunsfeld
b2c5741ded Link tests against libpthread on linux 2018-05-11 17:19:16 -07:00
Max Brunsfeld
32c06b9b59 Make multi-threaded test work on windows
Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
2018-05-11 17:10:05 -07:00
Max Brunsfeld
043a2fc0d9 Assert absence of memory leaks in randomized multi-threaded tree test 2018-05-11 16:53:47 -07:00