aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/prisma
diff options
context:
space:
mode:
authorIvan2022-06-12 19:08:51 +0000
committerGitHub2022-06-12 19:08:51 +0000
commit0bc7259672c525f2bd16e6703f3848d617458836 (patch)
tree777086e720b41d599a483c4e8193b8feea059b06 /runtime/queries/prisma
parente9283b20b432d40782bcf78423ef770289f6a013 (diff)
add prisma tree-sitter and lsp support (#2703)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime/queries/prisma')
-rw-r--r--runtime/queries/prisma/highlights.scm56
1 files changed, 56 insertions, 0 deletions
diff --git a/runtime/queries/prisma/highlights.scm b/runtime/queries/prisma/highlights.scm
new file mode 100644
index 00000000..b5c0c4ae
--- /dev/null
+++ b/runtime/queries/prisma/highlights.scm
@@ -0,0 +1,56 @@
+(string) @string
+
+(enumeral) @constant
+(number) @constant.numeric
+
+(variable) @variable
+(column_type) @type
+
+(arguments) @variable.other.member
+(model_declaration (identifier) @type)
+
+[
+ "datasource"
+ "enum"
+ "generator"
+ "model"
+ "type"
+] @keyword
+
+[
+ (comment)
+ (developer_comment)
+] @comment
+
+[
+ (attribute)
+ (block_attribute_declaration)
+ (call_expression)
+] @function.builtin
+
+[
+ (true)
+ (false)
+ (null)
+] @constant.builtin.boolean
+
+[
+ "("
+ ")"
+ "["
+ "]"
+ "{"
+ "}"
+] @punctuation.bracket
+
+[
+ ":"
+ ","
+] @punctuation.delimiter
+
+[
+ "="
+ "@"
+ "@@"
+ (binary_expression)
+] @operator \ No newline at end of file