[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/ebn/krazy/plugins
From: Alex Merry <huntedhacker () tiscali ! co ! uk>
Date: 2007-05-20 10:02:30
Message-ID: 1179655350.977696.29067.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 666558 by alexmerry:
And don't be confused by the keyword "struct" in function arguments,
either.
M +6 -1 dpointer
--- trunk/KDE/kdesdk/ebn/krazy/plugins/dpointer #666557:666558
@@ -258,7 +258,12 @@
sub endClass {
my($l,$lc) = @_;
return 0 if ($l !~ m/^[[:space:]]*}[[:space:]]*;/);
- return 0 if (&searchBackWithStop('[[:space:]](enum|struct)[[:space:]]',$lc-1,30,'^[ \
[:space:]]*class[[:space:]]*;|^[[:space:]]*}[[:space:]]*;|^[[:space:]]*struct.*;')); \
+ # This is getting ridiculous + # TODO: do it the other way around: when we get to \
an opening enum or struct + # declaration in a private: section, skip forward \
to the end + # but be wary of things like enum { foo, bar, foobar };
+ # (and nested structs?)
+ return 0 if (&searchBackWithStop('^[[:space:]]*(enum|struct)[[:space:]]',$lc-1,30,' \
^[[:space:]]*class[[:space:]]*;|^[[:space:]]*}[[:space:]]*;|^[[:space:]]*struct.*;'));
print "($lc) End Class $CNAME ($l)\n" if ($debug);
return 1;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic