-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
small syntax fixes #930
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
small syntax fixes #930
Conversation
- do not highlight method receiver if g:go_highlight_types is not set - fixed highlighting of anonymous functions
@datanoise would you mind to check the comment from @svanharmelen? I’m on travel this weekend, and next week I’ll be in Gophercon. I’m preparing myself for the vim-go session. So the issues are on hold till next weekend. Thanks for all the feedback and fixes! |
This two examples are quite different. My changes added highlighting of the method's receiver types. For example, in the following func (reqCtx *requestContext) Status() int {
In this example, we have a plain go function func NewRequest(ctx *Options) RequestContext { and I'm traveling until the next week. If someone can look at this problem and send a PR, it would be nice. |
@datanoise the go syntax highlighting from before #917 did highlight this properly, so IMHO it's "bug" introduced in #917 I reverted |
@svanharmelen maybe I misunderstand the bug report. Which part is highlighted properly before #917? Are we talking about Option type in func NewRequest(ctx *Options) RequestContext { |
Yes, have a look at how it highlights the pointer sign before #917: |
I'm maybe missing something, but in this particular case the pointer sign is highlighted properly even with this pull request or #917 (assuming you have |
Hmm... I guess I am the one missing something 😞 I forwarded this from the slack channel, without verifying it myself... I'll point your conclusions out to the guy posting this. If he want to follow up or explain it in more detail himself he should. Otherwise I guess I have to apologize myself for causing this noise.... |
Wait, so it shouldn't be highlighted? |
It should... And it does (at least with this patch) in both cases (receiver and func param). |
Still nothing, perhaps it's because of the colorscheme I use gruvbox |
gruvbix doesn't highlight Operator syntax. Try something like :hi! link Operator String |
Thanks @datanoise 👍 |
Fixed issues reported by @svanharmelen in comments of pull request #917.