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",