prisma: Update grammar and syntax highlighting (#23596)
- Updates the bindings ([tree-sitter-prisma](https://github.com/victorhqc/tree-sitter-prisma)) to its latest update (recently updated to use latest tree-sitter) - Improves syntax highlighting - Adds the `view` keyword **After** <img width="1174" alt="Screenshot 2025-01-24 at 12 44 57" src="https://github.com/user-attachments/assets/84e6afe0-5340-4cdf-ad85-9a800a757323" /> **Before** <img width="1174" alt="Screenshot 2025-01-24 at 12 44 45" src="https://github.com/user-attachments/assets/11296998-fdfe-4fe8-8e5b-feeb41c24385" /> Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
co-authored by
Marshall Bowers
parent
e1646e6ff4
commit
353ae316c9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user