diff --git a/lib/libesp32/berry/tools/coc/coc_parser.py b/lib/libesp32/berry/tools/coc/coc_parser.py index 28bdfcdd7..c5603ebb7 100644 --- a/lib/libesp32/berry/tools/coc/coc_parser.py +++ b/lib/libesp32/berry/tools/coc/coc_parser.py @@ -104,7 +104,7 @@ class coc_parser: return r[0] def parse_object(self): - self.text = re.sub("\s+//.*?$", "", self.text, flags=re.MULTILINE) # remove trailing comments + self.text = re.sub(r"\s+//.*?$", "", self.text, flags=re.MULTILINE) # remove trailing comments while True: obj = self.parse_block() self.objects.append(obj)