feat(jsx): commentstring query

This commit is contained in:
Riley Bruins 2025-03-03 08:56:31 -08:00 committed by Christian Clason
parent a5a2845a86
commit 2b0760dca2

View file

@ -149,3 +149,9 @@
(string
(string_fragment) @string.special.url))
(#any-of? @_attr "href" "src"))
((jsx_element) @_jsx_element
(#set! @_jsx_element bo.commentstring "{/* %s */}"))
((jsx_attribute) @_jsx_attribute
(#set! @_jsx_attribute bo.commentstring "// %s"))