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

Color syntax missing on multi generic method #453

Open
Lathanao opened this issue Jul 14, 2022 · 3 comments
Open

Color syntax missing on multi generic method #453

Lathanao opened this issue Jul 14, 2022 · 3 comments
Assignees
Labels
bug Something isn't working grammar

Comments

@Lathanao
Copy link

Please check this piece of code.
It seen the method is not well colored.

module main

struct Db {}
struct User {}
struct Post {}

fn main() {
	r := Db{}
	u := User{}
	p := Post{}

	r.do(u, p)
}

fn (r Db) do<X,Y>(x X, y Y) {
	println(x)
	println(y)
}

By the way, thank you for this great extension.

@StunxFS
Copy link
Contributor

StunxFS commented Aug 15, 2022

@danieldaeschle I think this issue can be closed, I don't see bad coloring in the syntax

@Lathanao
Copy link
Author

Here what I have in VScode:

image

Should not the function name colored in yellow?

@danieldaeschle
Copy link
Member

Yes, this is a bug.

@0x9ef 0x9ef added bug Something isn't working grammar labels Apr 1, 2023
@0x9ef 0x9ef self-assigned this Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working grammar
Projects
None yet
Development

No branches or pull requests

4 participants