From 2b0760dca2354fecf48ea35fdf1d753a232e3de2 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Mon, 3 Mar 2025 08:56:31 -0800 Subject: feat(jsx): commentstring query --- queries/jsx/highlights.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'queries') 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")) -- cgit v1.2.3-70-g09d2