Skip to content

Commit

Permalink
improve error recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsidorenco committed Apr 30, 2024
1 parent ed67506 commit 53c2106
Show file tree
Hide file tree
Showing 6 changed files with 254,030 additions and 253,529 deletions.
5 changes: 1 addition & 4 deletions examples/expressions.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
do
while true do
while true do
true

match x with
| true -> 1
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1821,5 +1821,5 @@ module.exports = grammar({
});

function scoped(rule, indent, dedent) {
return seq(indent, rule, dedent);
return field('block', seq(indent, rule, dedent));
}
Loading

0 comments on commit 53c2106

Please sign in to comment.