I often use Comment Line (Command-/) to add and remove comments. I noticed that if I have a shell script snippet like this:
# Comment
then Comment Line removes the comment. But if the snippet looks like this:
#Comment
then Comment Line adds yet another comment ("# #Comment"). Is this a bug? I checked the Ruby code for the command in the Bundle Editor but I didn't see anything wrong.
Trevor
On 23/2/2006, at 8:46, Trevor Harmon wrote:
then Comment Line adds yet another comment ("# #Comment"). Is this a bug? I checked the Ruby code for the command in the Bundle Editor but I didn't see anything wrong.
The problem is that the comment start marker is set to “# ”, i.e. including the space.
It might be good to modify the toggle comment script to strip whitespace from the comment markers and re-check, or something like that.