mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-11 23:14:12 +01:00
fix: Use ACTION in parser
This commit is contained in:
@@ -36,7 +36,7 @@ class InfoParser extends EmbeddedActionsParser {
|
|||||||
this.MANY2(() => {
|
this.MANY2(() => {
|
||||||
this.SUBRULE2(this.row);
|
this.SUBRULE2(this.row);
|
||||||
});
|
});
|
||||||
infoDb.setInfo(true);
|
this.ACTION(() => infoDb.setInfo(true));
|
||||||
this.MANY3(() => {
|
this.MANY3(() => {
|
||||||
this.CONSUME2(NewLine);
|
this.CONSUME2(NewLine);
|
||||||
});
|
});
|
||||||
@@ -56,7 +56,7 @@ class InfoParser extends EmbeddedActionsParser {
|
|||||||
|
|
||||||
public field = this.RULE('field', () => {
|
public field = this.RULE('field', () => {
|
||||||
this.CONSUME(ShowInfo);
|
this.CONSUME(ShowInfo);
|
||||||
infoDb.setInfo(true);
|
this.ACTION(() => infoDb.setInfo(true));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user