mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(mermaid): indents and folds
This commit is contained in:
parent
093b29f2b4
commit
ccbaee5954
2 changed files with 28 additions and 0 deletions
10
queries/mermaid/folds.scm
Normal file
10
queries/mermaid/folds.scm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
(diagram_sequence)
|
||||
(diagram_class)
|
||||
(diagram_state)
|
||||
(diagram_gantt)
|
||||
(diagram_pie)
|
||||
(diagram_er)
|
||||
(diagram_flow)
|
||||
(flow_stmt_subgraph)
|
||||
] @fold
|
||||
18
queries/mermaid/indents.scm
Normal file
18
queries/mermaid/indents.scm
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
([
|
||||
(diagram_sequence)
|
||||
(diagram_class)
|
||||
(diagram_state)
|
||||
(diagram_gantt)
|
||||
(diagram_pie)
|
||||
(diagram_er)
|
||||
(diagram_flow)
|
||||
(flow_stmt_subgraph)
|
||||
] @indent.begin
|
||||
(#set! indent.immediate 1))
|
||||
|
||||
"end" @indent.branch
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
] @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue