refactor(image): make tsx inherit from javascript

This commit is contained in:
Folke Lemaitre 2025-02-16 15:10:42 +01:00
parent 55ffbcd645
commit a8b3c20fbc
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -1,18 +1 @@
(jsx_element
(jsx_opening_element
(identifier) @tag (#eq? @tag "img")
(jsx_attribute
(property_identifier) @attr_name (#eq? @attr_name "src")
(string (string_fragment) @image)
)
)
) @anchor
(jsx_self_closing_element
(identifier) @tag (#eq? @tag "img")
(jsx_attribute
(property_identifier) @attr_name (#eq? @attr_name "src")
(string (string_fragment) @image)
)
) @anchor
; inherits: javascript