mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 07:20:06 -04:00
feat(jsx): commentstring query
This commit is contained in:
parent
a5a2845a86
commit
2b0760dca2
1 changed files with 6 additions and 0 deletions
|
|
@ -149,3 +149,9 @@
|
||||||
(string
|
(string
|
||||||
(string_fragment) @string.special.url))
|
(string_fragment) @string.special.url))
|
||||||
(#any-of? @_attr "href" "src"))
|
(#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"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue