Skip to content

Commit

Permalink
Fixed parser/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreywolf committed Dec 18, 2023
1 parent a71bdbd commit c5220bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/class/classDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const cleanupLabel = function (label: string) {
};

/**
* Called by parser when a special node is found, e.g. a clickable element.
* Called by parser when assigning cssClass to a class
*
* @param ids - Comma separated list of ids
* @param className - Class to add
Expand Down
1 change: 1 addition & 0 deletions packages/mermaid/src/diagrams/class/classDiagram.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ class C13["With Città foreign language"]
},
],
"methods": [],
"styles": [],
"type": "",
}
`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ styleStatement
;

cssClassStatement
: CSSCLASS STR stylesOpt {yy.setCssClass($2, $3);}
: CSSCLASS STR ALPHA {yy.setCssClass($2, $3);}
;

stylesOpt
Expand Down

0 comments on commit c5220bd

Please sign in to comment.