Just recognised that the widget editor deletes all comments. After a reload all my comments in a custom widegt are deleted. Is that behaviour intended?
Yes.
Adding comments in the YAML structure would make parsing way more difficult.
Then comments # shouldn’t work at all with the editor. Yesterday this undocumented behavior chrashes two hour of development …