re-instate comment that was mysteriously disappeared

This commit is contained in:
Tshepang Lekhonkhobe 2016-01-12 20:52:22 +02:00
parent 249b5c0b4a
commit aa3b4c668e

View file

@ -1467,6 +1467,7 @@ impl<'a> StringReader<'a> {
fn peeking_at_comment(&self) -> bool {
(self.curr_is('/') && self.nextch_is('/')) || (self.curr_is('/') && self.nextch_is('*')) ||
// consider shebangs comments, but not inner attributes
(self.curr_is('#') && self.nextch_is('!') && !self.nextnextch_is('['))
}