mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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
|
(assignment_expression
|
||||||
left: (member_expression
|
left: (member_expression
|
||||||
property: (property_identifier) @_prop
|
property: (property_identifier) @_prop
|
||||||
(#eq? @_prop "innerHTML"))
|
(#match? @_prop "(out|inn)erHTML"))
|
||||||
right: (template_string) @html
|
right: (template_string) @html
|
||||||
(#offset! @html 0 1 0 -1))
|
(#offset! @html 0 1 0 -1))
|
||||||
|
|
||||||
; el.innerHTML = '<html>'
|
; el.innerHTML = '<html>'
|
||||||
(assignment_expression
|
(assignment_expression
|
||||||
left: (member_expression
|
left: (member_expression
|
||||||
property: (property_identifier) @_prop
|
property: (property_identifier) @_prop
|
||||||
(#eq? @_prop "innerHTML"))
|
(#match? @_prop "(out|inn)erHTML"))
|
||||||
right: (string) @html
|
right: (string) @html
|
||||||
(#offset! @html 0 1 0 -1))
|
(#offset! @html 0 1 0 -1))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue