Anonymous | Login | 2022-08-08 01:26 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000289 | OMNeT++ | IDE / NED editor | public | 2011-05-03 10:52 | 2011-05-03 14:52 | ||||
Reporter | andras | ||||||||
Assigned To | andras | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 4.1 | ||||||||
Target Version | Fixed in Version | 4.2b2 | |||||||
Summary | 0000289: Bogus syntax highlight of XML tags in NED comments | ||||||||
Description | 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. Example: // // <a> <apple> <any> -- all three highlighted! // | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|
(0000430) 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. |
(0000431) andras (administrator) 2011-05-03 14:52 |
implemented new IRule for XML/HTML tags. |
![]() |
|||
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 |