// return number of lines in multiline comment
// Note: this function expects s to have scanned the first line already
return number of lines in multiline comment
Note: this function expects s to have scanned the first line already
// return number of lines in multiline comment // Note : this function expects s to have scanned the first line already
func skipMultilineComment(s *bufio.Scanner, style *CommentStyle) int {
	if len(style.MultiComment) < 2 {
		return 0
	}
	if rmatch(s.Bytes(), multiStart(style)) {
		i := 0
		for {
			i++
			if rmatch(s.Bytes(), multiEnd(style)) {
				return i
			}
			s.Scan()
		}
	} else {
		return 0
	}
}
func skipMultilineComment ( s * bufio . Scanner , style * CommentStyle ) int { if len ( style . MultiComment ) < 2 { return 0 } if rmatch ( s . Bytes ( ) , multiStart ( style ) ) { i := 0 for { i ++ if rmatch ( s . Bytes ( ) , multiEnd ( style ) ) { return i } s . Scan ( ) } } else { return 0 } }
return number of lines in multiline comment
Note: this function expects s to have scanned the first line already
return number of lines in multiline comment Note : this function expects s to have scanned the first line already
// bail if there aren't any multiline comment styles defined