Updates for entity rules:

1)  Fixed checking of spaces before end keyword for entities
This commit is contained in:
Jeremiah Leary 2017-08-28 20:57:51 -05:00
parent d30a70b098
commit 9a02eebd4e
2 changed files with 2 additions and 1 deletions

View File

@ -396,6 +396,7 @@ class rule_018(entity_rule):
for iLineNumber, sLine in enumerate(lines):
if fEntityFound:
if re.match('^\s*end', sLine.lower()):
fEntityFound = False
if not re.match('^end', sLine.lower()):
lFailureLines.append(iLineNumber + 1)
if re.match('\s*entity', sLine.lower()):

View File

@ -105,5 +105,5 @@ end ENTITY1
architecture RTL of ENTITY1 is
begin
end rtl;
end rtl;