open.mp forum
[Pawn] A tool/program for finding unmatched brackets? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] A tool/program for finding unmatched brackets? (/showthread.php?tid=1793)



A tool/program for finding unmatched brackets? - Fawkes - 2021-03-22

I'm trying to optimize a script i made a few years ago and seperate it into libraries, i'm re-compiling it after every couple of changes to try and make it as easy as possible to identify errors and mistakes as i go along.

At the moment it won't compile (using pawno) unless i scroll to the bottom of the script first and compile from there (no errors or warnings if i don't scroll to the bottom first, it just doesn't create a working AMX unless i scroll to the bottom before compiling), i've checked the brackets with ctrl F and i've got 3 unmatched brackets (from years ago) which i remember used to cause the same problem in the past.

Does anyone know of any online web programs or software to highlight where unmatched bracket openings/closings begin/end without having to disect the whole script piece-by-piece to narrow down the lines manually?

I've tried searching for something to do this but they just give a long list of errors/warnings unrelated to brackets because they're intended for non-pwn.

Any help or suggestions would be great.


RE: A tool/program for finding unmatched brackets? - Virsenas - 2021-03-22

First check if you actually have any missing brackets.



https://www.burgershot.gg/showthread.php?tid=1763&pid=10251#pid10251


RE: A tool/program for finding unmatched brackets? - Fawkes - 2021-03-22

(2021-03-22, 07:32 PM)Virsenas Wrote: First check if you actually have any missing brackets.

https://www.burgershot.gg/showthread.php?tid=1763&pid=10251#pid10251

As mentioned in my original post, i have 3 umatched brackets. My question is about programs/software to identify the start/end of the unmatched brackets (for pwn)* without having to manually narrow it down block-by-block to find them


RE: A tool/program for finding unmatched brackets? - Banditul - 2021-03-23

(2021-03-22, 07:48 PM)Fawkes Wrote:
(2021-03-22, 07:32 PM)Virsenas Wrote: First check if you actually have any missing brackets.



https://www.burgershot.gg/showthread.php?tid=1763&pid=10251#pid10251



As mentioned in my original post, i have 3 umatched brackets. My question is about programs/software to identify the start/end of the unmatched brackets (for pwn)* without having to manually narrow it down block-by-block to find them



Sublime Text 3 or Visual Studio Code might help in this regard but you still need to do manual work of search the line. I would suggest if you gonna use any of this 2 you can collapse the brackets and spot the missing one easier.



Doubt there is any such software, at least for pawn, remember there was an attempt of such program but can't seem to find it anymore


RE: A tool/program for finding unmatched brackets? - Pinch - 2021-03-23

(2021-03-23, 10:04 AM)Banditul Wrote:
(2021-03-22, 07:48 PM)Fawkes Wrote:
(2021-03-22, 07:32 PM)Virsenas Wrote: First check if you actually have any missing brackets.

https://www.burgershot.gg/showthread.php?tid=1763&pid=10251#pid10251

As mentioned in my original post, i have 3 umatched brackets. My question is about programs/software to identify the start/end of the unmatched brackets (for pwn)* without having to manually narrow it down block-by-block to find them

Sublime Text 3 or Visual Studio Code might help in this regard but you still need to do manual work of search the line. I would suggest if you gonna use any of this 2 you can collapse the brackets and spot the missing one easier.

Doubt there is any such software, at least for pawn, remember there was an attempt of such program but can't seem to find it anymore
Me neither, the link (https://gallery.technet.microsoft.com/Missing-Bracket-Finder-e0a5f0e1) is dead.

I've it somewhere on my old PC tho so I'll check it in few days.