From 0bc7259672c525f2bd16e6703f3848d617458836 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 12 Jun 2022 22:08:51 +0300 Subject: add prisma tree-sitter and lsp support (#2703) Co-authored-by: Michael Davis --- runtime/queries/prisma/highlights.scm | 56 +++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 runtime/queries/prisma/highlights.scm (limited to 'runtime/queries') 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 -- cgit v1.2.3-70-g09d2