Don't use internal name case-correction for explicit module function calls

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Don't use internal name case-correction for explicit module function calls

Post by Mistrel »

For module "a" with method "log()" (lowercase) where the underscore represents the cursor position:

Code: Select all

a::log_
When typing the open parenthesis the PureBasic IDE will case-correct to:

Code: Select all

a::Log(
My function is lowercase so this is wrong. I do enable this feature in the IDE because it's great. I love case-correct internal functions and keywords. But this feature should not apply when typing function names to the right of double colons which only appear to the right of module names.

This is somewhat problematic due to all of the internal PureBasic functions being in-scope within modules:

Code: Select all

DeclareModule a
EndDeclareModule

Module a
EndModule

a::MessageRequester("","")
I'm not asking for PureBasic's internal functions to be inaccessible from within a module; that's another feature request [1] [2]. But I would like to see case-correction not override module functions that I have declared that have the same name as external functions.