From 427246610deb8d3002680074d877c52b896c99b8 Mon Sep 17 00:00:00 2001 From: Julius de Bruijn Date: Thu, 5 Jan 2023 22:06:11 +0100 Subject: [PATCH] Update Prisma tree-sitter for view support --- languages.toml | 2 +- runtime/queries/prisma/highlights.scm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 325a39dfc4c6..7feb4df2f9b8 100644 --- a/languages.toml +++ b/languages.toml @@ -1630,7 +1630,7 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "prisma" -source = { git = "https://github.com/victorhqc/tree-sitter-prisma", rev = "17a59236ac25413b81b1613ea6ba5d8d52d7cd6c" } +source = { git = "https://github.com/victorhqc/tree-sitter-prisma", rev = "eca2596a355b1a9952b4f80f8f9caed300a272b5" } [[language]] name = "clojure" diff --git a/runtime/queries/prisma/highlights.scm b/runtime/queries/prisma/highlights.scm index b5c0c4ae328f..dfd5292d0348 100644 --- a/runtime/queries/prisma/highlights.scm +++ b/runtime/queries/prisma/highlights.scm @@ -8,6 +8,7 @@ (arguments) @variable.other.member (model_declaration (identifier) @type) +(view_declaration (identifier) @type) [ "datasource" @@ -15,6 +16,7 @@ "generator" "model" "type" + "view" ] @keyword [