From 5d46f03528edf15a70c0601ce51d43f1088f59e6 Mon Sep 17 00:00:00 2001 From: ekazbaraite Date: Fri, 10 Jan 2025 09:05:34 +0200 Subject: [PATCH] Added couple of other fixes --- grammar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar.js b/grammar.js index aba2e51..6d4f20d 100644 --- a/grammar.js +++ b/grammar.js @@ -731,7 +731,7 @@ module.exports = grammar({ alias($.function_parameters, $.parameters), $.body, kw("END"), - optional(kw("CONSTRUCTOR")), + optional(choice(kw("CONSTRUCTOR"), kw("METHOD"))), $._terminator ), @@ -998,8 +998,8 @@ module.exports = grammar({ kw("DO"), optional($.preselect_phrase), optional($.to_phrase), + optional($.do_tuning), optional($.while_phrase), - repeat($.do_tuning), optional($.stop_after_phrase), repeat( choice(