Skip to content

Commit

Permalink
chore: Add comment for yy.
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Aug 28, 2023
1 parent cd19829 commit 4d53136
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mermaid/src/Diagram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export class Diagram {
originalParse(cleanupComments(extractFrontMatter(text, this.db, configApi.addDirective)));

if (this.parser.parser !== undefined) {
// The parser.parser.yy is only present in JISON parsers. So, we'll only set if required.
this.parser.parser.yy = this.db;
}
this.init = diagram.init;
Expand Down

0 comments on commit 4d53136

Please sign in to comment.