mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Show a little lenience for white-space around names
This commit is contained in:
parent
d2e9918e5f
commit
7858186ecd
@ -44,7 +44,7 @@
|
|||||||
"sequenceDiagram" return 'SD';
|
"sequenceDiagram" return 'SD';
|
||||||
"," return ',';
|
"," return ',';
|
||||||
";" return 'NL';
|
";" return 'NL';
|
||||||
[^\->:\n,;]+ return 'ACTOR';
|
[^\->:\n,;]+ { yytext = yytext.trim(); return 'ACTOR'; }
|
||||||
"->>" return 'SOLID_ARROW';
|
"->>" return 'SOLID_ARROW';
|
||||||
"-->>" return 'DOTTED_ARROW';
|
"-->>" return 'DOTTED_ARROW';
|
||||||
"->" return 'SOLID_OPEN_ARROW';
|
"->" return 'SOLID_OPEN_ARROW';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user