It loses the newline at the end of the #! line and ends up commenting out the subsequent line. Here's a repro in AST Explorer: (linked) [](https://astexplorer.net/#/gist/5dc6b166becf4490ccf9f6e2fe5ab37f/aba5f158839cf01ac25379f10e13dffe70c79e03)