vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Dark+ theme not render the self-defined struct in Go

Open Alfons0329 opened this issue 1 year ago • 0 comments

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

image

Somehow my VSCode Dark+ theme does not render the text properly. (it used to be OK a few days ago, the self-defined struct (userData) should be emerald green (same as the "string" below) and the var name (in) should be light blue in the function argument)

image

This issue seems to happen in C++ as well.

Thank you for the help.

Alfons0329 avatar Aug 10 '22 07:08 Alfons0329

The go grammar does not seem to tokenize that correctly image

type userData struct {
	name string
	id int
}

aeschli avatar Aug 26 '22 09:08 aeschli

I created https://github.com/jeff-hykin/better-go-syntax/issues/37

aeschli avatar Aug 26 '22 09:08 aeschli