Commit bc6cf47
committed
Improve dentation at EOF
Check trailing blank line at EOF for OUTDENT
If EOF is preceded by only spaces on the last line, do not outdent
because it will complain about alignment during an edit.
Preserve EOF token when probing arrow EOL
For REPL, `: x =>` at EOF sees an EOF in order to detect lambda eol.1 parent b1575f0 commit bc6cf47
File tree
3 files changed
+32
-6
lines changed- compiler
- src/dotty/tools/dotc
- parsing
- util
- test/dotty/tools/repl
3 files changed
+32
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
606 | 620 | | |
607 | 621 | | |
608 | 622 | | |
| |||
615 | 629 | | |
616 | 630 | | |
617 | 631 | | |
618 | | - | |
| 632 | + | |
619 | 633 | | |
620 | | - | |
621 | 634 | | |
622 | 635 | | |
623 | 636 | | |
| |||
671 | 684 | | |
672 | 685 | | |
673 | 686 | | |
674 | | - | |
| 687 | + | |
675 | 688 | | |
676 | 689 | | |
677 | 690 | | |
678 | | - | |
| 691 | + | |
| 692 | + | |
679 | 693 | | |
680 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
681 | 697 | | |
682 | 698 | | |
683 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
514 | 524 | | |
515 | 525 | | |
516 | 526 | | |
| |||
0 commit comments