diff options
| author | elianiva <dicha.arkana03@gmail.com> | 2021-11-01 06:20:58 +0700 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-28 00:36:24 +0100 |
| commit | 3da2ab9857d8a5f2dc91bd396be32711322311e0 (patch) | |
| tree | f9d7499f685154c05521a4af7bea810624913cf5 /queries/prisma | |
| parent | Fix docs (diff) | |
| download | nvim-treesitter-3da2ab9857d8a5f2dc91bd396be32711322311e0.tar nvim-treesitter-3da2ab9857d8a5f2dc91bd396be32711322311e0.tar.gz nvim-treesitter-3da2ab9857d8a5f2dc91bd396be32711322311e0.tar.bz2 nvim-treesitter-3da2ab9857d8a5f2dc91bd396be32711322311e0.tar.lz nvim-treesitter-3da2ab9857d8a5f2dc91bd396be32711322311e0.tar.xz nvim-treesitter-3da2ab9857d8a5f2dc91bd396be32711322311e0.tar.zst nvim-treesitter-3da2ab9857d8a5f2dc91bd396be32711322311e0.zip | |
feat: add prisma support
Diffstat (limited to 'queries/prisma')
| -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 000000000..fc9f16565 --- /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_]+$")) |
