Negative values causing syntax error in robust "has" list

0 votes
asked Feb 27 in Bug by dzidav8 (120 points)

Trying to label robust diagram values as negative numbers causes syntax error:


robust "Debounce" as D

D has 4,3,2,1,0,-1 <-- syntax error
D has 4,3,2,1,0,"-1" <-- also syntax error

@0

D is -1 <-- this works

commented Feb 27 by The-Lu (64,760 points)

Hello D.,

Yes, it seems due to this line of code:

And here is another funny example: wink

robust "D" as D
D has 4,3,2,1,0,1,minus_1,minus_2

@0
D is 2

@1
D is -2

@2
D is minus_2

@PlantUML team: If that can help for debugging...,
Regards,
Th.

commented Feb 27 by anonymous
Seems that any label containg '-' character causes syntax error when used with "has".

1 Answer

+1 vote
answered Feb 27 by plantuml (295,000 points)

Thanks for the report.

This is fixed in last snapshot.

Tell us if it is not working for you.

...