Menu

#31 ignore folding

open
nobody
2
2002-08-24
2002-06-12
Anonymous
No

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?

Discussion

  • Doug Hellmann

    Doug Hellmann - 2002-06-12

    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?

     
  • Nobody/Anonymous

    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.

     
  • Doug Hellmann

    Doug Hellmann - 2002-08-24
    • priority: 5 --> 2
     
  • Doug Hellmann

    Doug Hellmann - 2002-08-24
    • assigned_to: doughellmann --> nobody
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.