You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The normal typescript and javascript comment syntax (//) is correctly applied in standard ts/js. JSX markup inside ts/js files requires block comments within curly braces ({/* */}). <C-c> is applying the normal syntax (//) inside JSX blocks.
Reproduction Steps
commenting.in.JSX.mov
I tried this:
hx file-with-jsx-markup.tsx
create a react component with a minimal render function
try commenting out some text within the JSX markup <C-c>
I expected this to happen:
4. the code is commented out with the block syntax {/* */}
Instead, this happened:
4. the code is commented out with the standard syntax //
Summary
The normal typescript and javascript comment syntax (
//
) is correctly applied in standard ts/js. JSX markup inside ts/js files requires block comments within curly braces ({/* */}
).<C-c>
is applying the normal syntax (//
) inside JSX blocks.Reproduction Steps
commenting.in.JSX.mov
I tried this:
hx file-with-jsx-markup.tsx
<C-c>
I expected this to happen:
4. the code is commented out with the block syntax
{/* */}
Instead, this happened:
4. the code is commented out with the standard syntax
//
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
kitty 0.25.0
Helix Version
helix 23.05 (7f5940b)
The text was updated successfully, but these errors were encountered: