Commit graph

3590 commits

Author SHA1 Message Date
Max Brunsfeld
24d1e7ec7e Included embedded-template parser in randomized tests 2018-11-03 23:18:24 -07:00
Max Brunsfeld
2169c45da9 Store subtree's lookahead byte count relative to its end offset
This improves test coverage for incremental parsing by generalizing
the randomized tests in `real_grammars.cc` to make *multiple* edits
before incrementally re-parsing.
2018-11-02 15:23:38 -07:00
Max Brunsfeld
67a9cb3336 Use pointer address as node id in ts_subtree_print_dot_graph 2018-11-02 15:23:38 -07:00
Max Brunsfeld
3faaec3317
Merge pull request #217 from Turbo87/patch-1
docs: Add missing `)` to test code
2018-11-02 08:41:45 -07:00
Tobias Bieniek
1602e9f06a
docs: Add missing ) to test code 2018-11-02 14:33:12 +01:00
Max Brunsfeld
dc6d659fcf
Add CSS parser to the list in the docs 2018-10-30 09:36:45 -07:00
Max Brunsfeld
8f526e6c98
Merge pull request #209 from vzvu3k6k/fix-example-code
Fix assetion of an example program
2018-10-25 09:43:44 -07:00
vzvu3k6k
87448aa534 Fix assetion of an example program
test-json-parser fails:
    test-json-parser.c:42: int main():
    Assertion `ts_node_child_count(array_node) == 4' failed.

`array_node` has five nodes: ([), (number), (,), (null), (]).
2018-10-25 02:20:10 +09:00
Max Brunsfeld
af01846fd7 Add ts_tree_cursor_reset function 2018-10-21 10:39:05 -07:00
Max Brunsfeld
fa1f4aa86a
Merge pull request #204 from tree-sitter/property-sheets
Add a system for assigning properties to syntax nodes
2018-10-15 23:18:33 -07:00
Max Brunsfeld
2b6857bb45 Fix breaking of property selector specificity ties 2018-10-15 09:41:46 -07:00
Max Brunsfeld
91fb64984f Fix order of operations in PropertyTableBuilder 2018-10-13 20:15:07 -07:00
Max Brunsfeld
db360b73fb Add Tree.walk_with_properties 2018-10-13 14:27:17 -07:00
Max Brunsfeld
a8cbde6dbf Run rustfmt on lib.rs 2018-10-09 08:23:02 -07:00
Max Brunsfeld
91d35dec7d Add Parser.parser_utf8_io() method 2018-10-08 22:33:43 -07:00
Max Brunsfeld
572e8c202e Implement Send for Parser 2018-10-08 22:33:11 -07:00
Max Brunsfeld
0c2e1c189b Implement Clone for Language 2018-10-08 22:32:58 -07:00
Max Brunsfeld
c8125ec617 Make Language send + sync, add language methods 2018-10-08 11:45:57 -07:00
Max Brunsfeld
277bf2f03d Add text pattern handling to property table generation 2018-10-04 15:03:17 -07:00
Max Brunsfeld
9c6f5c9836 Add comments to PropertyTableBuilder 2018-10-04 09:20:53 -07:00
Max Brunsfeld
c79929f8ea Include cstring for memcmp 2018-10-03 22:09:45 -07:00
Max Brunsfeld
0aac2ab722 ⬆️ bandit 2018-10-03 21:59:28 -07:00
Max Brunsfeld
1129759b52 Don't include null index in property table json 2018-10-03 21:38:19 -07:00
Max Brunsfeld
00a94ac040 Fix javascript error fixture 2018-10-03 21:38:03 -07:00
Max Brunsfeld
5fdbb2483d Always build 64-bit on macOS 2018-10-03 21:37:48 -07:00
Max Brunsfeld
e65403930f Add ts_compile_property_sheet API 2018-10-03 18:12:51 -07:00
Max Brunsfeld
257522372f Rename appveyor.yml -> .appveyor.yml 2018-09-21 18:28:12 -07:00
Max Brunsfeld
50cc0aa31d Add a 64-bit build on appveyor 2018-09-21 18:27:49 -07:00
Max Brunsfeld
3dab0066bc Add missing padding bytes check before storing tree inline 2018-09-19 10:52:21 -07:00
Max Brunsfeld
3672da6ac3 🎨 Use NULL_SUBTREE constant in a few more places 2018-09-17 22:24:37 -07:00
Max Brunsfeld
2408e7fec0
Merge pull request #202 from tree-sitter/stack-allocated-leaves
Allocate terminal subtrees on the stack in 64-bits when possible
2018-09-17 20:40:45 -07:00
Max Brunsfeld
b29d0f622f Cram terminal subtree data into a 64-bit integer when possible 2018-09-17 18:52:34 -07:00
Max Brunsfeld
e00c3bbdb9 Take more parameters in ts_subtree_new_leaf 2018-09-15 00:08:47 -07:00
Max Brunsfeld
c828ca308f Don't store first_leaf field on leaf nodes 2018-09-14 23:08:15 -07:00
Max Brunsfeld
637a65fee9
Merge pull request #201 from tree-sitter/reduce-memory-footprint
Use smaller allocations for normal leaf nodes
2018-09-14 13:42:58 -07:00
Max Brunsfeld
93926fc82e Don't store node_count and dynamic_precedence for leaf nodes 2018-09-14 11:02:11 -07:00
Max Brunsfeld
c7306722dd Use smaller allocations for normal leaf nodes 2018-09-14 00:48:03 -07:00
Max Brunsfeld
25797cad5f Add favicon to docs site 2018-09-12 20:29:24 -07:00
Max Brunsfeld
9e13912db3 Tweak docs for multi-language documents 2018-09-12 20:11:35 -07:00
Max Brunsfeld
1878b425de Add documentation about included ranges 2018-09-12 17:54:52 -07:00
Max Brunsfeld
78b54810a6 Disable optimizations on windows for parsers w/ large lex functions 2018-09-12 15:01:56 -07:00
Max Brunsfeld
dadd100fc3
Merge pull request #200 from tree-sitter/missing-tokens-in-included-ranges
Fix bug where missing token was inserted outside of any included range
2018-09-11 17:45:58 -07:00
Max Brunsfeld
508499bab1 Fix bug where missing token was inserted outside of any included range 2018-09-11 17:41:23 -07:00
Max Brunsfeld
7661d08127 Flesh out keyword extraction discussion 2018-09-09 18:47:31 -07:00
Max Brunsfeld
07065e3580 Mention lexical conflict resolution w/ strings vs regexes 2018-09-09 18:47:31 -07:00
Max Brunsfeld
a4383d17d1 Reference named/anonymous node section when explaining test s-exps 2018-09-09 18:47:31 -07:00
Max Brunsfeld
d6cc98c644 Remove leading $ from shell code blocks 2018-09-09 18:47:31 -07:00
Max Brunsfeld
b0fb31dc5f Recommend using npm init/npm install to generate the package.json 2018-09-09 18:47:30 -07:00
Max Brunsfeld
edbdf4b802 Increase maximum pre-allocation size of external scanner state 2018-08-31 13:30:59 -07:00
Max Brunsfeld
234d020957 Fix invalid access of external_scanner_state on non-terminal subtree
Fixes #199
2018-08-31 10:48:46 -07:00