monaqa / tree-sitter-mermaid

Mermaid.js grammar for tree-sitter
MIT License
31 stars 6 forks source link

Multiple issues with the grammar #13

Open a-usr opened 2 weeks ago

a-usr commented 2 weeks ago

Preface: I have installed the mermaid TS module using the TSInstall command provided by the Neovim Tree-Sitter Plugin. After a quick google search for "Tree-Sitter Mermaid" I could only find this repository, so I assume that the Tree-Sitter Plugin installed the mermaid module from here. Should that not be the case I apologize for the inconvenience.

As you can tell from the following screenshot, I have been experiencing a couple of issues with the Mermaid Grammar. Specifically the following is quite obvious:

Screenshot_20241006_213109_TermuxMonet.jpg

The code used:

flowchart TD
    First-Task -- Error ---> SomeTask
    SomeTask["Multiline 
        String with Task Name"] -- Success --> Node
flowchart TD
    First-Task -- Error ---> SomeTask
    SomeTask["Multiline 
        String with Task Name"] -- Success --> Node
gabeidx commented 4 days ago

I'm working on a language support extension for Zed, and also getting some issue with the grammar.

⛔ tree-sitter-mermaid ✅ tmLanguage
zed-mermaid grammar reference vscode-mermaid-syntax-highlight grammar reference