Hi François and Thorsten, When great minds meet... ;) It's sometimes good to have two different implementations, ideas can flow from one to another.
If you think one library is mature and useful enough for the contrib/ directory, please feel free to submit it! Note that both your libraries (supporting some Org syntax in comments) are a perfect match for Christopher recent chance in master, which allows a more powerful orgstruct-mode in those files -- with folding etc. If you didn't, have a look: C-h v orgstruct-heading-prefix-regexp RET is a starting point. Thanks! -- Bastien