bpruitt-goddard / vscode-mermaid-syntax-highlight

Markdown syntax support for the Mermaid charting language
MIT License
92 stars 36 forks source link

"end" keywords for highlighting should not be tracked within blocks or words #90

Closed pascal456 closed 1 year ago

pascal456 commented 1 year ago

The end keyword will be highlighted in the special case when there is either ( or ) before the colon :. The colon is indeed valid

Example:

sequenceDiagram
    loop do magic
        Participant1-->Backend (with brackets): wrong highlighting on this line
    end
    loop do magic
        Backend-->Backend: highlighting is fine on this line
    end

which results to:

sequenceDiagram
    loop do magic
        Participant1-->Backend (with brackets): wrong highlighting on this line
    end
    loop do magic
        Backend-->Backend: highlighting is fine on this line
    end

grafik