From 68aac9a0ae087470d7595ca529d3e685d51d6c39 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 1 Jun 2022 20:35:22 +0200 Subject: [PATCH] Delineate expressions in grammar --- grammar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grammar.js b/grammar.js index 33e6e6c..f4a9f77 100644 --- a/grammar.js +++ b/grammar.js @@ -30,6 +30,8 @@ module.exports = grammar({ $._expr, ), + // Expressions {{{ + _expr: ($) => choice( $.nil_literal, $.integer_literal, @@ -207,6 +209,8 @@ module.exports = grammar({ ), break_expression: (_) => "break", + + // }}} } });