fix for gitGraph (:) and spaces (new line) issue

This commit is contained in:
Ashish Jain 2022-03-17 19:04:37 +01:00
parent 9f7130a3e6
commit 243f2b28cd

View File

@ -52,7 +52,8 @@
%% /* language grammar */ %% /* language grammar */
start 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;} | GG DIR ':' document EOF {yy.setDirection($2); return $4;}
; ;
@ -71,7 +72,7 @@ body
| body line {$1.push($2); $$=$1;} | body line {$1.push($2); $$=$1;}
; ;
line line
: statement NL{$$ =$1} : statement {$$ =$1}
| NL | NL
; ;