diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2025-03-03 08:56:31 -0800 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-03-04 09:49:57 +0100 |
| commit | 2b0760dca2354fecf48ea35fdf1d753a232e3de2 (patch) | |
| tree | 17b7ed7f693e3bf675e73b179d077a0b67135264 | |
| parent | bot(lockfile): update cmake, elixir, ocaml, ocaml_interface, powershell, requ... (diff) | |
| download | nvim-treesitter-2b0760dca2354fecf48ea35fdf1d753a232e3de2.tar nvim-treesitter-2b0760dca2354fecf48ea35fdf1d753a232e3de2.tar.gz nvim-treesitter-2b0760dca2354fecf48ea35fdf1d753a232e3de2.tar.bz2 nvim-treesitter-2b0760dca2354fecf48ea35fdf1d753a232e3de2.tar.lz nvim-treesitter-2b0760dca2354fecf48ea35fdf1d753a232e3de2.tar.xz nvim-treesitter-2b0760dca2354fecf48ea35fdf1d753a232e3de2.tar.zst nvim-treesitter-2b0760dca2354fecf48ea35fdf1d753a232e3de2.zip | |
feat(jsx): commentstring query
| -rw-r--r-- | queries/jsx/highlights.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/jsx/highlights.scm b/queries/jsx/highlights.scm index a53b95339..0615d253a 100644 --- a/queries/jsx/highlights.scm +++ b/queries/jsx/highlights.scm @@ -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")) |
