mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Added support for templates with array parameters
This commit is contained in:
parent
bc44a652b9
commit
67fc66d066
@ -97,7 +97,7 @@ my $template_def = qr/template\s* # keyword template
|
||||
\s+[_A-Za-z]\w*\s* # class name
|
||||
/sx ;
|
||||
my $template_var_def = qr/(?:\:\:)?[_A-Za-z][:\w]*\s* # template name
|
||||
<[\w\s\*,:<>]*>\s* # template parameters
|
||||
<[\w\s\*,:<>\[\]]*>\s* # template parameters
|
||||
[_A-Za-z]\w*\s*(?:[{=].*?)?; # var name ;
|
||||
/sx ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user