Skip to content

Commit 8967d98

Browse files
committed
Re-generate parser with latest tree-sitter
Also, add test that is fixed by the upgrade
1 parent 4214147 commit 8967d98

File tree

3 files changed

+103019
-108030
lines changed

3 files changed

+103019
-108030
lines changed

grammar_test/semicolon_insertion.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,26 @@ function c() {return d}
6565
(expression_statement
6666
(function (identifier) (formal_parameters) (statement_block
6767
(trailing_return_statement (identifier))))))
68+
69+
==============================================
70+
Multi-line chained expressions in var declarations
71+
==============================================
72+
73+
var a = new A()
74+
.b({c: 'd'})
75+
.e()
76+
77+
---
78+
79+
(program
80+
(var_declaration (var_assignment
81+
(identifier)
82+
(function_call
83+
(member_access
84+
(function_call
85+
(member_access
86+
(new_expression (function_call (identifier) (arguments)))
87+
(identifier))
88+
(arguments (object (pair (identifier) (string)))))
89+
(identifier))
90+
(arguments)))))

0 commit comments

Comments
 (0)