diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-11-05 10:31:02 +0100 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-11-05 11:09:54 +0100 |
| commit | dd89cafd2bc5ddbb201b6b1ea72ecd11acbe4e31 (patch) | |
| tree | 0889ac0db6f92b8e1717a4ae06e35fda415cd03a /queries/rust/highlights.scm | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-dd89cafd2bc5ddbb201b6b1ea72ecd11acbe4e31.tar nvim-treesitter-dd89cafd2bc5ddbb201b6b1ea72ecd11acbe4e31.tar.gz nvim-treesitter-dd89cafd2bc5ddbb201b6b1ea72ecd11acbe4e31.tar.bz2 nvim-treesitter-dd89cafd2bc5ddbb201b6b1ea72ecd11acbe4e31.tar.lz nvim-treesitter-dd89cafd2bc5ddbb201b6b1ea72ecd11acbe4e31.tar.xz nvim-treesitter-dd89cafd2bc5ddbb201b6b1ea72ecd11acbe4e31.tar.zst nvim-treesitter-dd89cafd2bc5ddbb201b6b1ea72ecd11acbe4e31.zip | |
fix(rust): update queries to breaking changes
* `if_let_expression` was removed in https://github.com/tree-sitter/tree-sitter-rust/pull/152
* `attributes` were reworked in
https://github.com/tree-sitter/tree-sitter-rust/pull/163 (no more
`meta-item`)
Diffstat (limited to 'queries/rust/highlights.scm')
| -rw-r--r-- | queries/rust/highlights.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index c08912bea..3df682c34 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -121,14 +121,14 @@ (macro_definition "macro_rules!" @function.macro) ;; Attribute macros -(attribute_item (meta_item (identifier) @function.macro)) -(meta_item (scoped_identifier (identifier) @function.macro .)) +(attribute_item (attribute (identifier) @function.macro)) +(attribute (scoped_identifier (identifier) @function.macro .)) ;; Derive macros (assume all arguments are types) -(meta_item - (identifier) @_name - arguments: (meta_arguments (meta_item (identifier) @type)) - (#eq? @_name "derive")) +; (attribute +; (identifier) @_name +; arguments: (attribute (attribute (identifier) @type)) +; (#eq? @_name "derive")) ;; Function-like macros (macro_invocation |
