Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equal sign "=" no longer valid in participant of sequence diagrams #6171

Open
digitalmoksha opened this issue Jan 6, 2025 · 0 comments
Open
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@digitalmoksha
Copy link

Description

In 11.4, using an = in a participant name of a sequence diagram gives an error. This used to work in 10.7.0.

Steps to reproduce

When using 10.7.0, the graph

sequenceDiagram
   x->>y=true: Transition to true

used to work.

Screenshot 2025-01-06 at 11 28 13 AM

However now with 11.4 (haven't tested any other previous 11.x versions) it gives an error

Error: Error: Parse error on line 2:
...enceDiagram x->>y=true: Transition to
----------------------^
Expecting 'NEWLINE', 'AS', ',', 'SOLID_OPEN_ARROW', 'DOTTED_OPEN_ARROW', 'SOLID_ARROW', 'BIDIRECTIONAL_SOLID_ARROW', 'DOTTED_ARROW', 'BIDIRECTIONAL_DOTTED_ARROW', 'SOLID_CROSS', 'DOTTED_CROSS', 'SOLID_POINT', 'DOTTED_POINT', 'TXT', got 'INVALID'

This seems to be a backwards compatibility bug.

Screenshots

No response

Code Sample

https://develop.git.mermaid.live/edit#pako:eNo1jcEOwjAMQ38lynn8QCV24g_gmEvUhq2CppC2EtO0f6eV4GZbfvaOPgdBh0XeTdTLJfJinEgB4HOa5-1crYmDm7GWWGNWqBlGRooTJrHEMfSBfSCEdZUkhK7LwPYgJD16j1vN1009uoFOaLktK7o7P0t37RW4_q9_6fEFLbY1fg

Setup

  • Mermaid version: 11.4
  • Browser and Version: [Chrome, Edge, Firefox]: Chrome 131.0.6778.205 macOS

Suggested Solutions

No response

Additional Context

No response

@digitalmoksha digitalmoksha added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant