feat(image): adde support for Image in jsx
Some checks failed
CI / ci (push) Failing after 0s

This commit is contained in:
Folke Lemaitre 2025-02-16 15:13:34 +01:00
parent a8b3c20fbc
commit 95878ad32a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
(jsx_element
(jsx_opening_element
(identifier) @tag (#eq? @tag "img")
(identifier) @tag (#any-of? @tag "img" "Image")
(jsx_attribute
(property_identifier) @attr_name (#eq? @attr_name "src")
(string (string_fragment) @image)
@ -10,7 +10,7 @@
) @anchor
(jsx_self_closing_element
(identifier) @tag (#eq? @tag "img")
(identifier) @tag (#any-of? @tag "img" "Image")
(jsx_attribute
(property_identifier) @attr_name (#eq? @attr_name "src")
(string (string_fragment) @image)