zargony / atom-language-rust

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

fn definitions can contain semicolons #143

Open TheEdward162 opened 5 years ago

TheEdward162 commented 5 years ago

Current grammar doesn't allow semicolons in function definitions. This leads to the following highlighting errors:

2019-03-10_16-14-44

Since foo ends with the semicolon in the first parameter, the inline param2 impl is treated as a normal impl block and doesn't end until a curly open brace.

When defining Traits which often don't contain function implementations (and therefore don't contain open curly braces) this gets really annoying.