lsegal/yard — Issue #484: How to skip comment /modeline ?
Author: maxigit
Created: 2012-02-03 14:05:36+00:00
State: open

How can I make yard skip comment at the beginning of a file ?

here is my probleme :
I have a file defining module A

# doc of module A
module A
...
end

and then another file using module A as a namespace with a modeline

#vi: modeline for vim

module A
... stuff

end

The modeline (the first comment line) override the doc of module A. The solution I found so far is to add a dummy object between the comment and module A like

#vi: modeline ...
1

module A
end

I don't like it, because I'm pretty sure this '1' will be removed by other people modifying this file.

Any idea ?