Skip to content

State diagram: syntax errors in the state keyword are not checked properly. #7091

@jonathanpoelen

Description

@jonathanpoelen

Description

If there are multiple transitions between state and {, only the last one is used rather than returning an error.

Steps to reproduce

stateDiagram-v2
state only the last word is taken into account {
    X
}

Screenshots

Image

Code Sample


Setup

  • Mermaid version: 11.12.0
  • Browser and Version: Firefox 143.0.3

Suggested Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions