Skip to content

Commit

Permalink
perf(queries): simplify where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Iron-E committed May 4, 2023
1 parent 043483a commit cdcc7ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions after/queries/c_sharp/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@
(nullable_type "?" @punctuation.special)

; operators
(binary_expression ["<" ">"] @operator)
(binary_expression "??" @operator)
(binary_expression ["<" ">" "??"] @operator)
3 changes: 0 additions & 3 deletions after/queries/rust/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
(#has-ancestor? @keyword.operator attribute) ; NOTE: comes from `nvim-treesitter`
)

; captures
(captured_pattern "@" @punctuation.special)

; closure delimiters
(closure_parameters . ("|" @function) ("|" @function) .)

Expand Down

0 comments on commit cdcc7ac

Please sign in to comment.