Skip to content

Commit

Permalink
Fix: return value of noteStatement is not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
kairi003 committed Sep 2, 2024
1 parent 09b943e commit c8a41d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mermaid/src/diagrams/class/parser/classDiagram.jison
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ classStatements
: classStatement {$$=[[$1], []]}
| classStatement NEWLINE {$$=[[$1], []]}
| classStatement NEWLINE classStatements {$3[0].unshift($1); $$=$3}
| noteStatement {$$=[[], $1]}
| noteStatement NEWLINE {$$=[[], $1]}
| noteStatement {$$=[[], [$1]]}
| noteStatement NEWLINE {$$=[[], [$1]]}
| noteStatement NEWLINE classStatements {$3[1].unshift($1); $$=$3}
;

Expand Down

0 comments on commit c8a41d6

Please sign in to comment.