#553 Perl Language Mode Bug

release
open-accepted
nobody
None
3
2006-10-07
2006-10-06
B. Tyrrell
No

The Perl language mode does not recognize escaped pound
signs, i.e. "\#" within strings or matching
expressions. For example, if I have a code fragment:

elsif (/^s*\#IFDEF/) {

the # is treated by nedit as the start of a comment,
and the delimiter matching and syntax highlighting
breaks from that point.

It looks like I will be stuck using emacs for the time
being.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Actually it doesn't recognize the regexp itself. use

    elsif ( $_ =~ /^s*\#IFDEF/) {

    and it'll work. As you know, Only Perl Can Parse Perl...

     
  • Thorsten Haude

    Thorsten Haude - 2006-10-07

    Logged In: YES
    user_id=119143

    >It looks like I will be stuck using emacs for the time being.

    DAMN! Another high-paying customer who switches over to the
    competition! If this continues I don't think we will be
    profitable for much longer.

     
  • Thorsten Haude

    Thorsten Haude - 2006-10-07
    • labels: 355502 -->
    • milestone: 103147 --> release
    • priority: 5 --> 3
    • status: open --> open-accepted
     
  • B. Tyrrell

    B. Tyrrell - 2006-10-09

    Logged In: YES
    user_id=1615166

    If I wanted to type the "$_=" then why would I be using Perl?

     

Log in to post a comment.