VHDL instance not found when first in architecture
If you have a VHDL architecture, with the first line being an instance, I don't believe this is correctly found.
For example:
architecture my_arch ...
-- signals
begin
This_UUT_Not_Found : Unfound
port map ( ....
I believe this is because of the way the whitespace is removed from the
file, and lines are basically broken up by semicolons. In this case,
there is no semicolon after "begin" which makes the combined line after
whitespace removal look like this:
begin This_UUT_Not_Found : Unfound port map ( ...
This is a problem because the regular expression expects only spaces before the instance, and not other characters (i.e. "^ *")
I suspect this issue can be resolved by either:
- Improving the algorithm which splits up code into lines, or
- Making the VHDL regular expressions more forgiving of what precedes the instance label.