For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > May 2005 > (Ilya?) cperl-mode.el and *unescaped* "/" within char-classes?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author (Ilya?) cperl-mode.el and *unescaped* "/" within char-classes?
David Combs

2005-05-29, 3:58 am


Subject: (Ilya?) cperl-mode.el and *unescaped* "/" within char-classes?


(Oh, I'm using emacs 22.0.50.1 (cvs version).

QUESTION -- with your very most up-to-date version, what happens
when you try this:

In either of the following two lines of perl, remove the backslash
before the fwd-slashs, and cperl-mode.el gets .

(eg colors change, won't indent correctly, etc).



next if ( $line !~ qr!^([a-zA-Z\/.0-9]+)$! ); #debug

next if ( $line !~ qr!^([a-zA-Z\/.0-9]+):([0-9]+):(.*)$! ); #debug
# |||foo.bar:1234:now is the time.|||



If, instead, everything works ok, please let me know, and also
tell me how to get the cperl-mode.el that you just used.

Thanks!

David


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com