Skip to content

Commit aa3b4c6

Browse files
committed
re-instate comment that was mysteriously disappeared
1 parent 249b5c0 commit aa3b4c6

File tree

1 file changed

+1
-0
lines changed
  • src/libsyntax/parse/lexer

1 file changed

+1
-0
lines changed

src/libsyntax/parse/lexer/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,7 @@ impl<'a> StringReader<'a> {
14671467

14681468
fn peeking_at_comment(&self) -> bool {
14691469
(self.curr_is('/') && self.nextch_is('/')) || (self.curr_is('/') && self.nextch_is('*')) ||
1470+
// consider shebangs comments, but not inner attributes
14701471
(self.curr_is('#') && self.nextch_is('!') && !self.nextnextch_is('['))
14711472
}
14721473

0 commit comments

Comments
 (0)