intellij-prisma icon indicating copy to clipboard operation
intellij-prisma copied to clipboard

Support @@map operator in enum blocks

Open akosasante opened this issue 2 years ago • 0 comments

According to the Prisma docs, @@map should be supported in enum blocks in order to map the client's enum naming to the database's naming (Source: https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#mapping-model-names-to-tables-or-collections, Note: You can also [@map](https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#map) a column name or enum value, and @@map an enum.)

However, currently the syntax highlighting with this plugin breaks when doing this and gives the error: PrismaTokenType.BRACE_R, PrismaTokenType.IDENTIFIER or PrismaTokenType.INLINE_ATTRIBUTE_NAME expected, got '@@map'

Screen Shot 2022-06-11 at 12 30 10 PM

akosasante avatar Jun 11 '22 16:06 akosasante