We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbf8b6b commit 0315864Copy full SHA for 0315864
src/librustc_lexer/src/lib.rs
@@ -236,7 +236,7 @@ pub enum Base {
236
/// (e.g. "#![deny(missing_docs)]").
237
pub fn strip_shebang(input: &str) -> Option<usize> {
238
debug_assert!(!input.is_empty());
239
- if !input.starts_with("#!") || input.starts_with("#![") {
+ if !input.starts_with("#!") || input.starts_with("#![") || input.starts_with("#! [") {
240
return None;
241
}
242
Some(input.find('\n').unwrap_or(input.len()))
0 commit comments