Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

splitting an "until" clause over 2 lines: "mismatching delimiter" --- even when commented out (0.84) #152

Closed weissel closed 10 years ago

weissel commented 10 years ago
//until ((apoapsis - periapsis) < 500 
//    or (apoapsis - periapsis) > 5500 ) {
//    print "Hello".
//    break.
//}.

causes a line0: mismatching delimiter (yes, no space between line and '0').

Since it's commented out, it should under no circumstances be parsed. Additionally, splitting the condition over 2 lines should be legal.

Simply writing the condition in 1 line makes the error go away, even when not commented out.

xZise commented 10 years ago

This is similar to #117 as it needs to have the closing parenthesis in the same line.

Though it should ignore everything commented out. I created a fix.