olance / intellij-prisma

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

Enum @@map support #1

Closed Sebdevar closed 3 years ago

Sebdevar commented 4 years ago

Hi, I'm currently getting this weird error when mapping an enum to a DB type (which is supported based on the documentation):

PrismaTokenType.BRACE_R or PrismaTokenType.IDENTIFIER expected, got '@@map'

Screenshot from 2020-11-13 16-01-45

olance commented 4 years ago

Hi @Sebdevar, thanks for the catch!

It seems my grammar is not expecting that kind of statement within the enum block. Will fix ASAP! 🙂

olance commented 3 years ago

Fixed in master! Plugin's new version is published and review by Jetbrains underway.

Sorry for the "ASAP" lasting 3 months 😑