[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    [Bug 79257] Complex Perl hashes confuse code folding
From:       Anders Lund <anders () alweb ! dk>
Date:       2004-04-07 21:02:56
Message-ID: 20040407210256.19448.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=79257      
anders alweb dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|wishlist                    |normal
             Status|UNCONFIRMED                 |ASSIGNED
      everconfirmed|0                           |1



------- Additional Comments From anders alweb dk  2004-04-07 23:02 -------
This is actually a bug.

If you paste the below code into a perl file in katepart, you will see that if the \
first hash key is a variable, it stays in the variable parsing context, no matter if \
the first key is referenecd (->) or not.

if ( $my_hash{$foo}->{$bar} ) # <- 2nd key does not matter -- we are in variable \
moode {
   # This block cannot be folded
}

if ( $my_hash{foo}->{$bar} ) # <- first key is not a variable
{
   # This block can be folded
}

I'll look into it asap.
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic