Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Regex Testing Tool #580

Open
TrueCrimeAudit opened this issue Dec 17, 2024 · 1 comment
Open

Add a Regex Testing Tool #580

TrueCrimeAudit opened this issue Dec 17, 2024 · 1 comment
Assignees
Labels
enhancement new feature or request

Comments

@TrueCrimeAudit
Copy link

Is your feature request related to a problem? Please describe.
I'll preface this by saying I am not a developer or even a CS student. This might even be the first GitHub issue I've ever posted. The code I have is not complete or working but may help you get 1% closer to where you need to be if you're interested in the project,

There are no good AHK extensions that have a built-in regex testing tool. I think this is important since the regex testing tools all use a bit of a different flavor of regex. I also think the extensions recognize regex's differently since they're inside of functions in a different way in AHK v2 than in a lot of other languages from what I can tell.

One of the simple tools I've tried to recreate in AHK is this: https://github.com/[chrmarti/vscode-regex](https://github.com/chrmarti/vscode-regex). Unfortunately, I haven't gotten it working. My initial approach was just to add a AHK v2 regex line just like the other regex lines. That didn't recognize the regex used by AHK v2. I recreated the regex using regex testing tools like Regxr but could not get it working with the extension. I had a difficult time getting a Typescript regex to recognize the regex string in AHK v2. I even tried to use a few different extensions to see if their syntax recognition tokenized a AHK v2 regex. I looked at THQBY's syntax, which I think has been developed in part from your syntax, but the only thing was the recognition of the built-in regex functions and "=~" which do not actually find the regex.

Here's an example of what I did:
https://github.com/TrueCrimeAudit/ahk-regex

Would love to help if you are interested but as you can see, I have a few skill issues limiting me.

@TrueCrimeAudit TrueCrimeAudit added the enhancement new feature or request label Dec 17, 2024
@mark-wiemer
Copy link
Member

Nice, seems like a great feature :) should be do-able since it's been done for other languages for sure. Gonna keep focusing on bugs for the next few months probably, but this is officially on the backlog!

@mark-wiemer mark-wiemer moved this to Todo in AHK++ Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants