Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/bbannier/multiple-function…
Browse files Browse the repository at this point in the history
…-calls'
  • Loading branch information
bbannier committed Jan 18, 2024
2 parents b1fdab4 + beb6cd3 commit de9ac9d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ module.exports = grammar({
prec_l(1, seq('table', '(', optional($.expr_list), ')', optional($.attr_list))),
prec_l(1, seq('set', '(', optional($.expr_list), ')', optional($.attr_list))),
prec_l(1, seq('vector', '(', optional($.expr_list), ')')),
prec_l(1, seq($.id, '(', optional($.expr_list), ')')),
prec_l(1, seq($.expr, '(', optional($.expr_list), ')')),

$.id,
Expand Down
2 changes: 1 addition & 1 deletion src
Submodule src updated 3 files
+33 −0 grammar.json
+69,780 −66,672 parser.c
+1 −0 tree_sitter/parser.h
40 changes: 40 additions & 0 deletions test/corpus/expressions
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
================================================================================
Function call
================================================================================

1;
f(1);
f(1) + f(1);

--------------------------------------------------------------------------------

(source_file
(nl)
(stmt
(expr
(constant
(integer))))
(nl)
(stmt
(expr
(id)
(expr_list
(expr
(constant
(integer))))))
(nl)
(stmt
(expr
(expr
(id)
(expr_list
(expr
(constant
(integer)))))
(expr
(id)
(expr_list
(expr
(constant
(integer)))))))
(nl))

0 comments on commit de9ac9d

Please sign in to comment.