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

Case insensitive languages : case-insensitive outside quotes & rems, case-sensitive within #2372

Open
meteorquake opened this issue Jul 4, 2024 · 0 comments

Comments

@meteorquake
Copy link

meteorquake commented Jul 4, 2024

In languages like VBA the code needs to have optionally available comparison that is case-sensitive within quotes, but case-insensitive outside quotes, and case sensitive for Rems ('). The quote marks are " .... " however it doesn't matter if ' ... ' is also applied for quotes as that doesn't exist except for Rem, and then it can be counted terminated when the line end is reached. This is because the VBA can bulk update everything outside quotes and rems to a different capitalisation, for example in one module or proc you might have a variable sItS and in another you type sIts and it will bulk change the sItS in the unrelated procedure, and various other circumstances. When you then do a compare with code that should be the same but has undergone this transformation, Winmerge will throw up lots of differences. So the comparison outside quote marks needs to be insensitive.
Similarly languages like SQL, an option so you can have case sensitive just within quotes which are " ... " and ' ... ' and for REM statements ( e.g. -- ) - back ticks being insensitive. SQL is less of an issue, however I dare say people's SQL can get prettified by manual processes or prittifiers, that might change select to Select or SELECT.
Basically, this situation should apply to any case insensitive language. Perhaps it could be called "Case semi-sensitivity"...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants