|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: 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} |
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: 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.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Apr 23, 2008 7:48 pm |
Weird, but added to bug list.
|
|
|
|
|
|