codefori / vscode-db2i

Db2 for IBM i Tools for VS Code
MIT License
47 stars 25 forks source link

Syntax checker #293

Open worksofliam opened 2 weeks ago

worksofliam commented 2 weeks ago

Initial work done here: https://gist.github.com/worksofliam/5aa61347b97dd5d33325f059244b8160

worksofliam commented 2 weeks ago

From a colleague:

Without knowing some of the options the user has defined, you are going to have problems. With a hard coded naming mode of SQL, anyone using / for qualification will be very frustrated. The name qualification rules are slightly different between SQL and *SYS, so even when using the more forgiving . as a separator, a user will encounter confusing, and incorrect, errors. The decimal point character and the string delimiter values are important parameters. By not supporting them, your solution gets a little less accurate, which will lead to false errors.