OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000773OMNeT++IDE / NED editorpublic2014-09-05 09:322014-12-12 16:31
normalminorhave not tried
0000773: Specifying a property on two lines is not possible on Linux
Try to use this in the NED editor:

This results in a parse error in IDE. This is not happening on Windows.
No tags attached.
Issue History
2014-09-05 09:32rhornigNew Issue
2014-09-08 09:39rhornigSummarySpecifying a property on two linesa are not possible on Linux => Specifying a property on two lines is not possible on Linux
2014-09-23 10:40andrasNote Added: 0000929
2014-09-23 12:28andrasNote Added: 0000930
2014-09-23 12:28andrasStatusnew => resolved
2014-09-23 12:28andrasResolutionopen => fixed
2014-09-23 12:28andrasAssigned To => andras
2014-12-12 16:30andrasAssigned Toandras => rhornig
2014-12-12 16:30andrasStatusresolved => assigned
2014-12-12 16:31andrasFixed in Version => 4.6

2014-09-23 10:40   
To reproduce, save the following into a.ned:

Then run: nedtool -x a.ned

The result will be the following XML:

<ned-file filename="a.ned">
    <property name="f">
        <property-key name="a">
            <literal type="spec" text="@f(a= foo" value="@f(a= foo"/>

It should contain text="foo".

Also occurs on Windows.
2014-09-23 12:28   
It was a bug in the lexer, ned2.lex (and also msg2.lex): in Flex, "." doesn't match the newline, one must explicitly handle that case (or use {S} that includes \n too).