You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this issue with syntax highlighting where when treesitter interprets index into a map-inside-a-map using variables, it reads it as a type instantiation.
Code demonstrating this issue
package main
func other() {
b := "b"
c := "c"
a := map[string]map[string]int{"b": {}}
// doesn't work
a[b][c] = 10
// works
a["b"][c] = 10
// works
a[b]["c"] = 10
// works
a["b"]["c"] = 10
}
I came across this issue with syntax highlighting where when treesitter interprets index into a map-inside-a-map using variables, it reads it as a type instantiation.
Code demonstrating this issue
Highlighting (using vscode theme in neovim:
Treesitter playground output:
The text was updated successfully, but these errors were encountered: