Updates for issue #182

1)  Updated test to detect generics and ports starting with "process"
  2)  Restricted classifier to look for the whole word "process"
This commit is contained in:
Jeremiah C Leary 2018-11-29 19:49:10 -06:00
parent 9658a2d2f3
commit a479b22c3d
2 changed files with 10 additions and 1 deletions

View File

@ -102,5 +102,14 @@ proc_name : process (one, two, three) is
end process PROC_NAME;
U_ENTITY1 : ENTITY1
generic map (
process1 => '1'
)
port map (
process2 => '3';
process_2 => '4'
);
end architecture ARCH;

View File

@ -10,7 +10,7 @@ def process(dVars, oLine):
def classify_process_keyword(dVars, oLine):
if re.match('^\s*process', oLine.lineLower):
if re.match('^\s*process[:|\s|$|(]', oLine.lineLower):
oLine.isProcessKeyword = True
oLine.insideProcess = True
oLine.indentLevel = dVars['iCurrentIndentLevel']