Skip to content

[C] Sublime doesn't index a function name on its own line preceded with an enumeration return type #4104

@eepp

Description

@eepp

Expected behavior

Expecting mix() to be indexed, that is, to have the entity.name.function.c scope.

enum meow {
    X, Y, Z,
};

enum allo
mix()
{
    return Z;
}

Actual behavior

mix() is not indexed.

The mix part has the meta.enum.c scope.

However, it works as expected like this:

enum meow {
    X, Y, Z,
};

enum allo mix()
{
    return Z;
}

Steps to reproduce

  1. In a C file, write:

    enum meow {
        X, Y, Z,
    };
    
    enum allo
    mix()
    {
        return Z;
    }
    
  2. Try to go to the mix symbol.

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