olance / intellij-prisma

Prisma schema file support for IntelliJ IDEs (WebStorm, PHPStorm, Pycharm, RubyMine, ...)
MIT License
26 stars 3 forks source link

Field name of 'type' causes problems #10

Closed binary64 closed 2 years ago

binary64 commented 3 years ago
model Blah {
  id         Int    @id @default(autoincrement())
  company_id Int
  name       String
  type       String

  @@map("blah")
}

shows like this: image

olance commented 2 years ago

Thanks for the report @binary64, and sorry for the delay.

This error was due to my lexer definition, which was matching type as a block definition anywhere within the file. I've just fixed this and will push a new version of the plugin ASAP!