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
Though the Go grammar treats qualified identifiers differently from selectors, they look the same and I can't find how they should be disambiguated, so it seems reasonable to treat foo.bar in expression context as a variable name followed by a dot and a property name.
For types, there are only qualified names, so there the mode does treat the part before the dot as a package name—calling it a variable there would be nonsense.
If you have a suggestion on how to do this differently I'm interested, but as far as I understand Go treating every identifier followed by a dot as a package name would be wrong.
The following content will have inconsistent highlighting of "status". Ideally "status" would always be highlighted.
The text was updated successfully, but these errors were encountered: