Commit graph

2024 commits

Author SHA1 Message Date
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
Max Brunsfeld
6caa19d912
Merge pull request #197 from tree-sitter/extract-simple-aliases
Simplify treatment of rules that are always aliased one way
2018-08-30 10:48:46 -07:00
Max Brunsfeld
0fe6496b8b Allow version count to temporarily exceed the max during reductions 2018-08-30 10:43:01 -07:00
Max Brunsfeld
7fc64ed25a Account for simple aliases in unit reduction elimination 2018-08-30 09:57:22 -07:00
Max Brunsfeld
5372a81947 Simplify treatment of rules that are always aliased one way 2018-08-30 09:57:22 -07:00
Max Brunsfeld
57f3fd9026
Merge pull request #196 from tree-sitter/dynamic-precedence-fixes
Fix bugs that prevented dynamic precedence from being respected
2018-08-23 17:06:48 -07:00
Max Brunsfeld
725314b19e Fix bugs that prevented dynamic precedence from being respected 2018-08-23 16:45:36 -07:00
Max Brunsfeld
de0e8a39a2 Expand using parsers section of the docs 2018-08-14 12:13:10 -07:00
Max Brunsfeld
87ad0fb9c2 Expand using parsers document 2018-08-13 18:04:10 -07:00
Max Brunsfeld
a8bcd2ce9e Forward arguments to jekyll serve in the serve-docs script 2018-08-13 18:03:57 -07:00
Max Brunsfeld
d4264d6191 Fix parsing of quantifiers with no upper bound 2018-08-06 13:47:26 -07:00
Max Brunsfeld
44ebabda0c
Merge pull request #191 from tree-sitter/incomplete-multi-byte-characters
Handle input chunks that end within multi-byte characters
2018-08-02 15:59:45 -07:00
Max Brunsfeld
acc937b7d7 Handle input chunks that end within multi-byte characters 2018-08-02 15:43:30 -07:00
Max Brunsfeld
126f84aa73 Avoid unnecessary suffixes on external symbol identifiers 2018-08-01 16:11:21 -07:00
Max Brunsfeld
e21b4505c8 Resume testing against master branch of fixture repos 2018-08-01 15:22:23 -07:00
Max Brunsfeld
1dcbd21bbe
Merge pull request #190 from tree-sitter/immediate-tokens
Add immediate token rule for enforcing no preceding extras
2018-08-01 15:21:42 -07:00
Max Brunsfeld
41fe564a90 Update error recovery fixture 2018-08-01 15:09:45 -07:00
Max Brunsfeld
68618f61a6 Test against immediate token branches of grammar repos 2018-08-01 14:23:52 -07:00
Max Brunsfeld
cb784975a4 Add IMMEDIATE_TOKEN rule type, for enforcing no preceding extras 2018-08-01 14:00:57 -07:00
Max Brunsfeld
f1821bb04d
Merge pull request #188 from tree-sitter/token-precedence
Ensure that precedence is respected properly when used within tokens
2018-07-31 12:52:14 -07:00
Max Brunsfeld
714fda917a Update test now that JS strings are parsed differently 2018-07-31 11:50:09 -07:00
Max Brunsfeld
6ebb9195b1 Flesh out integration test for precedence within tokens 2018-07-31 10:18:49 -07:00
Orhan Toy
9795aa16c4 [ci skip] Fix typo (#189) 2018-07-28 16:14:59 -07:00
Max Brunsfeld
23e4596ec1 Add test for handling of precedence within tokens 2018-07-26 17:06:09 -07:00
Max Brunsfeld
9c9149ac45
Merge pull request #187 from tree-sitter/regex-quantifiers
Support {} quantifier syntax in regexes
2018-07-25 11:42:37 -07:00
Max Brunsfeld
247848baf3 Return to using the master branch of tree-sitter-javascript for testing 2018-07-25 11:29:41 -07:00
Max Brunsfeld
e88dd223b2 Support {} quantifier syntax in regexes 2018-07-25 11:29:41 -07:00
Max Brunsfeld
06c8e103d4
Merge pull request #184 from jamiebuilds/patch-1
Fix rules docs
2018-07-20 17:06:51 -07:00