Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#12 turn first block comment in each block into a static one

open
nobody
None
5
2009-10-18
2009-10-18
Jan Ptacek
No

I've tried to accomplish this by setting static-comment-pattern option, but was not able to make the positive lookbehind for a '{' work on multiple lines :(
any advice is very welcome

Discussion

  • Jan Ptacek
    Jan Ptacek
    2009-10-18

    ha, I've not written it quite clearly:
    what I dislike is a newline before a comment when it is the first token in a block:
    if (1) {

    # UGLY comment describing a branch
    call_function();

    # NICE comment
    call_funcion2();
    }

    though I do like newlines before block comments later in the block.