diff options
| author | elianiva <dicha.arkana03@gmail.com> | 2021-11-23 09:17:37 +0700 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-28 00:36:24 +0100 |
| commit | b2801abc21a37fde34e92c520e365d4ec652afe4 (patch) | |
| tree | 9f9a361ebb29579ca47476a9ee539f1e860c1c72 /queries/prisma | |
| parent | feat: add prisma support (diff) | |
| download | nvim-treesitter-b2801abc21a37fde34e92c520e365d4ec652afe4.tar nvim-treesitter-b2801abc21a37fde34e92c520e365d4ec652afe4.tar.gz nvim-treesitter-b2801abc21a37fde34e92c520e365d4ec652afe4.tar.bz2 nvim-treesitter-b2801abc21a37fde34e92c520e365d4ec652afe4.tar.lz nvim-treesitter-b2801abc21a37fde34e92c520e365d4ec652afe4.tar.xz nvim-treesitter-b2801abc21a37fde34e92c520e365d4ec652afe4.tar.zst nvim-treesitter-b2801abc21a37fde34e92c520e365d4ec652afe4.zip | |
refactor(prisma): switch to alternative repo
Co-authored-by: richin13 <richin13@gmail.com>
Diffstat (limited to 'queries/prisma')
| -rw-r--r-- | queries/prisma/highlights.scm | 62 |
1 files changed, 20 insertions, 42 deletions
diff --git a/queries/prisma/highlights.scm b/queries/prisma/highlights.scm index fc9f16565..5a7d7a812 100644 --- a/queries/prisma/highlights.scm +++ b/queries/prisma/highlights.scm @@ -1,48 +1,26 @@ [ - "generator" - "datasource" - "model" - "enum" + "datasource" + "enum" + "generator" + "model" ] @keyword -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -[ - ":" - "," -] @punctuation.special - -[ - "=" - "?" -] @operator - (comment) @comment -(string) @string -(integer) @number -(boolean) @constant.builtin -(prisma_type) @type.builtin +(developer_comment) @comment -(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) +(arguments) @property +(attribute) @function +(call_expression) @function +(column_type) @type +(enumeral) @constant +(identifier) @variable +(string) @string -((identifier) @constant - (#vim-match? @constant "^[A-Z_][A-Z\\d_]+$")) +"(" @punctuation.bracket +")" @punctuation.bracket +"[" @punctuation.bracket +"]" @punctuation.bracket +"{" @punctuation.bracket +"}" @punctuation.bracket +"=" @operator +"@" @operator |
