Semantic highlighting: ScalaDoc is not highlighted
ScalaDoc is not highlighted. There are annotations like `@author`, parameters after an annotation like `@param x` and some other minor things. I think this would be a useful enhancement if it is possible.
Leave a comment
on 2012-07-26 05:41 *
By vlad.ureche
In case you want to address this bug, there are two types of annotations in scaladoc:
- simple annotations (@annotation followed by text)
- symbol annotations (@annotation <symbol> followed by text, e.g. @throws IllegalArgumentException if blah blah blah)
In order to distinguish them:
- param, tparam, throws, groupdesc, groupname, groupprio are followed by a symbol
- the rest are simple annotations
- simple annotations (@annotation followed by text)
- symbol annotations (@annotation <symbol> followed by text, e.g. @throws IllegalArgumentException if blah blah blah)
In order to distinguish them:
- param, tparam, throws, groupdesc, groupname, groupprio are followed by a symbol
- the rest are simple annotations
(In scala-ide:cad3531dc3f42414645e8ec9a831dd02fac1d0db) Add syntax highlighting for Scaladoc
This includes:
- Syntax highlighting for Scaladoc annotations, macros and code
blocks. The highlighting of annotations and macros is done by
a new introduced scanner whereas code blocks are highlighted by
another scanner. The latter are separated because a change in
the document partitioner must be implemented. The previous
behavior was to partition Scaladoc as a single block - now code
blocks have an own partition. This was done since the current
damager/repairer can only handle single lines, but code blocks
most of the time span multiple lines. Therefore the new
introduced Scaladoc scanner was unable to determine if a code
change belongs to a code block or not. With the new partition
model this problem does not occur because each scanner belongs
to a separate partition.
- Color option for annotation, macros and code blocks in the
"Syntax Coloring" preferences
- Test class for the new Scaladoc scanner and new test cases for
other components
To deactivate highlighting for Scaladoc members one needs to set
its color and text style to the same value as for normal Scaladoc.
Fixes #1001172
Branch: master
This includes:
- Syntax highlighting for Scaladoc annotations, macros and code
blocks. The highlighting of annotations and macros is done by
a new introduced scanner whereas code blocks are highlighted by
another scanner. The latter are separated because a change in
the document partitioner must be implemented. The previous
behavior was to partition Scaladoc as a single block - now code
blocks have an own partition. This was done since the current
damager/repairer can only handle single lines, but code blocks
most of the time span multiple lines. Therefore the new
introduced Scaladoc scanner was unable to determine if a code
change belongs to a code block or not. With the new partition
model this problem does not occur because each scanner belongs
to a separate partition.
- Color option for annotation, macros and code blocks in the
"Syntax Coloring" preferences
- Test class for the new Scaladoc scanner and new test cases for
other components
To deactivate highlighting for Scaladoc members one needs to set
its color and text style to the same value as for normal Scaladoc.
Fixes #1001172
Branch: master