I would suggest that we limit selection to be within one line comment or one block comment. So if you find out the selection start is in a line comment, then the selection end has to be on the same line. For block comment you need to verify that the selection end is within the same block comment as the selection start.