Skip to content

Commit 0730789

Browse files
Merge branch 'master' into feat-improve-state
2 parents e23ca32 + 8189dab commit 0730789

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ State diagram:
88
- Add support for symbols in state description
99
- Adjust requirements for spaces in state and note declarations and links
1010

11+
## [v1.7.2]
12+
13+
- Add support for a dotted link syntax variation without leading dash
14+
1115
## [v1.7.1]
1216

1317
- Add support for extended node shapes (graph/flowchart)

syntaxes/diagrams/graph.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
name: keyword.control.mermaid
8989
- comment: (Graph Link)("Multiline text")(Graph Link)
9090
begin: !regex |-
91-
\s*((?:-{2,5}|={2,5})[xo>]?\|) # Start arrow
91+
\s*((?:-?\.{1,4}-|-{2,5}|={2,5})[xo>]?\|) # Start arrow
9292
beginCaptures:
9393
'1':
9494
name: keyword.control.mermaid
@@ -141,7 +141,7 @@
141141
name: keyword.control.mermaid
142142
- comment: (Graph Link)
143143
match: !regex |-
144-
\s*([ox<]?(?:-.{1,3}-|-{1,3}|={1,3})[ox>]?) # Graph Link
144+
\s*([ox<]?(?:-?\.{1,4}-|-{1,4}|={1,4})[ox>]?) # Graph Link
145145
captures:
146146
'1':
147147
name: keyword.control.mermaid

tests/diagrams/graph.test.mermaid

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,22 @@ graph TB
245245
%% ^^^^^^^^^^^^^^^^^^ string
246246
%% ^^ keyword.control.mermaid
247247
%% ^^^^ variable
248+
ID-4.->ID-5
249+
%% ^^^^ variable
250+
%% ^^^ keyword.control.mermaid
251+
%% ^^^^ variable
252+
ID-2 -.-|Text| ID-2
253+
%% ^^^^ variable
254+
%% ^^^^ keyword.control.mermaid
255+
%% ^^^^ string
256+
%% ^ keyword.control.mermaid
257+
%% ^^^^ variable
258+
ID-2 ..-|Text| ID-2
259+
%% ^^^^ variable
260+
%% ^^^^ keyword.control.mermaid
261+
%% ^^^^ string
262+
%% ^ keyword.control.mermaid
263+
%% ^^^^ variable
248264
ID-5==>ID-6
249265
%% ^^^^ variable
250266
%% ^^^ keyword.control.mermaid

0 commit comments

Comments
 (0)