Fix template regex in convert_swig

Fixes #999
This commit is contained in:
Derek Bankieris 2020-05-15 15:12:17 -05:00
parent 02c5799550
commit 0a5a202053
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
%define %trick_cast_as(TYPE, NAME)
%inline %{
/* caseAs##NAME casts incoming ptrs as the target type. Takes incoming object and tests if it
/* castAs##NAME casts incoming ptrs as the target type. Takes incoming object and tests if it
is a compatible type, a void *, or an integer (raw pointer value). If it is any of these
types it returns the incoming value as a pointer to the outgoing type. The integer
conversion is used by the input processor to associate named allocations in the

View File

@ -88,7 +88,7 @@ my $class_def = qr/(?:class|struct)\s* # keyword class or st
(?:\{|:(?!\:)) # { or punctuator :
/sx ;
my $template_def = qr/template\s* # keyword template
<[^>]+>\s* # template parameters
<.*?>\s* # template parameters
(?:class|struct) # keyword class or struct
\s+[_A-Za-z]\w*\s* # class name
/sx ;