Detect syntax mode via shebang?


I’d like to detect syntax mode via shebang, and here’s how I’m currently doing it. Would like to know if you think there’s a better way, and whether you’d be interested in a PR to the core please!



we do something similar in you can add more modes there instead of adding new function to simple.js