Bug 327574 - Comment highlighting not closed
Summary: Comment highlighting not closed
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 11:48 EDT by Andrew Niefer CLA
Modified: 2019-09-07 22:00 EDT (History)
2 users (show)

See Also:


Attachments
Image showing lack of highlighting being applied after a comment (33.95 KB, image/png)
2019-09-07 05:32 EDT, Kevin O CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2010-10-12 11:48:35 EDT
Editing an ant build.xml file, I commented out some code by first adding "<!--" on a line, this caused the following text to be colored as a comment (as expected).
I then added the closing "-->" at the end of the next line and saved the file, the syntax coloring for the lines after the comment close did not revert back to uncommented syntax highlighting.

Modifying the incorrectly colored lines in some way will restore their correct highlighting
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:09:45 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 2 Kevin O CLA 2019-09-07 05:32:47 EDT
Created attachment 279796 [details]
Image showing lack of highlighting being applied after a comment
Comment 3 Kevin O CLA 2019-09-07 05:36:54 EDT
This issue still remains. Running Eclipse 2019-06. Easily reproducible by having an ant build.xml file with existing targets, and then adding a comment in the target.

Note that this lack of re-running the syntax highlighting can also be seen if one pastes valid .xml from another ant build into an existing file -- the highlighter does not run against the pasted text.

Example:

<target name="jar" depends="blah">
  
  <jar destfile="file">
    ...
  </jar>
</target>

Above the "<jar", add "<!--". The "<jar" and subsequent text will be faded as a comment (as expected). Then hit return and "-->". The text will not be re-highlighted.
Comment 4 Sarika Sinha CLA 2019-09-07 22:00:38 EDT
(In reply to Kevin O from comment #2)
> Created attachment 279796 [details]
> Image showing lack of highlighting being applied after a comment

Which platform are you trying on?

I see it working on Mac.