jacktasia / dumb-jump

an Emacs "jump to definition" package for 50+ languages
GNU General Public License v3.0
1.57k stars 150 forks source link

Failing to find some Rust enums #444

Open mrcnski opened 10 months ago

mrcnski commented 10 months ago

As the title says. I believe it fails to find enums where some variants contain braces, like Concluded in this example:

pub enum FromPool {
    /// The given worker was just spawned and is ready to be used.
    Spawned(Worker),

    /// The given worker either succeeded or failed the given job.
    Concluded {
        /// A key for retrieving the worker data from the pool.
        worker: Worker,
        /// Indicates whether the worker process was killed.
        rip: bool,
        /// [`Ok`] indicates that compiled artifact is successfully stored on disk.
        /// Otherwise, an [error](PrepareError) is supplied.
        result: PrepareResult,
    },

    /// The given worker ceased to exist.
    Rip(Worker),
}