atom-language-rust icon indicating copy to clipboard operation
atom-language-rust copied to clipboard

Fix where on struct declarations

Open Xt-8 opened this issue 6 years ago • 2 comments

Add dedicated struct declaration that fixes where clause at the end of tuple structs. Also adds type highlighting to where on normal structs to match where on impl.

#131

Edit:

Also adds type highlighting to where on normal structs to match where on impl.

And by this I mean it highlights the types after a struct's where.

Xt-8 avatar Jun 26 '18 04:06 Xt-8

Nice work, thanks!

Would this also apply to enum declarations? As far as I know, they can have where statements as well?

zargony avatar Aug 30 '18 09:08 zargony

It was for fixing where on tuple struct specifically. I think the where clause works on enums already, and I don't believe there is a tuple enum. I haven't been using rust for a bit however, so I can't be sure.

Xt-8 avatar Sep 09 '18 23:09 Xt-8