diff --git a/README.md b/README.md index 0be9c1e2..63872009 100644 --- a/README.md +++ b/README.md @@ -363,6 +363,8 @@ Here are some rules about the query names that should be noted. php_only 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 +prisma 🟩 🟩 🟩 🟩 🟩 🟩 + python🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 🟩 ql 🟩 🟩 🟩 🟩 🟩 diff --git a/queries/prisma/textobjects.scm b/queries/prisma/textobjects.scm new file mode 100644 index 00000000..f6e553e2 --- /dev/null +++ b/queries/prisma/textobjects.scm @@ -0,0 +1,29 @@ +[ + (comment) + (developer_comment) +] @comment.outer + +[ + (statement_block) + (enum_block) +] @block.outer + +[ + (enum_declaration) + (model_declaration) + (type_declaration) +] @class.outer + +(enum_block) @class.inner + +(model_declaration + (statement_block) @class.inner) + +(type_declaration + (statement_block) @class.inner) + +(enumeral) @parameter.inner @parameter.outer + +(column_declaration) @parameter.inner @parameter.outer + +(block_attribute_declaration) @parameter.outer