nixeagle / ooc-mode

9 stars 2 forks source link

indentation after import lines #2

Closed solson closed 14 years ago

solson commented 14 years ago

In the following code ooc-mode wants to indent the second line:

import ThingOne, ThingTwo
doSomething()

This only happens when there are commas in the import line. I assume the same thing happens with use and include directives.

nixeagle commented 14 years ago

Semi-fixed for the case where point immediately follows the import statement. Something like: import ThingOne, ThingTwo // some comment doSomething()

does not indent correctly (as my example shows). Put simply, any toplevel comment or string will confuse it

nixeagle commented 14 years ago

Indent all statement-cont matches to existing indention.

Closed by 2d8c4bd4812c6fa74d96b890a533f7bb37b423c6