List of rules used by v2 parser
Posted: 10 Jul 2023, 10:09
Apologies if this is a duplicate topic, but I haven't found something like this in my searching so far
Can the list of rules that are used by the v2 parser be included in the docs somewhere? I run into the issue almost every time I update my scripts where I write something the parser doesn't like and it will usually cite a rule like v1-char or v1-def with no indication of what that means and what could be triggering it. I end up spending way longer googling to see if someone has posted a similar issue, or just changing all sorts of stuff in my script until it finally accepts it, but I don't really know what I changed that made it change its mind.
If the rules were posted somewhere, they don't have to be super exposed, just something that can be found by searching "rules" in the docs or something like "ahk v2 rules" in google, it would be super helpful for narrowing down what may be triggering the error(s).
Something else that might be helpful, though not a documentation suggestion, is when the rule is triggered, if either the version error popup or some kind of log file could show which line triggered the error, and potentially which character(s) specifically.
Open to suggestions, or if someone knows where the list is posted if it already exists, feel free to let me know!
Can the list of rules that are used by the v2 parser be included in the docs somewhere? I run into the issue almost every time I update my scripts where I write something the parser doesn't like and it will usually cite a rule like v1-char or v1-def with no indication of what that means and what could be triggering it. I end up spending way longer googling to see if someone has posted a similar issue, or just changing all sorts of stuff in my script until it finally accepts it, but I don't really know what I changed that made it change its mind.
If the rules were posted somewhere, they don't have to be super exposed, just something that can be found by searching "rules" in the docs or something like "ahk v2 rules" in google, it would be super helpful for narrowing down what may be triggering the error(s).
Something else that might be helpful, though not a documentation suggestion, is when the rule is triggered, if either the version error popup or some kind of log file could show which line triggered the error, and potentially which character(s) specifically.
Open to suggestions, or if someone knows where the list is posted if it already exists, feel free to let me know!