Fix vector regex in parser (#347)

This commit is contained in:
Viktor Oreshkin 2017-10-16 20:19:16 +03:00 committed by Lonami
parent 27728be242
commit 1b71c6fbf1

View File

@ -222,7 +222,7 @@ class TLArg:
self.type = flag_match.group(2)
# Then check if the type is a Vector<REAL_TYPE>
vector_match = re.match(r'vector<(\w+)>', self.type, re.IGNORECASE)
vector_match = re.match(r'[Vv]ector<([\w\d.]+)>', self.type)
if vector_match:
self.is_vector = True