IDE syntax: Remove '@' from words

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

IDE syntax: Remove '@' from words

Post 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.
Last edited by Tenaja on Tue Aug 26, 2014 5:11 pm, edited 1 time in total.
User avatar
skywalk
Addict
Addict
Posts: 3996
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE syntax: Remove '@' from words

Post by skywalk »

Good idea...but...
ampersand = &. :wink:
at sign = @.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Re: IDE syntax: Remove '@' from words

Post by Tenaja »

skywalk wrote:ampersand = &. :wink:
at sign = @.
I know that! Why do you bring it up?
:mrgreen:
Post Reply