OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000289OMNeT++IDE / NED editorpublic2011-05-03 10:522011-05-03 14:52
normalminorhave not tried
0000289: Bogus syntax highlight of XML tags in NED comments
Within NED comments, the NED editor is supposed to highlight HTML tags
but leave XML tags (i.e. all non-HTML tags) alone. However, it currently
highlights any XML tag that begins with a HTML tag as HTML.

//   <a> <apple> <any> -- all three highlighted!

<pwerty> -- both highlighted! // <hello/> -- not highlighted (no HTML tag begins with "h") // <hr/> <hrvatska/> -- both highlighted! // <c> <cat> -- not highlighed ("c" is not a HTML tag) //

No tags attached.
Issue History
2011-05-03 10:52andrasNew Issue
2011-05-03 12:59andrasNote Added: 0000430
2011-05-03 14:52andrasNote Added: 0000431
2011-05-03 14:52andrasStatusnew => resolved
2011-05-03 14:52andrasFixed in Version => 4.2b2
2011-05-03 14:52andrasResolutionopen => fixed
2011-05-03 14:52andrasAssigned To => andras

2011-05-03 12:59   
See NedDocColorizerScanner ctor.

SingleLineRule cannot be used for the <foo>, </foo>, <foo/> cases, as it expects an endSequence -- or if you pass in "" or null, the token will last till the end of the line.

WordRule is also out of question, because it is built upon IWordDetector that cannot detect XML tags: it only has isWordStart() and isWordPart() methods (there's no isWordEnd()), so it cannot isolate <foo> from a <foo>blabla string.

Looks like we have to implement our own IRule.
2011-05-03 14:52   
implemented new IRule for XML/HTML tags.