Skip to content

rust highlights: only the last identifier in attribute macros gets highlighted #13291

@lovelymono

Description

@lovelymono

Summary

When using attribute macros, such as #[warn(...)], only the last identifier gets highlighted with @function.macro.

image

#![warn(clippy::std_instead_of_alloc, clippy::std_instead_of_core, clippy::alloc_instead_of_core)]

In this case, ideally only std_instead_of_alloc, std_instead_of_core and alloc_instead_of_core would get highlighted, without highlighting clippy, but highlighting all identifiers would also be fine.

Alternatively, not highlighting anything would also look good.

Reproduction Steps

Not applicable?

Helix log

Not applicable.

Platform

Linux

Terminal Emulator

ghostty-1.1.3

Installation Method

nix build from source

Helix Version

helix 25.01.1 (29789f2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions