@doctags SHOULD already be at the very beginning of a line

also, a better regex: (?:^|\s)
this way it won't create a match group, so the changes below (lines 303-304) are unnecessary