Fix comments stripping

This commit is contained in:
Ivan Kravets
2015-07-30 14:37:46 +03:00
parent 3813614d31
commit e43635bf9b

View File

@ -22,7 +22,7 @@ class InoToCPPConverter(object):
DETECTMAIN_RE = re.compile(r"void\s+(setup|loop)\s*\(", re.M | re.I)
STRIPCOMMENTS_RE = re.compile(r"(/\*.*?\*/|(^|\s+)//[^\r\n]*$)",
STRIPCOMMENTS_RE = re.compile(r"(/\*.*?\*/|^\s*//[^\r\n]*$)",
re.M | re.S)
def __init__(self, nodes):