New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#line directive is messing up my comments #1177
Comments
From rick@consumercontact.comI had this comment in the middle of a program: # Province abbreviations for the provinces extracted from and I was getting warnings like Use of uninitialized value at of line 10 where of course line 10 was not where my problem was. Now, this is /^#\s*line\s+(\d+)\s*(?:\s"([^"]*)")?/ but I think it would make more sense if the filter was also anchored at /^#\s*line\s+(\d+)\s*(?:\s"([^"]*)")?$/ When I went to patch this I found a few other novelties: #!/usr/local/bin/perl -w # 25 "foo" # line 50 # line 200 -- my favourite This patch on 5.5.650 fixes all of these and passes all tests that it I don't program in C much so this code could probably be improved. Rick *** perl5.5.650/toke.c.old Mon Feb 14 11:11:38 2000 |
Migrated from rt.perl.org#2146 (status was 'resolved')
Searchable as RT2146$
The text was updated successfully, but these errors were encountered: