Given the start of the current line is inside a block comment, asks
whether the comment begins on the "previous line," ignoring white space.
version: $Id: QuestionPrevLineStartsComment.java 4255 2007-08-28 19:17:37Z mgricken $
Determines if the previous line in the document starts a block comment.
We know that the current line is in a block comment. Therefore, if the
start of the previous line is not inside of a block comment, then the
previous line must have started the comment.
There is an exception to this; however, it is handled adequately. Consider
the case when the previous line contains the following code:
*/ bar(); /*
Our approach will say that since the beginning of the previous line is
inside of a comment, the previous line did not start the comment. This
is acceptable because we think of the previous line as a continuation
of a larger commented out region.
Parameters: doc - AbstractDJDocument containing the line to be indented. true if this node's rule holds.
Methods inherited from edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion