mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
perf: remove match where possible
This commit is contained in:
parent
654216eb04
commit
85330918f0
37 changed files with 104 additions and 113 deletions
|
|
@ -90,7 +90,7 @@
|
|||
(assignment_expression
|
||||
left: (member_expression
|
||||
property: (property_identifier) @_prop
|
||||
(#match? @_prop "(out|inn)erHTML"))
|
||||
(#any-of? @_prop "innerHTML" "outerHTML"))
|
||||
right: (template_string) @html
|
||||
(#offset! @html 0 1 0 -1))
|
||||
|
||||
|
|
@ -98,6 +98,6 @@
|
|||
(assignment_expression
|
||||
left: (member_expression
|
||||
property: (property_identifier) @_prop
|
||||
(#match? @_prop "(out|inn)erHTML"))
|
||||
(#any-of? @_prop "innerHTML" "outerHTML"))
|
||||
right: (string) @html
|
||||
(#offset! @html 0 1 0 -1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue