aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/prisma/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/prisma/highlights.scm')
-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