john-tvh / VBE_Extras

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

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

Closed john-tvh closed 10 months ago

john-tvh commented 10 months ago

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:

  1. Add code, below
  2. Position code on the declaration for 'a'
  3. Click on 'References for code at cursor'
  4. 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

john-tvh commented 10 months ago

Fixed in release 1.4.3.0