From aa3b4c668e00815c5885698887bb2412f408aced Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Tue, 12 Jan 2016 20:52:22 +0200 Subject: re-instate comment that was mysteriously disappeared --- src/libsyntax/parse/lexer/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/parse/lexer') diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index 9f6aa4d2a78..1402b7888dd 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -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('[')) } -- cgit 1.4.1-3-g733a5