OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0001027OMNeT++simulation kernelpublic2017-12-15 18:032017-12-15 18:03
0001027: String literal parsing in NED @properties
Breaking long strings into multiple lines in property values is not possible.
The resulting value will contain all quotes, backslashes, and indentation as it is present in the NED file, unintuitively.

          + "bar");

@prop(key="foo" \

In all cases, the value becomes literally the whole thing in the file between = and ), including any newlines, ", \, +, or indentation.

In fact, it doesn't even have to be broken into multiple lines:


@prop(key="foo" "bar")


@prop(key="foo" + "bar")

will also include the quotes/plus sign/spaces.

I would expect at least one or two of the above to work as it does in C/C++/etc.
No tags attached.
Issue History
2017-12-15 18:03attilaNew Issue

There are no notes attached to this issue.