aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorErasin2022-12-14 13:51:00 +0000
committerGitHub2022-12-14 13:51:00 +0000
commit436296b76c671446aab8863b467155ff9e94d4fc (patch)
tree53770e26e76360e9c2c41df7a7ffddec7dd534fb /languages.toml
parent0f2ae35a1336d5fef823127dc134ed5675e5b9cb (diff)
Add Mermaid.js for markdown support (#5147)
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml13
1 files changed, 13 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index e6bc344c..e28476d3 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2043,3 +2043,16 @@ grammar = "qmljs"
[[grammar]]
name = "qmljs"
source = { git = "https://github.com/yuja/tree-sitter-qmljs", rev = "0b2b25bcaa7d4925d5f0dda16f6a99c588a437f1" }
+
+[[language]]
+name = "mermaid"
+scope = "source.mermaid"
+injection-regex = "mermaid"
+file-types = ["mermaid"]
+roots = []
+comment-token = "%%"
+indent = { tab-width = 4, unit = " " }
+
+[[grammar]]
+name = "mermaid"
+source = { git = "https://github.com/monaqa/tree-sitter-mermaid", rev = "d787c66276e7e95899230539f556e8b83ee16f6d" }