Fix preprocessor for Arduino sketch when function returns certain type // Resolve #1683

This commit is contained in:
Ivan Kravets
2018-06-15 15:55:17 +03:00
parent 389783adae
commit c055ed4850
2 changed files with 3 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ class InoToCPPConverter(object):
PROTOTYPE_RE = re.compile(
r"""^(
(?: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_,\.\*\&\[\]\s\d]*\) # arguments
)\s*\{ # must end with {