mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-01 22:56:51 +02:00
chore: Cleanup
This commit is contained in:
@@ -20,11 +20,6 @@ const InfoLexer = new Lexer(allTokens);
|
|||||||
class InfoParser extends EmbeddedActionsParser {
|
class InfoParser extends EmbeddedActionsParser {
|
||||||
constructor() {
|
constructor() {
|
||||||
super(allTokens);
|
super(allTokens);
|
||||||
|
|
||||||
const $ = this;
|
|
||||||
// very important to call this after all the rules have been defined.
|
|
||||||
// otherwise the parser may not work correctly as it will lack information
|
|
||||||
// derived during the self analysis phase.
|
|
||||||
this.performSelfAnalysis();
|
this.performSelfAnalysis();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,6 +27,7 @@ class InfoParser extends EmbeddedActionsParser {
|
|||||||
super.reset();
|
super.reset();
|
||||||
infoDb.clear();
|
infoDb.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public infoDiagram = this.RULE('infoDiagram', () => {
|
public infoDiagram = this.RULE('infoDiagram', () => {
|
||||||
this.MANY(() => {
|
this.MANY(() => {
|
||||||
this.CONSUME(NewLine);
|
this.CONSUME(NewLine);
|
||||||
|
Reference in New Issue
Block a user