bramp / js-sequence-diagrams

Draws simple SVG sequence diagrams from textual representation of the diagram
https://bramp.github.io/js-sequence-diagrams/
BSD 2-Clause "Simplified" License
7.8k stars 1.08k forks source link

Add support for WebSequenceDiagrams title syntax #201

Closed MasonM closed 5 years ago

MasonM commented 5 years ago

In WebSequenceDiagrams, title messages aren't delimited by a :. This adds support for that using an exclusive start condition in the JISON grammar, while preserving backwards compatibility. I also added a couple tests.

I didn't commit the generated dist/*.js files so this is easier to review. Let me know if I should push those up.

MasonM commented 5 years ago

Here's the new railroad diagam: statement

MasonM commented 5 years ago

@bramp Thanks for the quick review! I entered https://github.com/bramp/js-sequence-diagrams/pull/203 to update the RR diagram. Let me know if you need anything else.