{"action":"closed","issue":{"url":"https://api.github.com/repos/knsv/mermaid/issues/247","labels_url":"https://api.github.com/repos/knsv/mermaid/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/knsv/mermaid/issues/247/comments","events_url":"https://api.github.com/repos/knsv/mermaid/issues/247/events","html_url":"https://github.com/knsv/mermaid/issues/247","id":115353084,"number":247,"title":"hypen-minus should be valid in sequence diagram alt/else/etc. descriptions","user":{"login":"gibson042","id":1199584,"avatar_url":"https://avatars.githubusercontent.com/u/1199584?v=3","gravatar_id":"","url":"https://api.github.com/users/gibson042","html_url":"https://github.com/gibson042","followers_url":"https://api.github.com/users/gibson042/followers","following_url":"https://api.github.com/users/gibson042/following{/other_user}","gists_url":"https://api.github.com/users/gibson042/gists{/gist_id}","starred_url":"https://api.github.com/users/gibson042/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gibson042/subscriptions","organizations_url":"https://api.github.com/users/gibson042/orgs","repos_url":"https://api.github.com/users/gibson042/repos","events_url":"https://api.github.com/users/gibson042/events{/privacy}","received_events_url":"https://api.github.com/users/gibson042/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-05T19:15:57Z","updated_at":"2015-11-06T06:23:23Z","closed_at":"2015-11-06T06:23:23Z","body":"Looking at [sequenceDiagram.jison](https://github.com/knsv/mermaid/blob/c211434c3832b3130f7a73d12919fd050ff17126/src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison), I see that `loop`, `opt`, `alt`, and `else` all expect to be followed by `actor` rather than less-restrictive text ([`actor`](https://github.com/knsv/mermaid/blob/c211434c3832b3130f7a73d12919fd050ff17126/src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison#L43) excludes U+002D hyphen-minus, U+003E greater-than, U+003A colon, and U+002C comma—and interestingly does _not_ exclude U+0023 number sign).\r\n\r\nThis means that perfectly harmless descriptions are rejected, e.g.:\r\n```\r\nsequenceDiagram\r\n\tA->>B: Hello\r\n\topt feels-like-responding\r\n\t\tB->>A: Hello\r\n\tend\r\n```"}}