Skip to content

Regression in incomplete_tag #512

Closed
@Keno

Description

@Keno

On JuliaSyntax master:

julia> s = "CompletionFoo.test(1, 1, "
"CompletionFoo.test(1, 1, "

julia> Base.incomplete_tag(Meta.parse(s, raise=false, depwarn=false))
:none

vs Base:

julia> Base.incomplete_tag(Meta.parse(s, raise=false, depwarn=false))
:other

I looked into adjusting the tag selector a bit, but couldn't come up with a good version that also distinguished [x (with space), [x) and ( and ( , so there may need to be some adjustment to the source-location representation itself. @c42f can you take a look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions