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

Make sure builtins are always hightlighted correctly #1070

Merged
merged 1 commit into from
Oct 23, 2016

Conversation

svanharmelen
Copy link
Contributor

And (again for consistency) change goMethod to goMethodCall to be consistent with goFunctionCall.

@fatih this is of course a much cleaner and better way to support all use cases correctly.

And (again for consistency) change `goMethod` to `goMethodCall` to be consistent with `goFunctionCall`.
@@ -302,7 +302,7 @@ if g:go_highlight_functions != 0
syn match goPointerOperator /\*/ nextgroup=goReceiverType contained skipwhite skipnl
syn match goReceiverType /\w\+/ contained
syn match goFunction /\w\+/ contained
syn match goFunctionCall /\w\+\ze(/
syn match goFunctionCall /\w\+\ze(/ contains=GoBuiltins,goDeclaration
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we include GoBuiltins? What does this change?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I see now :)

@fatih fatih merged commit be4eae0 into fatih:master Oct 23, 2016
@fatih
Copy link
Owner

fatih commented Oct 23, 2016

Thanks @svanharmelen 👍

@svanharmelen svanharmelen deleted the f-highlight-func-calls branch October 23, 2016 15:22
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.

2 participants