language-tools
language-tools copied to clipboard
Syntax Highlighting breaks for Enum when there is no space between the enum's name and the curly `{`

I think the problem is that the syntax highlighting requires a space between the enum's name and the {
See broken
enum UserType{
ADMIN
NORMAL
}
works
enum UserType {
ADMIN
NORMAL
}
Usually auto-formatting would fix this, with the CLI you can use npx prisma format
manually.
Note: the syntax is defined here -> https://github.com/prisma/language-tools/blob/main/packages/vscode/syntaxes/prisma.tmLanguage.json