Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

VB indentation incorrect when 'Next' is used as IdentifierOrKeyword #222

Open
@dgrunwald

Description

@dgrunwald

SD-1891, originally created on 2/29/2012 15:18:13 by Daniel Grunwald

The following code is indented incorrect when pressing Ctrl+I:

Public Class NewClass
    Sub Test(rnd As Random)
        rnd.Next()
    End Sub
End Class

The indentation logic incorrectly assumes that 'Next' indicates a block
end. Escaping the keyword "rnd.Next" works around the issue.
The indentation logic should ignore keywords if they occur after a dot
(IdentifierOrKeyword production in the grammar)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions