From d6570b01e174a736d539e039af398b442500679c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 17 Apr 2017 08:35:17 +0200 Subject: [PATCH] misra.py: Fix loading of rule texts --- addons/misra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/misra.py b/addons/misra.py index 4c91bd968..6389de404 100644 --- a/addons/misra.py +++ b/addons/misra.py @@ -890,7 +890,7 @@ def loadRuleTexts(filename): res = re.match(r'^[ ]*(Advisory|Required|Mandatory)$', line) if res: continue - res = re.match(r'^[ ]*([A-Z].*)', line) + res = re.match(r'^[ ]*([#A-Z].*)', line) if res: global ruleTexts ruleTexts[num1*100+num2] = res.group(1)