mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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,
|
||||
},
|
||||
maintainers = { "@NTBBloodbath" },
|
||||
}
|
||||
list.prisma = {
|
||||
install_info = {
|
||||
url = "https://github.com/elianiva/tree-sitter-prisma",
|
||||
url = "https://github.com/victorhqc/tree-sitter-prisma",
|
||||
branch = "master",
|
||||
files = { "src/parser.c" },
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,48 +1,26 @@
|
|||
[
|
||||
"generator"
|
||||
"datasource"
|
||||
"model"
|
||||
"enum"
|
||||
"datasource"
|
||||
"enum"
|
||||
"generator"
|
||||
"model"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
":"
|
||||
","
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
"="
|
||||
"?"
|
||||
] @operator
|
||||
|
||||
(comment) @comment
|
||||
(developer_comment) @comment
|
||||
|
||||
(arguments) @property
|
||||
(attribute) @function
|
||||
(call_expression) @function
|
||||
(column_type) @type
|
||||
(enumeral) @constant
|
||||
(identifier) @variable
|
||||
(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_]+$"))
|
||||
"(" @punctuation.bracket
|
||||
")" @punctuation.bracket
|
||||
"[" @punctuation.bracket
|
||||
"]" @punctuation.bracket
|
||||
"{" @punctuation.bracket
|
||||
"}" @punctuation.bracket
|
||||
"=" @operator
|
||||
"@" @operator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue