We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b5c966 commit bfd7b50Copy full SHA for bfd7b50
grammar.js
@@ -79,10 +79,7 @@ module.exports = grammar({
79
function_definition_statement: ($) =>
80
seq("function", field("name", $.function_identifier), $._function_body),
81
function_identifier: ($) =>
82
- seq(
83
- _list($.identifier, "."),
84
- optional(seq(":", field("method", $.identifier))),
85
- ),
+ seq(_list($.identifier, "."), optional($._method)),
86
87
for_generic_statement: ($) =>
88
seq(
@@ -269,9 +266,10 @@ module.exports = grammar({
269
266
function_call: ($) =>
270
267
271
268
$._prefix_expression,
272
+ optional($._method),
273
field("arguments", $.argument_list),
274
),
+ _method: ($) => seq(":", field("method", $.identifier)),
275
argument_list: ($) =>
276
choice(seq("(", optional($.expression_list), ")"), $.table, $.string),
277
expression_list: ($) => _list($.expression, ","),
src/grammar.json
0 commit comments