From 898f487776366dc434242110cfeebe160eb3e05b Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 20 Jan 2009 13:40:05 +0000 Subject: [PATCH] Match the ///< comments only with the third regexp git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2187 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index a50df0f4..dfcaf68f 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -96,10 +96,10 @@ def getInfos(definition): def getDefinitionBlocks(text): block = [] - block_tmp = re.findall(r"/\*{2}\s*([^*]*\*(?:[^/*][^*]*\*+)*)/\s*#define\s+(.*?)\s*?$", text, re.MULTILINE) + block_tmp = re.findall(r"/\*{2}\s*([^*]*\*(?:[^/*][^*]*\*+)*)/\s*#define\s+([^/]*?/[^/]*?)\s*?(?!/{3}<.*?)$", text, re.MULTILINE) for comment, define in block_tmp: block.append((" ".join(re.findall(r"^\s*\*?\s*(.*?)\s*?$", comment, re.MULTILINE)), define)) - block += re.findall(r"/{3}