mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-07 13:15:08 +00:00
refactor(image): make tsx inherit from javascript
This commit is contained in:
parent
55ffbcd645
commit
a8b3c20fbc
1 changed files with 1 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue