chore: Add comment for `yy`.

This commit is contained in:
Sidharth Vinod 2023-08-28 13:39:37 +05:30
parent cd198290d7
commit 4d5313699e
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 1 additions and 0 deletions

View File

@ -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;