You are not logged in.
Pages: 1
Hello all,
Suppose you have a little snippet of Perl code like such:
sub foo # some comment with keywords for die and or not
{
print "In sub foo!\n";
}
The comment in the sub line is not treated (i.e. highlighted) as a comment. Rather, it is highlighted as regular source code. Seems like a bug, but before reporting it to the maintainer, I wanted to see if anyone else shared the same issue.
To clarify: this refers only to highlight in vim, running the code works as expected. And I took care to see if this could be the results of my settings: the problem seems in fact, to be with the perl.vim file (in my system: /usr/share/vim/vim73/syntax/perl.vim).
So, can anyone reproduce this behaviour?
Offline
Yes, same for me. (I don't write perl, so I don't have anything special installed for it other than the default /usr/share/vim73/syntax/perl.vim.)
Last edited by frabjous (2010-10-01 21:50:00)
Offline
Is it a valid comment in perl?
Offline
Is it a valid comment in perl?
I've done it countless times, and never got any warnings or errors because of it, so I assume it is valid.
Offline
Yes, same for me. (I don't write perl, so I don't have anything special installed for it other than the default /usr/share/vim73/syntax/perl.vim.)
Hum, ok. I'll report it to the maintainer then.
Offline
Pages: 1