The @pause/@unpause is GREAT! May we have some syntactic sugar?
Could it be possible to have a one-line statement, for example @append ... as a shortcut for @unpause ... @pause on the same line?
This would come in handy for such inline documentation of a FSM :
/// My FSM looks like this:
/// @startuml{myfsm.png}
/// title My FSM
/// @pause
enum {
// @append state AA
STATE_AA,
// @append state BB
STATE_BB,
};
struct fsm my_fsm = {
// @append [*] --> AA: Event 1
{ STATE_ENRTY, EVENT_1, STATE_AA },
// @append AA --> BB: Event 3
{ STATE_AA, EVENT_3, STATE_BB },
// and so on with a bunch of transitions...
};
/// @unpause
/// @enduml
Best Regards