Closed Gavin-Holt closed 7 months ago
There is nothing the parameters in myfindnext
are being assigned with because there are different variables with the same name being declared in the if statements at beginning. The parameters can only be accessed in the function so just assigning parameters with something would be fine. Backslash is also used in Lua when escaping characters so \\
would have to be written when putting it in a string.
If down
is assigned true
when not down
is true, then it would be true
even if it was false
so I think doing something like this instead would be better:
if not s then s = "\\)|\\]|\\}" end
if down == nil then down = true end
Hi,
Many thanks - solved.
Kind Regards Gavin Holt
Hi,
I am trying to augment my JumpToMatchingBrace shortcut, by finding the next closing brace if this function fails i.e. binding:
I have modified dmaluka's myfindnext function, but it is not working for me:
When this function is called I get an error:
I continue to struggle with the GoDev documentation (no examples!), and the entry for FindNext is not giving me much insight.
Any help welcome
Kind Regards Gavin Holt
PS. I don't want to use bp.Search as it will pollute my search history and highlight all the closing braces.
OS: Windows 10 Version: 2.0.13 Commit hash: 68d88b57 Compiled on December 12, 2023