Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

gvim can't find some matching braces in jsx code

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
MakeTopSite
Posts: 115
Joined: 2021-01-20 08:44
Has thanked: 8 times

gvim can't find some matching braces in jsx code

#1 Post by MakeTopSite »

It jumps to braces which are apparently wrong. I suppose it's a bug. Are there please some more reliable alternative editors ?
Code can be compiled (without any errors or warning).

EDIT
example:

Code: Select all

function func(props) { // I press % key on this brace
if (condition) { puts("literal '}' in string"); }
// } gvim jumps here but should not
// }
}  // I expect gvim jumps here

User avatar
xuhdev
Posts: 18
Joined: 2014-10-07 19:59
Has thanked: 6 times
Been thanked: 1 time

Re: gvim can't find some matching braces in jsx code

#2 Post by xuhdev »

Do you mean it is incorrect because the right curly brace was commented?

I tried your example and it jumps to the right spot for me. I'm on Bookworm with Vim version 9.0.1378.
Debian Bookworm with GNOME, Ubuntu Jammy Jellyfish | 8 Hobbies Tech Blog | Hugo APT Repo

MakeTopSite
Posts: 115
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: gvim can't find some matching braces in jsx code

#3 Post by MakeTopSite »

xuhdev wrote: 2024-04-29 02:23 Do you mean it is incorrect because the right curly brace was commented?

I tried your example and it jumps to the right spot for me. I'm on Bookworm with Vim version 9.0.1378.
Yes I would like to gvim ignore commented brace.

Post Reply