From 73f2c137ec3a217a2a61bdef332d98e8e800fdd5 Mon Sep 17 00:00:00 2001 From: kolen Date: Sat, 17 Feb 2024 20:13:03 +0300 Subject: [PATCH] Remove unnecessary seq --- grammar.js | 2 +- src/grammar.json | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/grammar.js b/grammar.js index 39340ed..d49fbec 100644 --- a/grammar.js +++ b/grammar.js @@ -46,7 +46,7 @@ module.exports = grammar({ ], rules: { - source_file: $ => seq($._block), + source_file: $ => $._block, _block: $ => seq( $._block_start, diff --git a/src/grammar.json b/src/grammar.json index df8800e..99f81a3 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -2,13 +2,8 @@ "name": "slim", "rules": { "source_file": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_block" - } - ] + "type": "SYMBOL", + "name": "_block" }, "_block": { "type": "SEQ",