mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
refactor(prisma): switch to alternative repo
Co-authored-by: richin13 <richin13@gmail.com>
This commit is contained in:
parent
3da2ab9857
commit
b2801abc21
2 changed files with 22 additions and 43 deletions
|
|
@ -780,9 +780,10 @@ list.http = {
|
||||||
generate_requires_npm = true,
|
generate_requires_npm = true,
|
||||||
},
|
},
|
||||||
maintainers = { "@NTBBloodbath" },
|
maintainers = { "@NTBBloodbath" },
|
||||||
|
}
|
||||||
list.prisma = {
|
list.prisma = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/elianiva/tree-sitter-prisma",
|
url = "https://github.com/victorhqc/tree-sitter-prisma",
|
||||||
branch = "master",
|
branch = "master",
|
||||||
files = { "src/parser.c" },
|
files = { "src/parser.c" },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,48 +1,26 @@
|
||||||
[
|
[
|
||||||
"generator"
|
"datasource"
|
||||||
"datasource"
|
"enum"
|
||||||
"model"
|
"generator"
|
||||||
"enum"
|
"model"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
|
||||||
"("
|
|
||||||
")"
|
|
||||||
"["
|
|
||||||
"]"
|
|
||||||
"{"
|
|
||||||
"}"
|
|
||||||
] @punctuation.bracket
|
|
||||||
|
|
||||||
[
|
|
||||||
":"
|
|
||||||
","
|
|
||||||
] @punctuation.special
|
|
||||||
|
|
||||||
[
|
|
||||||
"="
|
|
||||||
"?"
|
|
||||||
] @operator
|
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
(developer_comment) @comment
|
||||||
|
|
||||||
|
(arguments) @property
|
||||||
|
(attribute) @function
|
||||||
|
(call_expression) @function
|
||||||
|
(column_type) @type
|
||||||
|
(enumeral) @constant
|
||||||
|
(identifier) @variable
|
||||||
(string) @string
|
(string) @string
|
||||||
(integer) @number
|
|
||||||
(boolean) @constant.builtin
|
|
||||||
(prisma_type) @type.builtin
|
|
||||||
|
|
||||||
(field_type (non_null_type (identifier) @type))
|
"(" @punctuation.bracket
|
||||||
(field_type (array_type (non_null_type (identifier) @type)))
|
")" @punctuation.bracket
|
||||||
|
"[" @punctuation.bracket
|
||||||
(apply_function (identifier) @function)
|
"]" @punctuation.bracket
|
||||||
|
"{" @punctuation.bracket
|
||||||
(attribute_specifier (identifier) @attribute)
|
"}" @punctuation.bracket
|
||||||
|
"=" @operator
|
||||||
(key_value (key (identifier) @attribute))
|
"@" @operator
|
||||||
|
|
||||||
(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_]+$"))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue