Members with a name that is a single-character - where that character appears as the last character of a String are being identified as Code references, not String references #19
Describe the bug
Members with a name that is a single-character - where that character appears as the last character of a String are being identified as Code references, not String references
To Reproduce
Steps to reproduce the behavior:
Add code, below
Position code on the declaration for 'a'
Click on 'References for code at cursor'
The 'a' in the first of the 3 Debug.Print lines is identified as being a Code type reference (the other two as a String type reference)
Sub Foo()
Dim a As String
Debug.Print "--a"
Debug.Print "-a-"
Debug.Print "a--"
End Sub
Expected behavior
The 'a' in all 3 Debug.Print lines should be identified as being a String type reference)
Frequency of bug
Every time.
Please complete the following information:
VBE_Extras v1.4.2.0 [Debug], build 23 Nov 2023 15:31:13
LGF: v2.2.0.0
LGS: v3.1.9.0
LFF: v4.0.0.0
VEH: v20230831.05
.NET Framework 4.8.9181.0
CLR: v4.0.30319
Microsoft Windows 10.0.19045 : X64
Debugger attached
Dev device
Excel 365 (16.0, 17029, WIN64, VBA7)
VBE 7.01.1131
UI Lang: en-US (menu names English)
Host: excel.exe v16.0.17029.20028
Exp: S-GET, S-CCAS, RAM
Describe the bug Members with a name that is a single-character - where that character appears as the last character of a String are being identified as Code references, not String references
To Reproduce Steps to reproduce the behavior:
Expected behavior The 'a' in all 3 Debug.Print lines should be identified as being a String type reference)
Frequency of bug Every time.
Please complete the following information: VBE_Extras v1.4.2.0 [Debug], build 23 Nov 2023 15:31:13 LGF: v2.2.0.0 LGS: v3.1.9.0 LFF: v4.0.0.0 VEH: v20230831.05 .NET Framework 4.8.9181.0 CLR: v4.0.30319 Microsoft Windows 10.0.19045 : X64 Debugger attached Dev device Excel 365 (16.0, 17029, WIN64, VBA7) VBE 7.01.1131 UI Lang: en-US (menu names English) Host: excel.exe v16.0.17029.20028 Exp: S-GET, S-CCAS, RAM