Hello, I am working on something in an esoteric language and have a Function Pattern that works great \\[A-Za-z0-9_ \s]*(?:\s+"[^"]*")?\s*(\[(?:[^\[\]]+|(?1))*\])(?:(\s*=\s*)(?P<function_name>[a-zA-Z0-9_!?]+))?
What I want to be able to do is from wherever my cursor is to search backwards and find the beginning of this function definition and then select all the text from where my cursor was to the beginning of the function. I can use find previous with the grep pattern and that will select that function but not the text from where my cursor was. I can also use Reveal Start in Go->Functions to move the cursor to the beginning of the previous function. I just can't seem to figure out how to quite accomplish what I want in AppleScript. Any thoughts would be appreciated -- This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "[email protected]" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/bbedit/ea6c3ec8-7352-440e-9b94-bdf60c46986en%40googlegroups.com.
