Commit graph

2005 commits

Author SHA1 Message Date
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
Jamie
2384234aea
Fix rules docs 2018-07-20 16:58:50 -07:00
Max Brunsfeld
16376c43f5
Merge pull request #183 from tree-sitter/detect-included-range-boundaries
Add lexer API for detecting boundaries of included ranges
2018-07-18 09:37:16 -07:00
Max Brunsfeld
9ecb20650b Fix logic for checking out branches in fixture repos 2018-07-17 15:46:14 -07:00
Max Brunsfeld
483881ec6a Use included range branch of javascript parser for testing on windows CI
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-07-17 15:26:29 -07:00
Max Brunsfeld
999ef4fd12 Fix get_changed_ranges tests
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-07-17 15:18:46 -07:00
Max Brunsfeld
8b772df3ff Add missing #include in point_helpers
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-07-17 14:13:08 -07:00
Max Brunsfeld
d8a420cad1 Use included range branch of javascript parser for testing 2018-07-17 14:04:37 -07:00
Max Brunsfeld
87c992a7f0 Add lexer API for detecting boundaries of included ranges
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-07-17 13:58:26 -07:00
Max Brunsfeld
d54412266e Avoid mutating the root node for out-of-bounds edits 2018-07-13 16:03:01 -07:00
Max Brunsfeld
0f0adfb681 Avoid recursion in ts_subtree_edit
This prevents stack overflows when editing very large trees.

Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-07-12 13:53:31 -07:00
Max Brunsfeld
9e8bec458d Add ts_node_edit API 2018-07-11 16:17:46 -07:00
Max Brunsfeld
308016b776 Clarify runtime vs parser generator in README
Fixes #182
2018-07-10 14:09:22 -07:00
Max Brunsfeld
df3969e9d9 Invalidate tree's parent cache after an edit 2018-07-10 14:08:30 -07:00
Max Brunsfeld
83f88164aa Fix end positions of tokens at the end of included ranges
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-07-09 10:23:25 -07:00
Max Brunsfeld
3169620ce4 Fix ranges of tokens at the beginnings of included ranges 2018-07-06 17:08:36 -07:00
Max Brunsfeld
531f2f48b1 Update list of available parsers 2018-07-05 16:45:27 -07:00
Max Brunsfeld
5ab6401478 Fix TreeCursor bugs
* ts_tree_cursor_goto_first_child_for_byte failed to find the child
  in some cases
* ts_tree_cursor_goto_parent did not handle aliased invisible parent
  nodes

Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-28 16:17:16 -07:00
Max Brunsfeld
80cab8fd8a Make the empty chunk 2 bytes long, for UTF16 support 2018-06-25 17:46:23 -07:00
Max Brunsfeld
4f5a87b952
Merge pull request #181 from tree-sitter/new-apis
Add some APIs
2018-06-24 15:48:24 -07:00