From 5627c604effd36a4ecd319518e9315e34cfbb0be Mon Sep 17 00:00:00 2001 From: Julius de Bruijn Date: Fri, 6 Jan 2023 12:12:51 +0000 Subject: [PATCH] Update Prisma tree-sitter for view support (#5417) --- 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 9ad46a0b0..5f16d17b0 100644 --- a/languages.toml +++ b/languages.toml @@ -1677,7 +1677,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 b5c0c4ae3..dfd5292d0 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 [