fix: clear state before error; closes #2931 (#2932)

This commit is contained in:
Yash Singh
2022-04-13 02:04:00 +00:00
committed by GitHub
parent 0935fb0790
commit 37f6a42de8
5 changed files with 883 additions and 642 deletions

View File

@@ -82,6 +82,7 @@ function parse(text) {
case 'gitGraph':
parser = gitGraphParser;
parser.parser.yy = gitGraphAst;
parser.parser.yy.clear();
break;
case 'flowchart':
flowDb.clear();