View unanswered posts | View active topics



Reply to topic  [ 2 posts ] 
ASCompletion: require space only for binary '-', not unary - 
Author Message
Member

Joined: Fri Jul 23, 2010 10:26 am
Posts: 146
Reply with quote
In ASCompletion settings, by default '-' is in the list of Characters requiring whitespace.
I would like to type "x=1+2-3;" and have it automatically completed to "x = 1 + 2 - 3;", this works with default settings.
I would also like to type "x=f(-1);" and have it completed o "x = f(-1);" (no space between "(" and "-"), however with default settings the result is "x = f( -1);"

Strangely, in this example space appears only on the left of '-', does it mean '-' is detected as unary?
Is there any easy way to add unary minus to Characters not requiring whitespace?


Sun Aug 02, 2015 7:01 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Inline reformatter is a big buggy around unary operations - it needs to be improved...


Tue Sep 01, 2015 8:37 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.