Open janpio opened 2 years ago
I can reproduce with v31.0.375
of Insider version
More minimal repro:
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mysql"
url = "..."
}
model telephone {
id Int @id @default(autoincrement()) @db.UnsignedInt
foo String @default("\"") @db.VarChar(4)
bar String @db.UnsignedInt
}
I think the same is happening here in the GitHub syntax highlighting (Update: Unsurprisingly, as it links to this repo and probably includes the same grammar file: https://github.com/github/linguist/tree/master/vendor/grammars)
"double_quoted_string"
currently doesn't support escaped characters \"
https://github.com/prisma/language-tools/blob/cd4f20f2ca7fc558800fa2c85e04c2d10839f484/packages/vscode/syntaxes/prisma.tmLanguage.json#L394-L417
This is the schema:
After line 176 with the default, the highlighting does not work any more.
Schema as file: https://github.com/prisma/migrations-ci/blob/d7ce7788e3fa66e99bb5553a1b5ded75048e81df/results/mariadb/tikiwiki/1-before-introspected.prisma (internal link)