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

Syntax highlighting doesn't work as expected (g:go_highlight_methods, g:go_highlight_functions ) #1500

Closed
alexbyk opened this issue Oct 7, 2017 · 1 comment · Fixed by #1557
Labels

Comments

@alexbyk
Copy link

alexbyk commented Oct 7, 2017

Behavior

screenshot
I would expect g:go_highlight_methods to highlight method names, g:go_highlight_function to highlight functions names.
Instead of that

  • g:go_highlight_methods=1; g:go_highlight_functions=0 highlights method invocations only
  • g:go_highlight_functions=1 highlights method names, function names, methods invocations and g:go_highlight_methods doesn't matter in this case

Is there any way to highlight only function/method names, not method invocations? In the screenshot above I would expect mymethod and main to be highlighted, while Println to remain white

Steps to reproduce:

  1. open .go file
  2. set g:go_highlight_function=1/0, g:go_highlight_methods=1/0
  3. save file(or reload)

Configuration

@arp242
Copy link
Contributor

arp242 commented Nov 4, 2017

See #1557 for a fix; with that patch setting just g:go_highlight_functions = 1 should do what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants