Max Brunsfeld
93a7395c19
Fix invalid dot syntax when token names contain quotes or newlines
2018-11-04 15:25:30 -08:00
Max Brunsfeld
5dbd15f5f2
Loosen criteria for when to increment repeat depth
...
Sometimes, an internal repeat node may have children that are
not themselves repeat nodes, because of unit reduction elimination.
This happened with the embedded template parser.
2018-11-03 23:19:31 -07:00
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
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
Max Brunsfeld
77e4caef4f
Revert "Store trees' children in TreeArrays, not w/ separate pointer and length"
...
This reverts commit 09be0b6ef5 .
2018-08-31 10:41:06 -07:00
Max Brunsfeld
69c815107f
Make ts_language_symbol_for_name work for ERROR
2018-08-31 09:46:55 -07:00
Max Brunsfeld
068c9841a1
Fix bug in ts_node_prev_sibling w/ empty nodes
2018-08-30 20:19:26 -07:00
Max Brunsfeld
e56d17a806
Fix symbol type for simple anonymous aliases
2018-08-30 12:40:27 -07:00