zargony / atom-language-rust

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

Three parameters break closure highlighting #45

Open nathansizemore opened 9 years ago

nathansizemore commented 9 years ago
screen shot 2015-08-18 at 3 51 33 pm
zargony commented 9 years ago

This doesn't look wrong to me? (Socket is not one of the highlighted std types)

nathansizemore commented 9 years ago

It's not the types, but the actual pipe '|'. The left one gets highlighted, but the right one does not. If there are less than 3 params, both get highlighted.

zargony commented 9 years ago

Oops - missed that, thanks. (the left pipe symbol is mistakenly classified as an operator)

zargony commented 9 years ago

With fd5447b, both pipes symbols are now classified equally. However they are still mistakenly seen as operators, which is because the rules do not include any closure syntax yet.