rust-lang / rust-enhanced

The official Sublime Text 4 package for the Rust Programming Language
MIT License
787 stars 105 forks source link

Field attributes do not have any attribute-related scopes #500

Open detly opened 1 year ago

detly commented 1 year ago

Sublime Text Version

Sublime Text 4 (Build 4142)

Rust Enhanced Version

v2.25.0

Operating system

Ubuntu 22.10, Gnome 43.0

Expected behavior

Attributes on fields within a struct should have a scope applied to mark them as such eg.

Actual behavior

struct Magic(#[more] bool, #[more(magic)] usize);

Neither attribute has any scope applied to indicate that it's an attribute. For example, the first attribute has scopes

source.rust
meta.struct.rust
meta.struct.rust
meta.group.rust

Steps to reproduce

See code above.