Merge pull request #469 from DavidHammen/convert_swig_struct_patch

Fixes #468
This commit is contained in:
Alex Lin 2017-08-21 10:14:33 -05:00 committed by GitHub
commit a40381f9e1

View File

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