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
It appears that if a one-character comment starts at the first character of a file, it is not recognized.
Languages like python are affected, since python's comments are only a single character long.
I only tested python and jsonc, issue may exist on other languages too.
Image:
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Great breakdown. This is the exact problem I am running into as well. I like to use the * tag to highlight the first line of my python files to act as a bolded document title. Any temporary or permanent solution would be welcome.
Edit: #61 seems to be the reason for it. @aaron-bond states that he made the change to prevent first line #!/bin/bash coloring, but did not make it user-configurable. It took Aaron 10 months to respond to a PR from the official VS-Code team (#351), so I'm not counting on a better implementation of #!/bin/bash ignoring in this extension. It seems the only solution is just to switch to the fork https://github.com/edwinhuish/better-comments-next.
Edit 2:
Never mind, better-comments-next is more of a compromise than a solution as it now forces you to put a space in between the tag and the comment indicator (ex: //* Highlighted commentmust now be // * Highlighted comment) as described in edwinhuish#2. This is not a solution I am interested in. I would much rather have the option to create tag exceptions than be forced to edit every single file I've ever committed to now have a space in-between // and the tag.
It appears that if a one-character comment starts at the first character of a file, it is not recognized.
Languages like python are affected, since python's comments are only a single character long.
I only tested python and jsonc, issue may exist on other languages too.
Image:
Thanks in advance!
The text was updated successfully, but these errors were encountered: