about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2016-01-12 20:52:22 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2016-01-12 21:00:09 +0200
commitaa3b4c668e00815c5885698887bb2412f408aced (patch)
tree4cddfd597fdc595936dadb1c637029a5919dbe07 /src/libsyntax/parse
parent249b5c0b4ae2451e7e2987704879e94f8f4e9cfc (diff)
downloadrust-aa3b4c668e00815c5885698887bb2412f408aced.tar.gz
rust-aa3b4c668e00815c5885698887bb2412f408aced.zip
re-instate comment that was mysteriously disappeared
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs1
1 files changed, 1 insertions, 0 deletions
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('['))
     }