Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Wed Apr 16, 2008 7:55 pm   

[2.22] Syntax Highlighting for Switch Commands
 
For some reason the syntax highlighting isn't work on the switch statements after the first line if you put them on separate lines.

Example:

Code:

#switch (@a)
  (value1) {blah}
  (value2) {blah}
  (value3) {blah}


Or

Code:

#switch (@a == value1) {blah}
  (@a == value2) {blah}
  (@a == value3) {blah}


When you look at the code in the editor the first line has highlighting but then maybe like the third line will not have anything highlighted. If you have like 10 evaluations then maybe the first two will have highlighting but everything after that nothing will be highlighted. There are no errors. It just has a problem highlighting in switch statements. This never happened in previous versions though, unless there was an error.

If you put them all on one line however, it will highlight everything like it should.

Example:

Code:
#switch (@a == value1) {blah} (@a == value2) {blah} (@a == value3) {blah}
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Wed Apr 16, 2008 7:58 pm   
 
Hmm another interesting thing is on the one I am looking at in my editor it wasn't highlighting so I hit reformat and then they were highlighted even though absolutely nothing changed.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Apr 23, 2008 7:48 pm   
 
Weird, but added to bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net