Skip to content

Commit

Permalink
Add @parameter.inner for Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
theHamsta committed Sep 30, 2020
1 parent a6a13fb commit e500842
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ EOF
<tr>
<td>ruby</td><td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr>
<tr>
<td>rust</td><td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td> </td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td> </td> <td>πŸ‘</td> </tr>
<td>rust</td><td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td> </td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> <td>πŸ‘</td> </tr>
<tr>
<td>scala</td><td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr>
<tr>
Expand Down
15 changes: 15 additions & 0 deletions queries/rust/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,18 @@

;; statements
(block (_) @statement.outer)

;; parameter
(parameter) @parameter.inner

(tuple_pattern
(identifier) @parameter.inner)

(tuple_struct_pattern
(identifier) @parameter.inner)

(closure_parameters
(_) @parameter.inner)

(arguments
(_) @parameter.inner)

0 comments on commit e500842

Please sign in to comment.