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
Conversation
…on-null for modules, which introduced (another) bug in SynchronizeAttributesQuickFix (WIP)
@@ -303,15 +303,15 @@ lastLetter : unrestrictedIdentifier; | |||
doLoopStmt : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MDoerner thoughts?
caseElseClause? | ||
END_SELECT | ||
(statementLabelDefinition? whiteSpace? caseClause)* | ||
statementLabelDefinition? whiteSpace? caseElseClause? |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
closes #3216.