Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Syntax highlighting bug with Javadoc in method?
Syntax highlighting bug with Javadoc in method? [message #257523] Thu, 20 November 2008 11:58 Go to next message
Eclipse UserFriend
By default the Java editor syntax highlighter colors Javadoc comments blue
and multi-line comments green. I've noticed that if you start a multi-line
comment inside a method body with "/**" then the editor still colors it
green, even though Javadoc doesn't process comments inside message bodies.

Is this a bug or is it working as designed? If it is a bug, has it already
been reported? I searched on Bugzilla and couldn't find anything.
Re: Syntax highlighting bug with Javadoc in method? [message #257526 is a reply to message #257523] Thu, 20 November 2008 12:02 Go to previous messageGo to next message
Eclipse UserFriend
Nick Radov wrote:
> By default the Java editor syntax highlighter colors Javadoc comments blue
> and multi-line comments green. I've noticed that if you start a multi-line
> comment inside a method body with "/**" then the editor still colors it
> green, even though Javadoc doesn't process comments inside message bodies.

Whoops. I meant that the comment inside the method gets colored BLUE, not
green. I would expect it to be green.
Re: Syntax highlighting bug with Javadoc in method? [message #257545 is a reply to message #257526] Fri, 21 November 2008 03:26 Go to previous message
Eclipse UserFriend
Nick Radov wrote:
> Nick Radov wrote:
>> By default the Java editor syntax highlighter colors Javadoc comments
>> blue and multi-line comments green. I've noticed that if you start a
>> multi-line comment inside a method body with "/**" then the editor
>> still colors it green, even though Javadoc doesn't process comments
>> inside message bodies.
This is a known issue: to be faster the scanner doesn't check whether it
is inside a method or not: /** simply starts a Javadoc partition.

Dani
>
> Whoops. I meant that the comment inside the method gets colored BLUE,
> not green. I would expect it to be green.
>
Previous Topic:AST and Java Model relation
Next Topic:get the source associated with a class file
Goto Forum:
  


Current Time: Thu Apr 17 11:24:50 EDT 2025

Powered by FUDForum. Page generated in 0.03128 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top