OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000289OMNeT++IDE / NED editorpublic2011-05-03 10:522011-05-03 14:52
Assigned Toandras 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version4.1 
Target VersionFixed in Version4.2b2 
Summary0000289: Bogus syntax highlight of XML tags in NED comments
DescriptionWithin 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) //

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
andras (administrator)
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.
andras (administrator)
2011-05-03 14:52

implemented new IRule for XML/HTML tags.

- Issue History
Date Modified Username Field Change
2011-05-03 10:52 andras New Issue
2011-05-03 12:59 andras Note Added: 0000430
2011-05-03 14:52 andras Note Added: 0000431
2011-05-03 14:52 andras Status new => resolved
2011-05-03 14:52 andras Fixed in Version => 4.2b2
2011-05-03 14:52 andras Resolution open => fixed
2011-05-03 14:52 andras Assigned To => andras

Copyright © 2000 - 2022 MantisBT Team
Powered by Mantis Bugtracker