From a479b22c3d64cec6ba16cdbbee5afc541beccbc4 Mon Sep 17 00:00:00 2001 From: Jeremiah C Leary Date: Thu, 29 Nov 2018 19:49:10 -0600 Subject: [PATCH] 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" --- vsg/tests/process/process_test_input.vhd | 9 +++++++++ vsg/vhdlFile/classify/process.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/vsg/tests/process/process_test_input.vhd b/vsg/tests/process/process_test_input.vhd index ae9c7b14..61e2546d 100644 --- a/vsg/tests/process/process_test_input.vhd +++ b/vsg/tests/process/process_test_input.vhd @@ -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; diff --git a/vsg/vhdlFile/classify/process.py b/vsg/vhdlFile/classify/process.py index 5e00ea46..b228ce43 100644 --- a/vsg/vhdlFile/classify/process.py +++ b/vsg/vhdlFile/classify/process.py @@ -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']