Closed sthlm58 closed 1 month ago
If you generate a mermaid diagram from the following code
class Foo { public: Foo(void* parent = {}) {} }; int main() {}
You get the following mermaid:
classDiagram class C_0017490737515057045975["Foo"] class C_0017490737515057045975 { +Foo(void * parent = {}) : void }
That is invalid with:
Diagram syntax error Error: Error: Parse error on line 4: ...Foo(void * parent = {}) : void } -----------------------^ Expecting 'STRUCT_STOP', 'MEMBER', got 'OPEN_IN_STRUCT'
I'm not sure if those { and } characters can be escaped...
{
}
@sthlm58 Thanks for reporting this. It should now be fixed in master branch. I've added a test for this - see the default_int_braces method...
master
default_int_braces
If you generate a mermaid diagram from the following code
You get the following mermaid:
That is invalid with:
I'm not sure if those
{
and}
characters can be escaped...