Commit 472d326
committed
Tweak observeOutdented condition
Some OUTDENTs were not inserted because next token was not EMPTY. But the
intent was that this should not be used for control flow. We now make
the conditions when not to insert OUTDENT more explicit: don't insert
OUTDENT in front of a `case` if the current region can accept `case`.
# Conflicts:
# compiler/src/dotty/tools/dotc/parsing/Scanners.scala1 parent 1344826 commit 472d326
File tree
2 files changed
+12
-13
lines changed- compiler/src/dotty/tools/dotc/parsing
2 files changed
+12
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
722 | | - | |
| 721 | + | |
| 722 | + | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
736 | 733 | | |
737 | 734 | | |
738 | 735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
| |||
0 commit comments