-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Closed
Labels
Graph: StateStatus: ApprovedIs ready to be worked onIs ready to be worked onType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrect
Description
Proposal
Example diagram code
stateDiagram-v2
[*] --> pending : enqueued
pending --> locked : picked up by worker
locked --> completed : success
locked --> failed : unrecoverable error
locked --> pending : recoverable error<br>(ex: timeout, worker shutdown)
Expected result
Something like
stateDiagram-v2
[*] --> pending : enqueued
pending --> locked : picked up by worker
locked --> completed : success
locked --> failed : unrecoverable error
locked --> pending : recoverable error<br>(ex#58; timeout, worker shutdown)
Actual behavior
Error: Error: Parse error on line 6:
...verable error<br>(ex: timeout, worker sh...
-----------------------^
Expecting 'SPACE', 'NL', 'HIDE_EMPTY', 'scale', 'COMPOSIT_STATE', 'STRUCT_STOP', 'STATE_DESCR', 'ID', 'FORK', 'JOIN', 'CHOICE', 'CONCURRENT', 'note', 'acc_title', 'acc_descr', 'acc_descr_multiline_value', 'CLICK', 'classDef', 'style', 'class', 'direction_tb', 'direction_bt', 'direction_rl', 'direction_lr', 'EDGE_STATE', got 'DESCR'
I think it would be great if there is an escape syntax similar to other diagrams, i.e., wrapping the display text by "(double quote) to prevent such problem.
Suggested example
stateDiagram-v2
[*] --> pending : enqueued
pending --> locked : picked up by worker
locked --> completed : success
locked --> failed : unrecoverable error
locked --> pending : "recoverable error<br>(ex: timeout, worker shutdown)"
Screenshots
Might be related
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Graph: StateStatus: ApprovedIs ready to be worked onIs ready to be worked onType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrect