parse_s_define does not handle comments on a class definition line

Added a regular expression to remove all comments from class defnition lines.

refs #126
This commit is contained in:
Alex Lin 2015-09-22 09:17:36 -05:00
parent c6e2a4acb5
commit cab267c6c4

View File

@ -513,6 +513,9 @@ sub handle_sim_class ($$$$) {
my ($constructor_declare, $temp_content) ;
my ($job_push , $job_call, $is_dynamic_event) ;
# remove any comments on the class definition line
$s =~ s/ZZZYYYXXX(\d+)ZZZYYYXXX//esg ;
# grab the class name and the name of the class we are inheriting from
($full_template_args) = $s =~ /template\s+<([^>]+)>/ ;
($class_name, $inherit_class) = $s =~ /class\s+(\S+)\s*:\s*public\s*(.*\S)/ ;