john-tvh / VBE_Extras

VBE Extras ... extending the VBA editor
https://www.thevbahelp.com/vbe-extras
1 stars 0 forks source link

Cannot identify declaration of Type element when there are multiple spaces between its name and the 'As' keyword #2

Closed john-tvh closed 2 years ago

john-tvh commented 2 years ago

Describe the bug Cannot identify declaration of Type element when there are multiple spaces between its name and the 'As' keyword.

To Reproduce Steps to reproduce the behavior:

  1. See example code below
  2. In the line with the Debug.Print statement, press F12 on value1 and the declaration is found ... however, press F12 on value2 and the declaration is not found with a message saying "Could not find the declaration for 'value2'"
Type MyType
    value1 As Long
    value2    As Long
End Type

Sub Foo()
    Dim t As MyType
    Debug.Print t.value1, t.value2
End Sub

Expected behavior The declaration for value2 should be found, the same as it is for value1

Please complete the following information: v0.9.1.2 [Debug], build 25 Jun 2022 15:37:43 LGF: v2.0.3.0 LGS: v2.2.7.0 LFF: v3.4.8.0 .NET Framework 4.8.4515.0 CLR: v4.0.30319 Microsoft Windows 10.0.19043 : X64 Excel 365 (16.0, 15225, WIN64, VBA7) VBE 7.01 UI Lang: en-US Host: EXCEL.EXE v16.0.15225.20288

john-tvh commented 2 years ago

Fixed in release 1.0.0.0