Skip to content

Suggestion: Remove highlighting for properties/methods/struct field accesses#103

Open
Gustaf-C wants to merge 2 commits intomathworks:masterfrom
Gustaf-C:remove_misleading_highlighting
Open

Suggestion: Remove highlighting for properties/methods/struct field accesses#103
Gustaf-C wants to merge 2 commits intomathworks:masterfrom
Gustaf-C:remove_misleading_highlighting

Conversation

@Gustaf-C
Copy link
Copy Markdown
Contributor

@Gustaf-C Gustaf-C commented Apr 16, 2026

As I suggested in mathworks/MATLAB-language-server#84, this removes highlighting for properties, methods and struct fields. These are impossible to distinguish reliably with regex and I feel that the error rate is high enough not to give any benefit. Example below with semantic highlighting enabled:

image

I admit that I think that it does look worse, but I believe that it's just a matter of habit.

If you believe that this change is reasonable, the tests will need to be updated. I'll wait with that until I get your opinion though.

A possible alternative is to create a new scope for method calls, which would at least allow for custom highlighting.

@Gustaf-C Gustaf-C force-pushed the remove_misleading_highlighting branch from 44a779a to 03d5f36 Compare April 16, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant