mirror of
https://github.com/nasa/trick.git
synced 2025-02-21 01:31:25 +00:00
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:
parent
c6e2a4acb5
commit
cab267c6c4
@ -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)/ ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user