Fix bug with auto-conversation from Arduino *.ino to *.cpp

This commit is contained in:
Ivan Kravets
2014-08-09 17:19:08 +03:00
parent a14a724836
commit 71c66b9171
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Release History
---------
* Fixed an issue ``ImportError: No module named platformio.util`` (`issue #9 <https://github.com/ivankravets/platformio/issues/9>`_)
* Fixed bug with auto-conversation from Arduino \*.ino to \*.cpp
0.5.0 (2014-08-04)
------------------

View File

@ -177,7 +177,7 @@ def ConvertInotoCpp(env):
r"""^(
(?:\s*[a-z_\d]+){1,2} # return type
\s+[a-z_\d]+\s* # name of prototype
\([a-z_,\.\*\&\s\d]+\) # args
\([a-z_,\.\*\&\[\]\s\d]*\) # args
)\s*\{ # must end with {
""",
re.X | re.M | re.I