vlang/vscode-vlang

Color syntax missing on multi generic method

Lathanao opened this issue · 3 comments

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.

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

Here what I have in VScode:

image

Should not the function name colored in yellow?

Yes, this is a bug.