....  Perhaps a function called block_comment_width() could be called for each line.  It would return zero if the line is not the first or last line of a block comment and the position of the final '*' + 1  if is it is a block comment.

The first line of a block comment starts with "/***" (perhaps preceded by whitespace) and ends with "***"  (perhaps with trailing whitspace).  The last line of a block begins with whitespace then "***" and ends with "***/"  (perhaps with trailing whitspace).

But there is also a special single line comment that begins with "/* " (perhaps preceded by whitespace) and ends with "***/" (perhaps with trailing whitspace). for example:

   /* Comment ************/

The final '*' in that comment should also align with the block comments.

Greg


Reply via email to