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

Parser Fix for LineNumberLovers #3217

Merged
merged 9 commits into from Aug 3, 2017
Merged

Conversation

retailcoder
Copy link
Member

closes #3216.

@@ -303,15 +303,15 @@ lastLetter : unrestrictedIdentifier;
doLoopStmt :
Copy link
Member Author

Choose a reason for hiding this comment

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

@MDoerner thoughts?

@retailcoder retailcoder merged commit 7d9584d into rubberduck-vba:next Aug 3, 2017
caseElseClause?
END_SELECT
(statementLabelDefinition? whiteSpace? caseClause)*
statementLabelDefinition? whiteSpace? caseElseClause?
Copy link
Contributor

Choose a reason for hiding this comment

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

Does thin interfere with the quickfixes for the empty if block and empty else block inspections?

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, very good question. needs a test.

Copy link
Member Author

Choose a reason for hiding this comment

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

It shouldn't, actually - these aren't counted as executable ststements. Need to check if it interferes with the quickfix though...

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, I put the comment at the wrong spot.

END_IF
(statementLabelDefinition? whiteSpace? elseIfBlock)*
(statementLabelDefinition? whiteSpace? elseBlock?)
statementLabelDefinition? whiteSpace? END_IF
Copy link
Contributor

Choose a reason for hiding this comment

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

This is where my first comment should have gone. The problem I see here is that the line number is not part of the elseif block or else block. That might cause problems with the quickfixes.

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.

Parse Errors seem to be associated with line numbers on IF blocks
2 participants