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
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.
Log in to post a comment.
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.