code: func (i *Index) calcScore(index int, matchline string) int {
  
  	// This is currently tied to the fact that sep is a single char.
  	splits := []int{}
  	s := rune(sep[0])
  	for i, ch := range matchline {
  		if ch == s {
  			splits = append(splits, i)
  		}
  	}
  
  	for i, pos := range splits {
  		if index > pos {
  			continue
  		}
  		return i
  	}
  	return len(splits)
  }
docs: // calcScore calculates a score for a match.