mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
InoToCpp: add ':' to arguments regexp (#4586)
InoToCpp: allow ':' in arguments
This commit is contained in:
@ -30,7 +30,7 @@ class InoToCPPConverter:
|
|||||||
(?:template\<.*\>\s*)? # template
|
(?:template\<.*\>\s*)? # template
|
||||||
([a-z_\d\&]+\*?\s+){1,2} # return type
|
([a-z_\d\&]+\*?\s+){1,2} # return type
|
||||||
([a-z_\d]+\s*) # name of prototype
|
([a-z_\d]+\s*) # name of prototype
|
||||||
\([a-z_,\.\*\&\[\]\s\d]*\) # arguments
|
\([a-z_:,\.\*\&\[\]\s\d]*\) # arguments
|
||||||
)\s*(\{|;) # must end with `{` or `;`
|
)\s*(\{|;) # must end with `{` or `;`
|
||||||
""",
|
""",
|
||||||
re.X | re.M | re.I,
|
re.X | re.M | re.I,
|
||||||
|
Reference in New Issue
Block a user