Skip to content

Commit

Permalink
feat: function call has function field
Browse files Browse the repository at this point in the history
  • Loading branch information
viddrobnic committed Jul 7, 2024
1 parent d345e4a commit f52fd1d
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 64 deletions.
2 changes: 1 addition & 1 deletion tree-sitter-aoc/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ module.exports = grammar({
prec.left(
PREC.call_index,
seq(
$._expression,
field("function", $._expression),
choice(
// no arguments
seq("(", ")"),
Expand Down
8 changes: 6 additions & 2 deletions tree-sitter-aoc/src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

87 changes: 85 additions & 2 deletions tree-sitter-aoc/src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 64 additions & 59 deletions tree-sitter-aoc/src/parser.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f52fd1d

Please sign in to comment.