mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(ecma): include outerHTML and innerHTML
This commit is contained in:
parent
248a87ef65
commit
8d2f9903f1
1 changed files with 3 additions and 2 deletions
|
|
@ -72,13 +72,14 @@
|
|||
(assignment_expression
|
||||
left: (member_expression
|
||||
property: (property_identifier) @_prop
|
||||
(#eq? @_prop "innerHTML"))
|
||||
(#match? @_prop "(out|inn)erHTML"))
|
||||
right: (template_string) @html
|
||||
(#offset! @html 0 1 0 -1))
|
||||
|
||||
; el.innerHTML = '<html>'
|
||||
(assignment_expression
|
||||
left: (member_expression
|
||||
property: (property_identifier) @_prop
|
||||
(#eq? @_prop "innerHTML"))
|
||||
(#match? @_prop "(out|inn)erHTML"))
|
||||
right: (string) @html
|
||||
(#offset! @html 0 1 0 -1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue