mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-03 19:17:00 +01:00
chore: Add comment for yy.
This commit is contained in:
@@ -51,6 +51,7 @@ export class Diagram {
|
|||||||
originalParse(cleanupComments(extractFrontMatter(text, this.db, configApi.addDirective)));
|
originalParse(cleanupComments(extractFrontMatter(text, this.db, configApi.addDirective)));
|
||||||
|
|
||||||
if (this.parser.parser !== undefined) {
|
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.parser.parser.yy = this.db;
|
||||||
}
|
}
|
||||||
this.init = diagram.init;
|
this.init = diagram.init;
|
||||||
|
|||||||
Reference in New Issue
Block a user