dominikh / go-mode.el

Emacs mode for the Go programming language
BSD 3-Clause "New" or "Revised" License
1.37k stars 209 forks source link

Bad font locking for multiplication #382

Closed muirdm closed 3 years ago

muirdm commented 3 years ago

In

func _() {
    foo[1]*10 + 1
}

we mistakenly color "10" as a type.

muirdm commented 3 years ago

Make sure these also work:

map[[2]string]bool
map[string]map[string]float64