From 2507f890ac8c2f800729f73d61160b59927c2647 Mon Sep 17 00:00:00 2001 From: elianiva Date: Fri, 26 Nov 2021 20:25:51 +0700 Subject: [PATCH] refactor(prisma): group similar nodes --- queries/prisma/highlights.scm | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/queries/prisma/highlights.scm b/queries/prisma/highlights.scm index 5a7d7a812..45caf5a91 100644 --- a/queries/prisma/highlights.scm +++ b/queries/prisma/highlights.scm @@ -5,22 +5,32 @@ "model" ] @keyword -(comment) @comment -(developer_comment) @comment +[ + (comment) + (developer_comment) +] @comment + +[ + (attribute) + (call_expression) +] @function (arguments) @property -(attribute) @function -(call_expression) @function (column_type) @type (enumeral) @constant (identifier) @variable (string) @string -"(" @punctuation.bracket -")" @punctuation.bracket -"[" @punctuation.bracket -"]" @punctuation.bracket -"{" @punctuation.bracket -"}" @punctuation.bracket -"=" @operator -"@" @operator +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +[ + "=" + "@" +] @operator