Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object members highlighting #180

Closed
alekseyt opened this issue May 20, 2019 · 5 comments
Closed

Object members highlighting #180

alekseyt opened this issue May 20, 2019 · 5 comments

Comments

@alekseyt
Copy link

This is a question related to vscode 1.34.

I'm trying to highlight class/struct members like this:

image

I'm tried to highlight variable.other.object and this kind of works, but it highlights part i didn't want to highlight:

image

Is there a way to separately highlight object and its members?

Thanks.

@matter123
Copy link
Collaborator

See #59 in particular #59 (comment)

@jeff-hykin
Copy link
Owner

jeff-hykin commented May 20, 2019

Here's what you can do.
variable.other.object.access // should tag the first word
variable.other.object.property // should tag the middle words
variable.other.property // should tag the last word

If that isn't the case (I'll check at home) then something needs to be fixed.

@alekseyt
Copy link
Author

Thank you, i had moderate success with variable.other.object.property:

image

It does that, but surprisingly it highlights z-> entirely (or z. if that matters). I've read comments in #59 and tried to override color for punctuation.separator.pointer-access.cpp or even punctuation.separator, but it doesn't seem to help. I suspect maybe -> is being captured with z or something, not sure about this.

Maybe this is already fixed, apparently syntax file was already updated in vscode's master and revision in 1.34 might be somewhat old. I replaced it from master and it fixed some other issues i've seen in 1.34, but not this one. But variable.other.object.property definitely seems like a way to go.

@matter123
Copy link
Collaborator

That's #130. I'll try to get a PR for it in the next 12 hours.

@alekseyt
Copy link
Author

I'm closing this as a duplicate then. Thank you very much.

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

No branches or pull requests

3 participants