Skip to content

Commit

Permalink
args: argument_list -> arg_list
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Jul 13, 2024
1 parent 7e13592 commit 4d05894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = grammar({

access_list: $ => seq(field("accessed", $.expression), ".", field("accessor", $.identifier)),

call: $ => prec(99, seq(field("callable", $.expression), "(", field("args", optional($.argument_list)), ")")),
call: $ => prec(99, seq(field("callable", $.expression), "(", field("args", optional($.arg_list)), ")")),

template_type: _ => choice("vec", "map"),
type_name: $ => choice($.identifier, "vec", "map"),
Expand All @@ -94,7 +94,7 @@ module.exports = grammar({
param: $ => choice($.identifier, seq($.identifier, ":", $.type)),
param_list: $ => choice($.param, seq($.param, ",", $.param_list)),

argument_list: $ => choice($.expression, seq($.expression, ",", $.argument_list)),
arg_list: $ => choice($.expression, seq($.expression, ",", $.arg_list)),

literal: $ => choice($.number, $.string, $.bool),

Expand Down

0 comments on commit 4d05894

Please sign in to comment.