diff --git a/tools/lsp/squirrel/grammar/pascaligo/grammar.js b/tools/lsp/squirrel/grammar/pascaligo/grammar.js index 5b94192b3..6ba30796c 100644 --- a/tools/lsp/squirrel/grammar/pascaligo/grammar.js +++ b/tools/lsp/squirrel/grammar/pascaligo/grammar.js @@ -363,13 +363,11 @@ module.exports = grammar({ choice( $._instruction, $.clause_block, + $.block, ), clause_block: $ => - choice( - field("block", $.block), - seq('{', sepBy1(';', field("statement", $._statement)), '}') - ), + seq('{', sepBy1(';', field("statement", $._statement)), '}'), block: $ => choice( @@ -822,4 +820,4 @@ module.exports = grammar({ skip: $ => 'skip', recursive: $ => 'recursive', } -}); \ No newline at end of file +});