bpruitt-goddard / vscode-mermaid-syntax-highlight

Markdown syntax support for the Mermaid charting language
MIT License
98 stars 37 forks source link

Sequence Actors Match Ending Parentheses #108

Closed bpruitt-goddard closed 1 year ago

bpruitt-goddard commented 1 year ago

Fixes #90. The problem wasn't with the end keyword, but the way the Actor was being matched. In this case, it didn't properly handle ending parentheses, which caused the whole line to not be treated as a proper "(Actor)(Arrow)(Actor)(:)(Message)" line and thus fallback to only looking for end within the line.

With the change, this line is properly highlighted:

image