We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 249b5c0 commit aa3b4c6Copy full SHA for aa3b4c6
src/libsyntax/parse/lexer/mod.rs
@@ -1467,6 +1467,7 @@ impl<'a> StringReader<'a> {
1467
1468
fn peeking_at_comment(&self) -> bool {
1469
(self.curr_is('/') && self.nextch_is('/')) || (self.curr_is('/') && self.nextch_is('*')) ||
1470
+ // consider shebangs comments, but not inner attributes
1471
(self.curr_is('#') && self.nextch_is('!') && !self.nextnextch_is('['))
1472
}
1473
0 commit comments