-
Notifications
You must be signed in to change notification settings - Fork 591
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
[Perl] Combine variable.function with support.function #1841
Conversation
This commit follows an recent proposal from the Go.sublime-syntax to combine the general `variable.function` with the `support.function` scope in order to provide the option for dedicated highlighting of builtin functions via color-scheme. As a side effect all builtin functions are made available via "Goto Reference".
Realized Is this combination of |
I use Exact scope is Example: filter(functools.partial(isinstance, str), range(10))
TL;DR: I believe there is merit in having the two scopes. |
To me, scoping a built-in function as This then honors the Scoping Naming guidelines, emphasis mine:
|
Seems likely. What about I don't think anyone besides me uses the scopes like this, so we don't need to worry about backwards compatibility. |
The meta approach seems related with #884, which proposed Either way a scope to narrow down the function identifier would be useful as some functions may also allow macros being used as function name.
What is that? A About the range of the meta Spanning the whole path would be most suitable, but may be difficult in some languages depending on complexity. May also have a significant impact on performance. |
I follow @keith-hall with not stacking We might ask @mitranim change the Go syntax accordingly then. |
We should formulate our discoveries in this thread into an RFC-like issue for documentation. |
I think I accidentally (mis)took |
Oh yeah, quote from scope naming:
This particular section doesn't mention |
This commit follows an recent proposal from the Go.sublime-syntax to combine the general
variable.function
with thesupport.function
scope in order to provide the option for dedicated highlighting of builtin functions via color-scheme.As a side effect all builtin functions are made available via "Goto Reference".