On Oct 5, 2004, at 7:17 PM, Dave Thomas wrote:
>
> On Oct 5, 2004, at 16:50, Charles Mills wrote:
>>
>> <               def handle_tab_width(body)
>> <                       if /\t/ =~ body
>> <                               tab_str = ' ' * 
>> Options.instance.tab_width
>> <                               body.gsub(/\t/, tab_str)
>
> This doesn't work if you have
>
> abc<tab>def
>
> That's why we have the somewhat uglier:
>
>> <                               #tab_width = 
>> Options.instance.tab_width
>> <                               #content = content.split(/\n/).map do 
>> |line|
>> <                               #1 while line.gsub!(/\t+/) { ' ' * 
>> (tab_width*$&.length - $`.length % tab_width)}  && $~ #`
>> <                               #       line
>> <                               #end .join("\n")
>> <                       else

OK, changed it.  I just added support for documenting global variables 
and constants in .c files.  Tested it on my own stuff and it works.  
The patch is getting pretty big and it sounds like your busy so let me 
know when you want me to send it over.

-Charlie