diff --git a/src/code_.py b/src/code_.py index 5db4f1b98ceb70eadd4909a4bee35bb15186ecc7..6e459133f061940f008f5d4373ed30fd80c41629 100644 --- a/src/code_.py +++ b/src/code_.py @@ -16,6 +16,7 @@ class Code: #I do this just to avoid out of file problems later on self.code = '\n'+self.code+'\n' self.code_wo_comments = remove_comments(self.code) + self.code_wo_comments = re.sub(constant.DOUBLE_BACKSLAPSH_JUMP, ' ', self.code_wo_comments) self.code_wo_comments = re.sub(constant.BACKSLAPSH_JUMP, ' ', self.code_wo_comments) self.code_wo_comments = self.code_wo_comments.replace("||", "$OR$") diff --git a/src/constant.py b/src/constant.py index a53afeee551f554076e5f4bbf19115cf3ca6ba83..c8a56f6f8d6c8c4270ae7c1be9d3ca1dfc2276a8 100644 --- a/src/constant.py +++ b/src/constant.py @@ -75,6 +75,7 @@ HEADER_FUNCTION = r"(def)\s*(\w+)\s*\([^,)]*(,[^,)]+)*\)\s*{" # GENERAL #-------------------------- +DOUBLE_BACKSLAPSH_JUMP = r"\\\\\s*\n\s*" BACKSLAPSH_JUMP = r"\\\s*\n\s*" JUMP_DOT = r"\s*\n\s*\." NUMBER = r"\d+"