zargony / atom-language-rust

Rust language support in Atom - LOOKING FOR MAINTAINER, see #144
MIT License
116 stars 33 forks source link

Fix where on struct declarations #137

Open GraemeWilde opened 6 years ago

GraemeWilde commented 6 years ago

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.

zargony commented 5 years ago

Nice work, thanks!

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

GraemeWilde commented 5 years ago

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.