Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
prisma: Update grammar and syntax highlighting (#23596)
Victor Quiroz353ae316c967
diff --git a/extensions/prisma/extension.toml b/extensions/prisma/extension.tomlindex 22b2bd9f2b2..fc7ea267eba 100644--- a/extensions/prisma/extension.toml+++ b/extensions/prisma/extension.toml@@ -3,7 +3,7 @@ name = "Prisma"description = "Prisma support."version = "0.0.4"schema_version = 1-authors = ["Matthew Gramigna <[email protected]>"]+authors = ["Matthew Gramigna <[email protected]>", "Victor Quiroz <[email protected]>"]repository = "https://github.com/zed-industries/zed"[language_servers.prisma-language-server]@@ -12,4 +12,4 @@ language = "Prisma"[grammars.prisma]repository = "https://github.com/victorhqc/tree-sitter-prisma"-commit = "eca2596a355b1a9952b4f80f8f9caed300a272b5"+commit = "beeac50812da9765e29cbb2af1324783033cdca3"diff --git a/extensions/prisma/languages/prisma/highlights.scm b/extensions/prisma/languages/prisma/highlights.scmindex 5a7d7a81241..c43df8b3b03 100644--- a/extensions/prisma/languages/prisma/highlights.scm+++ b/extensions/prisma/languages/prisma/highlights.scm@@ -3,18 +3,28 @@"enum""generator""model"+ "view"] @keyword(comment) @comment(developer_comment) @comment+(number) @number+(string) @string+(false) @boolean+(true) @boolean(arguments) @property-(attribute) @function-(call_expression) @function-(column_type) @type+(maybe) @punctuation+(call_expression (identifier) @function)(enumeral) @constant(identifier) @variable-(string) @string+(column_declaration (identifier) (column_type (identifier) @type))+(attribute (identifier) @label)+(attribute (call_expression (identifier) @label))+(attribute (call_expression (member_expression (identifier) @label)))+(block_attribute_declaration (identifier) @label)+(block_attribute_declaration (call_expression (identifier) @label))+(type_expression (identifier) @property)"(" @punctuation.bracket")" @punctuation.bracket@@ -24,3 +34,4 @@"}" @punctuation.bracket"=" @operator"@" @operator+"@@" @operator