ignore folding
Brought to you by:
doughellmann,
krlosaqp
given the following example code that uses folding:
# doSomething() {{{
def doSomething():
pass
# }}}
the generated documentation is wrong because it considers the #
doSomething {{{ as a (part of) docstring. removing the fold
markers is not feasible as it doesn't allow to collapse the whole
function into a single line.
would it be possible to modify the parser to ignore the lines with
fold markers on them?
Logged In: YES
user_id=34486
This would certainly be possible. I'm not sure what this
folding is for, though. Is it inserted by an editor of some
sort? Is that a standard format, used by several tools?
Logged In: NO
the fold markers {{{ and }}} are used by variety of programming editors
like vim, xemacs or jedit. it's pretty much standard i guess. it's up to the
programmer to insert fold markers in the code so as to divide it into
logical groups and be able to fold or unfold them - this way the code is
much easier to read because you only unfold the part you need. see
http://www.unb.ca/chem/ajit/vimfold.png for example.