[Gridflow-cvs] [svn] commit: r3312 - /trunk/base/source_filter.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Mar 27 17:28:16 EDT 2008


Author: matju
Date: Thu Mar 27 17:28:16 2008
New Revision: 3312

Log:
fixed multiline implicit \classinfo in \end

Modified:
    trunk/base/source_filter.rb

Modified: trunk/base/source_filter.rb
==============================================================================
--- trunk/base/source_filter.rb (original)
+++ trunk/base/source_filter.rb Thu Mar 27 17:28:16 2008
@@ -281,7 +281,6 @@
 		#handle_classinfo if not frame.info
 		cl = frame.name
 		if fields[0]!="class" or (n>1 and fields[1]!=cl) then raise "end not matching #{where}" end
-		if /^class\s+(\w+\s+)?\{(.*)/ =~ line then $stack.push frame; handle_classinfo("{"+$2); $stack.pop end
 		$stack.push frame
 		frame.attrs.each {|name,attr|
 			type,name,default = attr.to_a
@@ -304,6 +303,7 @@
 				"return in[#{i}]->begin(argc,argv);}"
 
 		}
+		if /^class\s+(\w+\s+)?\{(.*)/ =~ line then handle_classinfo("{"+$2) end
 		$stack.pop
 	end
 	if :ruby==frame then



More information about the Gridflow-cvs mailing list