Skip to content

vscode-dotty: Improve auto-indentation #7278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 23, 2019

Conversation

smarter
Copy link
Member

@smarter smarter commented Sep 20, 2019

smarter and others added 4 commits September 23, 2019 13:36
- do not auto-indent after end marker (fixes scala#7274)
- auto-indent after `if ...` as long as it doesn't match `if ... then
  ...` in anticipation of scala#7276
- use lazy matching (`.*?` instead of `.*`) when possible to avoid
  backtracking explosion.
Auto-unindent completed `end` folowed by `while`, `for`, `match`, `try`, `if`
@smarter smarter merged commit ac4e8b9 into scala:master Sep 23, 2019
@smarter smarter deleted the vscode-end-marker branch September 23, 2019 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VScode: erroneous indentation after end marker
2 participants