feat: add prisma support

This commit is contained in:
elianiva 2021-11-01 06:20:58 +07:00 committed by Stephan Seitz
parent d2174f1d29
commit 3da2ab9857
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,48 @@
[
"generator"
"datasource"
"model"
"enum"
] @keyword
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
[
":"
","
] @punctuation.special
[
"="
"?"
] @operator
(comment) @comment
(string) @string
(integer) @number
(boolean) @constant.builtin
(prisma_type) @type.builtin
(field_type (non_null_type (identifier) @type))
(field_type (array_type (non_null_type (identifier) @type)))
(apply_function (identifier) @function)
(attribute_specifier (identifier) @attribute)
(key_value (key (identifier) @attribute))
(model_single_attribute (identifier) @variable.parameter)
(model_multi_attribute (identifier) @variable.parameter)
(model_field (identifier) @property)
((identifier) @constant
(#vim-match? @constant "^[A-Z_][A-Z\\d_]+$"))