diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-01-12 20:52:22 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-01-12 21:00:09 +0200 |
| commit | aa3b4c668e00815c5885698887bb2412f408aced (patch) | |
| tree | 4cddfd597fdc595936dadb1c637029a5919dbe07 /src/libsyntax/parse | |
| parent | 249b5c0b4ae2451e7e2987704879e94f8f4e9cfc (diff) | |
| download | rust-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.rs | 1 |
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('[')) } |
