yangsu/sublime-vhdl — pull request #2 by alvaro-padierna (2013-11-24 16:00:54+00:00)
Title: ‘aprocess’ and ‘sprocess’ snippets grouped.

Problem description:
The ‘aproc’ (i.e. asynchronous process ) snippet is not correct, since it does
not contain the declaration of an asynchronous process (as states) but the
declaration of an synchronous process initialized by a reset signal.

Solution:
The ‘aproc’ snippet has been gouped with the ‘sproc’ under the umbrella of the
synchronous process.
Now, the ‘sproc’ snippet generates the code associated with the reset signal by
default, but this code is removed if the reset signal is removed from the
process sensitivity list during the snippet customization (via substitutions)

Flaws:
I'm using Substitutions to generate the reset code, I've been digging in the
documentation looking for a way to split the 'conditionally generated string
onto several lines; sadly I have not found a way to do it. It makes the code less
readable... sorry :-(
http://www.boost.org/doc/libs/1_44_0/libs/regex/doc/html/boost_regex/format/perl_format.html

The other flaw is the placement of the exit mark (i.e. $0) It is placed within the
reset code, but when that code is not generated (when the proc does not contain
a reset entry on its sensibility list) the exit mark places the cursor right after the
begin label. It's not a big deal, but it would be preferably to place the cursor within
the reset code or the clocked code depending of the existence of a reset signal
within the sensitivity list, sadly I've not find a way to do it.

Thanks
Álvaro