You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AutoHotkey v2 has been officially released for more than a year, and it is the main version at present. In this month, v1 has stopped maintenance. AutoHotkey in github still uses the old syntax for language highlighting, so it's time to update it.
I've look into this a bit more, and aren't too sure what to do.
While AutoHotkey has been released on V2, there are still many scripts using (the now deprecated) AutoHotkey V1. So I'm unsure whether we just update to V2 grammar (meaning deprecated V1 files may lose some highlighting), or if there is a solution to have multiple grammar files based on a RegEx (something like heuristics?)
If that second option isn't possible forcing V2 as the highlighted option would be the way forward?
We have a 1:1 relationship between languages and grammars.
The best solution is for the grammar to be backwardly compatible with the older version of the language.
The next best is to create a new entry for V2 as a new language, group the two, and use a heuristic (a regex) to differentiate the two. Keep in mind this V2 would be considered a completely new language and will need to meet our usage requirements before inclusion.
Switching out the current grammar for the newer and breaking syntax highlighting for older scripts is going to result in more work for the new grammar maintainers as any issues reported here will simply be redirected to the grammar maintainters to fix. This could in turn result in the "best solution" I previously mentioned 😁
Describe the enhancement
AutoHotkey v2 has been officially released for more than a year, and it is the main version at present. In this month, v1 has stopped maintenance. AutoHotkey in github still uses the old syntax for language highlighting, so it's time to update it.
URL of syntax highlighting grammar
https://github.com/thqby/vscode-autohotkey2-lsp/blob/main/syntaxes/ahk2.tmLanguage.json
Most popular extensions
https://github.com/thqby/vscode-autohotkey2-lsp
The text was updated successfully, but these errors were encountered: