mermaid-js / mermaid-live-editor

Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.
https://mermaid.live
MIT License
4.3k stars 654 forks source link

gitGraph switch expression is not syntax highlighted #1569

Open jaschop-1k5o opened 1 week ago

jaschop-1k5o commented 1 week ago

Describe the bug gitGraph switch expression is not syntax highlighted.

To Reproduce Link to Live Editor: https://mermaid.live/edit#pako:eNpVjEEOwyAMBL-CfM4LOFfqA3rl4oIbUGNAjmlVRfl7HPWU2-7MajeILRF4mIveBXsO1bnYmIue6SlYY3aJPrS0fnXrt6g5xlKvAiZgEuPJfreTBNBMTAG8xYTyDhDqbjsc2h6_GsGrDJpA2pgz-Bcuq7XREyrdCs6C_J_sBytVPRM Steps to reproduce the behavior:

  1. Use the switch BRANCH expression in a gitGraph chart

Expected behavior

Screenshots image image

Desktop (please complete the following information):

Additional context The switch BRANCH expression was recently added, by my request actually.