Please be less aggressive when sanitizing procedure hints

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

Please be less aggressive when sanitizing procedure hints

Post by Mistrel »

Please be less aggressive when sanitizing the whitespace of parameters procedures for IDE hints.

I'm trying to implement macro annotations to clarify the intent of procedure arguments but the spaces between the annotations and the parameters themselves are lost. This is causing the annotation to be concatenated with the parameter name.

For example:

Code: Select all

Macro _IN
EndMacro

Macro _OUT
EndMacro

Macro _OPT
EndMacro

Procedure SomeProc(_IN a, _OUT b, _OPT c)
EndProcedure

SomeProc(
I see the hint as:

Code: Select all

SomeProc(_INa, _OUTb, _OPTc)
On a minor note, adding an annotation prefix causes pointers which share the same name as a keyword to be colored as a keyword instead of a field. This isn't necessarily a bug since what I'm doing is an odd use case:

Code: Select all

Procedure SomeProc(_IN *Data)
EndProcedure