jcowgar / xojo-format-code

Code formatter written in XojoScript for Xojo
15 stars 8 forks source link

Comment is formatted too #5

Closed paulsondervan closed 11 years ago

paulsondervan commented 11 years ago

When there are certain words (to, true, false, ...) in a comment line, the words are formatted (To, True, False, ...). Comment shouldn't be formatted.

jcowgar commented 11 years ago

Paul,

I can not duplicate this with 0.2.3. In an earlier version, this was certainly the case but I believe in 0.2.3 the way comments were handled was changed. Prior to, // and ' were considered a single token and the parser continued on parsing the comment. From 0.2.3 on, // and ' signaled a comment and the rest of the line was read as a single token, and not processed internally. Thus, // and ' comments were reproduced verbatim.

I just went though and cleaned up the bug list and released 0.2.4, can you please grab the latest release and see if this is still an issue for you?

https://github.com/jcowgar/xojo-format-code/releases

Thanks!

paulsondervan commented 11 years ago

Jeremy,

It appears to work fine now. Thank you again!

jcowgar commented 11 years ago

OK, great. Closing the issue out then.