-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Exclude iota and nil from goBoolean #1030
Conversation
iota
and nil
from goBoolean
@@ -127,9 +127,11 @@ hi def link goComplexes Type | |||
" Predefined functions and values | |||
syn match goBuiltins /\<\v(append|cap|close|complex|copy|delete|imag|len)\ze\(/ | |||
syn match goBuiltins /\<\v(make|new|panic|print|println|real|recover)\ze\(/ | |||
syn keyword goBoolean iota true false nil | |||
syn keyword goPredefinedVars nil, iota |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goPredefinedVars
should be renamed to goPredeclaredIdentifiers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Thanks @yyoshiki41, this looks great 👍 |
I can't say I like this change. Suddenly my For those looking to fix this:
|
I think we should just link |
@Carpetsmoker to be honest I didn't like it either. Maybe we should add it as another flag (just like we do with others). I'm open to merge a PR that put's it behind flag. |
@fatih why do we need a flag? Just do |
@nhooyr oh I got what you mean. Mind adding a PR now? If not I'll can do it later. |
Can't, in class :( edit: ok, class over, making it. |
exclude iota and nil from
goBoolean
It would be better to treat them separately.
Before
After
Thanks!
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)