l = util.SliceStart(l, end.X)
}
- all_matches := r.FindAllIndex(l, -1)
+ allMatches := r.FindAllIndex(l, -1)
- if all_matches != nil {
- match := all_matches[len(all_matches)-1]
+ if allMatches != nil {
+ match := allMatches[len(allMatches)-1]
start := Loc{charpos + util.RunePos(l, match[0]), i}
end := Loc{charpos + util.RunePos(l, match[1]), i}
return [2]Loc{start, end}, true