diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/prisma/highlights.scm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/queries/prisma/highlights.scm b/queries/prisma/highlights.scm new file mode 100644 index 00000000..fc9f1656 --- /dev/null +++ b/queries/prisma/highlights.scm @@ -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_]+$")) |
