You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my cursor is on the same line as a shebang like below:
#!/bin/bash<cursor is here># Code below...
Then pressing enter will result in this:
#!/bin/bash#!/<cursor is here># Code below...
The text was updated successfully, but these errors were encountered:
audreyseo
changed the title
Prevent from extending # comments if on a shebang
Prevent from extending # comments if current line is a shebang
Jun 21, 2017
Thanks for reporting I really appreciate your contributions.
This is the immediate result of #225. The reason for this change was that some languages and tools use a character after the comment prefix to denote different types of comments. For example Rust differentiates between //, /// and //!. For shebangs that indeed makes no sense. Feel free to add an exception and submit another PR 😃.
I think for shebangs we could even add no comment at all.
If my cursor is on the same line as a shebang like below:
Then pressing enter will result in this:
The text was updated successfully, but these errors were encountered: