all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is this a bug in cperl mode
@ 2003-02-10  3:20 Harry Putnam
  2003-02-10  9:29 ` Kai Großjohann
  0 siblings, 1 reply; 19+ messages in thread
From: Harry Putnam @ 2003-02-10  3:20 UTC (permalink / raw)



I get several kinds of goofy behavior from cperl mode on this snippet
of code.  The syntax hylight breaks down on last section too.  Makes
cperl pretty useless for what its designed for. Maybe its local guff
causing it but starting emacs -q -no-site-file doesn't seem to help.

And perl, even in strict mode, has no problem with it.

emacs perl-mode doesn't complain either.

In cperl-mode:
Try C-x h C-M \ on this code or just navigate around in it,
particularly at if($opt_s).

  #!/usr/local/bin/perl -w
  
  use strict;
  use vars qw($opt_d $opt_s);
  use Getopt::Std;
  my $optstr ="ds";
  getopts($optstr);
  
  if($opt_d){
    print "an -d was used\n";
  
  }
  
  if($opt_s){
     print "an -s was used\n";
  }

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2003-02-20 20:26 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-10  3:20 Is this a bug in cperl mode Harry Putnam
2003-02-10  9:29 ` Kai Großjohann
2003-02-10 10:14   ` Daniel Pfeiffer
2003-02-11  1:23     ` Unknown
2003-02-11  2:04       ` Unknown
2003-02-10 15:50   ` Harry Putnam
2003-02-10 16:11     ` Harry Putnam
2003-02-10 21:07       ` Daniel Pfeiffer
2003-02-16  1:30         ` Ilya Zakharevich
2003-02-16  1:28       ` Ilya Zakharevich
2003-02-10 21:26     ` Daniel Pfeiffer
2003-02-11 21:21   ` Daniel Pfeiffer
2003-02-16  2:56     ` Ilya Zakharevich
2003-02-17  8:04       ` Daniel Pfeiffer
2003-02-17 19:33         ` Ilya Zakharevich
2003-02-17  7:56     ` CPerl mode v5.0 Ilya Zakharevich
2003-02-17 19:50       ` Ilya Zakharevich
2003-02-20  0:00         ` Daniel Pfeiffer
2003-02-20 20:26           ` Ilya Zakharevich

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.