intellij-prisma
intellij-prisma copied to clipboard
Support @@map operator in enum blocks
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'
