Skip to content

Commit

Permalink
Don't consume trailing newlines as part layouts (#74)
Browse files Browse the repository at this point in the history
Additionally, using left-associative precedence for lambda case causes
brace layouts to fail
  • Loading branch information
tek committed Mar 12, 2022
1 parent d6ccd2d commit 4e9e50b
Show file tree
Hide file tree
Showing 10 changed files with 333,408 additions and 314,089 deletions.
3 changes: 3 additions & 0 deletions grammar.js
4 changes: 2 additions & 2 deletions grammar/exp.js
57 changes: 30 additions & 27 deletions src/grammar.json
647,370 changes: 333,323 additions & 314,047 deletions src/parser.c
26 changes: 13 additions & 13 deletions src/scanner.c
1 change: 1 addition & 0 deletions src/tree_sitter/parser.h
17 changes: 17 additions & 0 deletions test/corpus/exp.txt
4 changes: 4 additions & 0 deletions test/edit/LambdaCaseEnd.hs
14 changes: 14 additions & 0 deletions test/edit/LambdaCaseEnd.target
1 change: 1 addition & 0 deletions test/edit/run.bash

0 comments on commit 4e9e50b

Please sign in to comment.