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

Bad font locking for triple func call #385

Open
muirdm opened this issue May 9, 2021 · 0 comments
Open

Bad font locking for triple func call #385

muirdm opened this issue May 9, 2021 · 0 comments

Comments

@muirdm
Copy link
Collaborator

muirdm commented May 9, 2021

In

var f func(int) func(int) func(int)
f(123)(456)(789)

"456" is fontified as a function.

muirdm added a commit to muirdm/go-mode.el that referenced this issue Mar 27, 2022
Now we fontify func names in generic invocations when there are more
than one type params (so we can be sure it is a func instantiation).

I also tweaked things to avoid fontifying "bar"
in (foo)(bar)(baz) (fixes dominikh#385).

We also support fontifying method names with type params even though
that isn't allowed yet.
muirdm added a commit to muirdm/go-mode.el that referenced this issue Mar 27, 2022
Now we fontify func names in generic invocations when there are more
than one type params (so we can be sure it is a func instantiation).

I also tweaked things to avoid fontifying "bar"
in (foo)(bar)(baz) (fixes dominikh#385).

We also support fontifying method names with type params even though
that isn't allowed yet.
muirdm added a commit to muirdm/go-mode.el that referenced this issue Oct 6, 2022
Now we fontify func names in generic invocations when there are more
than one type params (so we can be sure it is a func instantiation).

I also tweaked things to avoid fontifying "bar"
in (foo)(bar)(baz) (fixes dominikh#385).

We also support fontifying method names with type params even though
that isn't allowed yet.
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

No branches or pull requests

1 participant