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

Channel tuples not highlighted correctly

Open nathansizemore opened this issue 9 years ago • 2 comments

When creating a channel:

let (tx, rx): (Sender<Vec<u8>>, Receiver<Vec<u8>>) = channel();

The brackets are not highlighted the same. Sender's are blank while the Receiver's get highlighted.

screen shot 2015-08-27 at 10 30 44 am

nathansizemore avatar Aug 27 '15 14:08 nathansizemore

Seems like the Receiver's type params are not recognized and classified as operators instead.

zargony avatar Sep 14 '15 20:09 zargony

With fd5447b, sender and receiver types are now highlighted the same. But they're mistakenly recognized as operators since we still have incomplete syntax rules for type hints in let statements.

zargony avatar Sep 14 '15 23:09 zargony