Escaping in preprocessor

0 votes
asked Nov 19, 2015 in Wanted features by anonymous

Hi!

 

Would like to use comma and brackets in preprocessor lines, how can I accomplish that?

 

!define WM_Pub(data) #aaffcc:Publish data;
WM_Pub(Doc:signalForPendingSignature,aaa)

shows error, but there's no way to escape comma in preprocessor (just like in C)

1 Answer

0 votes
answered Nov 19, 2015 by plantuml (297,300 points)

You can use quote like in the following example:

!define WM_Pub(data) #aaffcc:Publish data;
WM_Pub("Doc:signalForPendingSignature,aaa")

 

Hope this help!

commented Nov 20, 2015 by anonymous
So this support existed already!

It appears that Intellij Idea has outdated version of plantuml.jar in its plugin repo, so replacing it manually did help!

Thanks a lot!
...