Nivekk / KOS

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

Remove the comment and then check that for delimiter match #154

Closed xZise closed 11 years ago

xZise commented 11 years ago

This should partially fix #152 as it removes the comment from the currently parsed line and then checked this striped line for matching delimiters. Previously, the check was done on the unmodified string which also checked in the comments.

DISCLAIMER: As my computer is not set up for development and testing C#, I'm not sure that this code works as promised. (I really have to set up my computer for developing KSP plugins)

Nivekk commented 11 years ago

Okay this did help the comment issue, but you can't assign a value to a string that's a foreach iterator, so I fixed that.

xZise commented 11 years ago

Ah okay, I usually program in Java and there it's not a problem.