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 error on Excel specific VBA syntax #2129

Closed
ThunderFrame opened this issue Jul 24, 2016 · 2 comments
Closed

Parser error on Excel specific VBA syntax #2129

ThunderFrame opened this issue Jul 24, 2016 · 2 comments
Labels
bug Identifies work items for known bugs parse-tree-processing status-norepro The issue could not be reproduced. If there is a stable repro, please add that as a new comment.

Comments

@ThunderFrame
Copy link
Member

ThunderFrame commented Jul 24, 2016

This VBA assigns a Variant, 1-based 2D array, but only in Excel.

Dim array2D As Variant

array2D = [{1,2,3;4,5,6;7,8,9}]
@Hosch250 Hosch250 added bug Identifies work items for known bugs parse-tree-processing labels Jul 25, 2016
@Hosch250
Copy link
Member

No repro. Rubberduck parses this just fine:

Sub foo()
    Dim array2D As Variant
    array2D = [{1,2,3;4,5,6;7,8,9}]
End Sub

@retailcoder
Copy link
Member

retailcoder commented Jan 6, 2017

Closing because no repro, but it should be noted that this trips a number of false positive inspection results:

  • Consider renaming variable '[{1,2,3;4,5,6;7,8,9}]'
  • Variable '[{1,2,3;4,5,6;7,8,9}]' is not declared
  • Variable '[{1,2,3;4,5,6;7,8,9}]' is never assigned

Rubberduck interprets the contents of the square brackets as an identifier with a funky name.

@retailcoder retailcoder added the status-norepro The issue could not be reproduced. If there is a stable repro, please add that as a new comment. label Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies work items for known bugs parse-tree-processing status-norepro The issue could not be reproduced. If there is a stable repro, please add that as a new comment.
Projects
None yet
Development

No branches or pull requests

3 participants