-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-highlighting(semantic) token highlighting(semantic) token highlightingC-featureCategory: feature requestCategory: feature request
Description
A very common existing use case is to set a distinct style for function.mutable
and method.mutable
to highlight sites where mutations can occur.

This is very nice, but it does not cover the case of assignments. Mutation happened, but no distinct style was applied:

It would be great if the place expression and the operator receive an additional .assigning
or .mutating
modifier, so that they can be specifically selected for highlighting.
Currently without this feature, the next best thing is to set a style for variable.mutable
. This way the mutable variable is always highlighted:

But this comes with the downside that the variable is highlighted everywhere even when it's used immutably. Personally I consider this a distraction.
Metadata
Metadata
Assignees
Labels
A-highlighting(semantic) token highlighting(semantic) token highlightingC-featureCategory: feature requestCategory: feature request