InoToCpp: add ':' to arguments regexp (#4586)

InoToCpp: allow ':' in arguments
This commit is contained in:
Max Prokhorov
2023-04-07 22:58:08 +03:00
committed by GitHub
parent faff0fb56c
commit 71bb84f3f2

View File

@ -30,7 +30,7 @@ class InoToCPPConverter:
(?:template\<.*\>\s*)? # template
([a-z_\d\&]+\*?\s+){1,2} # return type
([a-z_\d]+\s*) # name of prototype
\([a-z_,\.\*\&\[\]\s\d]*\) # arguments
\([a-z_:,\.\*\&\[\]\s\d]*\) # arguments
)\s*(\{|;) # must end with `{` or `;`
""",
re.X | re.M | re.I,