Thread: Scripted RC
View Single Post
  #84  
Old 03-04-2007, 03:20 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Well, it's one step closer to being able to style code in the scripted rc.
Quote:
Originally Posted by Riot View Post
I guess I'll post a bug/warning about the "style" command:

If you have padding enabled on operators it will cause syntax errors if you use var @= "something"; as it places a space between @ and =.
Example:

HTML Code:
function onCreated() {  this.var += 1;
  this.test @= "test";}
Becomes:
HTML Code:
function onCreated()
{
  this.var += 1;
  this.test @ = "test";
}
(note the space between @ and =)

scriptstyle=spaces=2,padding=oper,brackets=break is used in this example.

I assume its the same for some other operators added in GS2.
__________________
Reply With Quote