diff options
| author | elianiva <dicha.arkana03@gmail.com> | 2021-11-26 20:25:51 +0700 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-28 00:36:24 +0100 |
| commit | 2507f890ac8c2f800729f73d61160b59927c2647 (patch) | |
| tree | 57cb25f27543be6e63eccb6631d542b1aee1b4c1 /queries/prisma | |
| parent | refactor(prisma): switch to alternative repo (diff) | |
| download | nvim-treesitter-2507f890ac8c2f800729f73d61160b59927c2647.tar nvim-treesitter-2507f890ac8c2f800729f73d61160b59927c2647.tar.gz nvim-treesitter-2507f890ac8c2f800729f73d61160b59927c2647.tar.bz2 nvim-treesitter-2507f890ac8c2f800729f73d61160b59927c2647.tar.lz nvim-treesitter-2507f890ac8c2f800729f73d61160b59927c2647.tar.xz nvim-treesitter-2507f890ac8c2f800729f73d61160b59927c2647.tar.zst nvim-treesitter-2507f890ac8c2f800729f73d61160b59927c2647.zip | |
refactor(prisma): group similar nodes
Diffstat (limited to 'queries/prisma')
| -rw-r--r-- | queries/prisma/highlights.scm | 34 |
1 files 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 |
