Skip to content
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

Fix Indent if-then-colon #5929 #6012

Conversation

awb95
Copy link
Contributor

@awb95 awb95 commented Aug 20, 2022

Fix #5929 .
The 'then'-Statement triggered an Indent even tough the line got continued with ':'.
Edited Test for IfThenElseOnSameLine to contain valid VBA Code and check #5929

@rubberduck-vba-releasebot
Copy link
Member

Rubberduck.SmartIndenter/LogicalCodeLine.cs Outdated Show resolved Hide resolved
Copy link
Member

@retailcoder retailcoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a typo needs fixing

awb95 and others added 2 commits August 20, 2022 17:36
Fix typo

Co-authored-by: Mathieu Guindon <retailcoder@gmail.com>
Fix typo

Co-authored-by: Mathieu Guindon <retailcoder@gmail.com>
@rubberduck-vba-releasebot
Copy link
Member

@rubberduck-vba-releasebot
Copy link
Member

@retailcoder retailcoder merged commit 5ff67f4 into rubberduck-vba:next Aug 21, 2022
@awb95 awb95 deleted the dev-5929-Indent_Single_Line_If_then_Colon branch August 23, 2022 19:38
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.

Auto-indent doesn't account for shortcut if with colon
3 participants