mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
fix for gitGraph (:) and spaces (new line) issue
This commit is contained in:
parent
9f7130a3e6
commit
243f2b28cd
@ -52,7 +52,8 @@
|
||||
%% /* language grammar */
|
||||
|
||||
start
|
||||
: GG ':' document EOF{ return $3; }
|
||||
: GG document EOF{ return $3; }
|
||||
| GG ':' document EOF{ return $3; }
|
||||
| GG DIR ':' document EOF {yy.setDirection($2); return $4;}
|
||||
;
|
||||
|
||||
@ -71,7 +72,7 @@ body
|
||||
| body line {$1.push($2); $$=$1;}
|
||||
;
|
||||
line
|
||||
: statement NL{$$ =$1}
|
||||
: statement {$$ =$1}
|
||||
| NL
|
||||
;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user