Page 1 of 1

IDE syntax: Remove '@' from words

Posted: Tue Aug 26, 2014 3:01 pm
by Tenaja
It appears that the At ('@') character is in the list of word characters. Please remove it.

PB's syntax treats it just like any other arithmetic operator, and so should the IDE.

The disadvantage to the current IDE setup is that functions referenced as pointers will not be highlighted when looking for function references, unless a space is added between the At and the function name. For instance:

Code: Select all

Procedure MyFunction()
	; Do stuff
EndProcedure

DoSomethingWithAFunction(1, @MyFunction())
In this simple example, selecting the word MyFunction will NOT highlight the argument using it, unless you add the space. Since most of us do not insert spaces within pointer references, this means we can easily miss the visual cues that were the reason for "word highlighting" in the first place.

Thanks.

Re: IDE syntax: Remove '@' from words

Posted: Tue Aug 26, 2014 3:07 pm
by skywalk
Good idea...but...
ampersand = &. :wink:
at sign = @.

Re: IDE syntax: Remove '@' from words

Posted: Tue Aug 26, 2014 5:12 pm
by Tenaja
skywalk wrote:ampersand = &. :wink:
at sign = @.
I know that! Why do you bring it up?
:mrgreen: