mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 14:07:51 +00:00
Corrected regex to match classes that don't inherit #332
This commit is contained in:
parent
0ba68e40aa
commit
73816bbd9a
@ -518,7 +518,7 @@ sub handle_sim_class ($$$$) {
|
||||
|
||||
# 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)/ ;
|
||||
($class_name, $inherit_class) = $s =~ /class\s+(\S+)\s*(?::\s*public\s*(.*\S))?/ ;
|
||||
|
||||
$template_args = $full_template_args ;
|
||||
$template_args =~ s/class|typename//g ;
|
||||
|
Loading…
Reference in New Issue
Block a user