#403 $? breaks syntax coloring

open
nobody
Editor (234)
5
2007-06-06
2007-06-06
Anonymous
No

This line of code breaks the syntax coloring:

my $level = ($? ? INFO : DEBUG);

It turns out that $? is the culprit.
Everything after it, for most of the module is blue...
at some point, after a ' inside a comment, it gets it's brain back.

Discussion

  • Jan Ploski

    Jan Ploski - 2007-06-06

    Logged In: YES
    user_id=86907
    Originator: NO

    Actually, the combination of $? ? is the culprit. Putting parens around $? is one workaround, as is assigning $? to a temporary variable and using that variable in the conditional...

     
  • Nobody/Anonymous

    Logged In: NO

    The same problem occurs with the $@ variable, not just the $? variable.

     
  • Nobody/Anonymous

    Logged In: NO

    The same problem occurs with the $@ variable, not just the $? variable.

    Andrew Pam <apam@internode.com.au>

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks