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

List:       kde-bugs-dist
Subject:    [Bug 79257] Complex Perl hashes confuse code folding
From:       Daniel Morris <daniel () tapestrycraft ! com ! au>
Date:       2005-02-28 2:20:13
Message-ID: 20050228022013.8818.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=79257         




------- Additional Comments From daniel tapestrycraft com au  2005-02-28 03:20 \
------- I'm using PerlQt which has a variable pre-assignment mechanism :

use Qt::attributes qw ( qtvar perlvar anyvar ) ;

These variables can be used in qt or in a normal perl context.

One can assign an use a has thus: 

anyvar = {}  ; #  anyvar is a hashref
anyvar = []  ; #  anyvar is an arrayref

Folding borks at a construct similar to  comment #1 ( the latest fix does not solve \
it !!)

sub test
{
	my $t="hello" ;
	tables->{$t}{'there'} ;
}

but when one adds a space thus ....

sub test
{
	my $t="hello" ;
	tables->{$ t}{'there'} ;
}

the bork goes away .



Another question about sub construction in folding :

Is there a way for allowing for 

sub test{                       # notice - no space between 'test' and '{'
	my $t="hello" ;
	tables->{$t}{'there'} ;
}

rather than 

sub test
{
	my $t="hello" ;
	tables->{$t}{'there'} ;
}

but this works ..

sub test() {
	my $t="hello" ;
	tables->{$t}{'there'} ;
}

I'm not sure if this is the right place to ask but where do I find descriptions on \
Kate code folding XML ?

Thanks


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

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