google / vimdoc

Helpfile generation for vim
Apache License 2.0
291 stars 28 forks source link

@section id parameter is broken #13

Closed Soares closed 10 years ago

Soares commented 10 years ago

"@section name" without id throws exception

The id arg to the @section directive is supposed to be optional, but attempting to leave it out results in an error:

 Traceback (most recent call last):
   File "/usr/local/google/home/dbarnett/.local/bin/vimdoc", line 25, in <module>
     for module in Modules(args.plugin):
   File "/usr/local/google/home/dbarnett/.local/lib/python2.7/site-packages/vimdoc/module.py", line 343, in Modules
     module.Close()
   File "/usr/local/google/home/dbarnett/.local/lib/python2.7/site-packages/vimdoc/module.py", line 197, in Close
     raise error.NeglectedSections(known)
 vimdoc.error.NeglectedSections: Sections set([None, 'config', 'functions']) not included in ordering.

The design doc says "It is optional. If omitted, it is the name in lowercase."