From e5b22684cdec5135f323bfd1314775415712d985 Mon Sep 17 00:00:00 2001 From: chris moran Date: Mon, 27 Jul 2020 09:57:04 -0400 Subject: [PATCH] Fixed a parser warning in classDiagram Fixed a regression bug I introduced in theme.spec.js --- cypress/integration/rendering/theme.spec.js | 4 +++- src/diagrams/class/parser/classDiagram.jison | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/integration/rendering/theme.spec.js b/cypress/integration/rendering/theme.spec.js index 4e92c100d..d0da3a964 100644 --- a/cypress/integration/rendering/theme.spec.js +++ b/cypress/integration/rendering/theme.spec.js @@ -233,7 +233,9 @@ erDiagram Do work: 1: Me, Cat section Go home Go downstairs: 5: Me - Sit down: 5: Me ` + Sit down: 5: Me + `, + {theme} ); cy.get('svg'); }); diff --git a/src/diagrams/class/parser/classDiagram.jison b/src/diagrams/class/parser/classDiagram.jison index 7c8d36a95..83a856c5e 100644 --- a/src/diagrams/class/parser/classDiagram.jison +++ b/src/diagrams/class/parser/classDiagram.jison @@ -147,8 +147,8 @@ mermaidDoc graphConfig : NEWLINE - | NEWLINE graphConfig | graphConfig NEWLINE + | NEWLINE CLASS_DIAGRAM NEWLINE statements EOF | CLASS_DIAGRAM NEWLINE statements EOF ;