Fix issue with pointer (char* myfunc()) while converting from *.ino to *.cpp // Resolve #506

This commit is contained in:
Ivan Kravets
2016-02-11 00:43:52 +02:00
parent 3484c41b64
commit 851f7db825
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@ PlatformIO 2.0
(`IDE issue #34 <https://github.com/platformio/platformio-atom-ide/issues/34>`_)
* Fixed unable to link C++ standard library to Espressif platform build
(`issue #503 <https://github.com/platformio/platformio/issues/503>`_)
* Fixed issue with pointer (``char* myfunc()``) while converting from ``*.ino``
to ``*.cpp``
(`issue #506 <https://github.com/platformio/platformio/issues/506>`_)
2.8.3 (2016-02-02)
~~~~~~~~~~~~~~~~~~

View File

@ -27,7 +27,7 @@ class InoToCPPConverter(object):
PROTOTYPE_RE = re.compile(
r"""^(
(\s*[a-z_\d]+){1,2} # return type
(\s*[a-z_\d]+\*?){1,2} # return type
(\s+[a-z_\d]+\s*) # name of prototype
\([a-z_,\.\*\&\[\]\s\d]*\) # arguments
)\s*\{ # must end with {