Skip to content

Error in highlights on function/sub arguments #60

@jvaldiviezo9

Description

@jvaldiviezo9

Describe the bug
Just declare a Function/Sub and add an underscore to arguments.

To Reproduce
We can just use the below sample function

Code

function simple_bug_test(test_input As Range)
    
    Dim cell As Range
    Dim arr() As Variant
    
    For Each cell In test_input
    
        If IsDate(cell.Value) Then
        
            Call AddElement(arr, cell.Value)
        
        End If
    
    Next cell
    
    simple_bug_test = Application.WorksheetFunction.transpose(arr)

End Function

Expected behavior
The arguments should have the same highlight regardless if it has an underscore.
This should work as well on Sub declarations.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions